一 安装java
export JAVA_HOME=/usr/local/jdk1.7.0_67
二 安装scala
scala下载地址 https://www.scala-lang.org/download/
1 解压: tar xvf scala-2.12.6.tgz
2 修改配置:vim /etc/profile
添加:export PATH=$PATH:/usr/local/scala-2.12.6/bin
source /etc/profile
3 验证 :sacla
三 spark下载地址 https://www.apache.org/dyn/closer.lua/spark/spark-2.3.0/spark-2.3.0-bin-hadoop2.7.tgz
1 解压: tar xvf spark-2.3.0-bin-hadoop2.7.tgz
2 修改配置:vim ~/.bashrc
添加:export PATH=$PATH:/usr/local/spark-2.3.0-bin-hadoop2.7/bin
source ~/.bashrc
3 验证 : spark-shell
参考 w3cschool 感谢。
https://www.w3cschool.cn/spark_sql/spark_installation.html