pyspark环境配置
前提:
1、Ubuntu系统
2、spark已经安装好
过程:
(修改配置文件,添加到Path中 。修改BASH配置,将Spark添加到PATH中,设置SPARK_HOME环境变量。)
1、编辑~/.bash_profile或~/.profile文件,将以下语句添加到文件中 (根据自己spark的路径添加)
export SPARK_HOME=/srv/sparkexport PATH=$SPARK_HOME/bin:$PATH
2、source ~/.profile(使配置生效)
3、pyspark