vim ~/.bashrc
末尾添加
export PYTHONPATH=SPARK_HOME/python/lib/py4j-0.10.7-src.zip:$PYTHONPATH
export PYSPARK_PYTHON=python3
然后生效
source ~/.bashrc
执行到spark目录
./bin/pyspark
启动PySpark 成功的shell
vim ~/.bashrc
末尾添加
export PYTHONPATH=SPARK_HOME/python/lib/py4j-0.10.7-src.zip:$PYTHONPATH
export PYSPARK_PYTHON=python3
然后生效
source ~/.bashrc
执行到spark目录
./bin/pyspark
启动PySpark 成功的shell