centos7 安裝 spark

wget http://d3kbcqa49mib13.cloudfront.net/spark-2.1.0-bin-hadoop2.6.tgzshell

tar -zxvf spark-2.1.0-bin-hadoop2.6.tgzvim

mkdir -p /usr/local/sparkbash

cp -r spark-2.1.0-bin-hadoop2.6 /usr/local/sparkoop

cd ~spa

vim  .bash_profile .net

  • export SPARK_HOME=/usr/local/spark/spark-2.1.0-bin-hadoop2.6
    export PATH=$PATH:$SPARK_HOME/bin

source .bash_profile blog

  • 使環境變量快速生效

驗證安裝成功hadoop

  • 輸入spark-shell

相關文章
相關標籤/搜索