1.下载spark:spark-2.0.0-bin-hadoop2.7.tgz
2.解压至D:\bigdata\spark-2.0.0-bin-hadoop2.7
3.配置环境变量
HADOOP_HOME:D:\bigdata\hadoop-2.7.2
SPARK_HOME:D:\bigdata\spark-2.0.0-bin-hadoop2.7
Path中添加:%HADOOP_HOME%\bin;%SPARK_HOME%\bin;
4.运行
先运行Hadoop
再运行spark
cd D:\bigdata\spark-2.0.0-bin-hadoop2.7\bin
spark-shell.cmd
就可以打开spark控制面板了:http://localhost:4040/
网友评论