sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
Thanks everyone for commenting/contributing! I made this in college for a class and I no longer really use the technology. I encourage you all to help each other, but I probably won't be answering questions anymore.
This article is also on my blog: https://emilykauffman.com/blog/install-anaconda-on-wsl
Note: $ denotes the start of a command. Don't actually type this.
x86_64.sh. If I had a 32-bit computer, I'd select the x86.sh version. If you accidentally try to install the wrong one, you'll get a warning in the terminal. I chose `Anaconda3-5.2.0-Li| #!/bin/bash | |
| echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 | |
| sudo apt-get update | |
| sudo apt-get install sbt | |
| # Default values for spark-services. | |
| # This is a YAML-formatted file. | |
| # Declare variables to be passed into your templates. | |
| tags: | |
| livy: true | |
| historyserver: true | |
| jupyterhub: false | |
| nameOverride: "" |
| import akka.actor._ | |
| import akka.stream.scaladsl.Flow | |
| import org.apache.spark.streaming.dstream.ReceiverInputDStream | |
| import org.apache.spark.streaming.receiver.ActorHelper | |
| import akka.actor.{ ExtensionKey, Extension, ExtendedActorSystem } | |
| import scala.reflect.ClassTag | |
| object AkkaStreamSparkIntegration { |
| import scala.util.{Try, Success, Failure} | |
| def f(s: String): Try[Int] = Try { s.toInt } | |
| def g(i: Int): Try[Int] = Try { i * 2 } | |
| def unit[T](v: T): Try[T] = Success(v) | |
| //val v = "1" | |
| val v = "bad" | |
| val m = Success(v) |
| ## Java | |
| sudo apt-get update | |
| sudo apt-get install default-jdk | |
| ## Scala | |
| sudo apt-get remove scala-library scala | |
| sudo wget https://downloads.lightbend.com/scala/2.12.3/scala-2.12.3.deb | |
| sudo dpkg -i scala-2.12.3.deb | |
| sudo apt-get update | |
| sudo apt-get install scala |
| ## Java | |
| sudo apt-get update | |
| sudo apt-get install default-jdk | |
| ## Scala | |
| sudo apt-get remove scala-library scala | |
| sudo wget https://downloads.lightbend.com/scala/2.12.3/scala-2.12.3.deb | |
| sudo dpkg -i scala-2.12.3.deb | |
| sudo apt-get update | |
| sudo apt-get install scala |
| kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod |
| kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod |