ubuntu 安装spark
- 安装java
- 安装scala(见文章链接)
- 安装spark
下载Spark的压缩文件。下载地址为:
http://spark.apache.org/downloads.html
tar -zxvf spark-2.1.1-bin-hadoop2.7.tgz -C /opt/spark/
vi ~/.bashrc
export SPARK_HOME=/opt/spark/spark-2.1.1-bin-hadoop2.7
export PATH=${SPARK_HOME}/bin:$PATH
source ~/.bashrc
spark-shell