Created
September 10, 2018 14:05
-
-
Save zhimoe/07e9b8f64e3f9414a1449dc95e7d33c2 to your computer and use it in GitHub Desktop.
win 10 wsl install spark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. change source.list in /etc/apt/ | |
sudo apt update && | |
sudo apt install openjdk-8-jdk-headless openjdk-8-jre-headless git unzip vim maven scala -y | |
#for multi java version | |
sudo update-alternatives --config java | |
sudo vim /etc/profile.d/xiongdahu.env.sh | |
#put these line in xiongdahu.env.sh | |
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre | |
export M2_HOME=/usr/share/maven | |
export SCALA_HOME=/usr/share/scala-2.11 | |
export PATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin:$SCALA_HOME/bin | |
#effect the env varibles | |
source /etc/profile.d/xiongdahu.env.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment