pyspark_juypter环境
程序员文章站
2022-03-03 16:22:36
...
确保安装juypter和spark
.bashrc增加环境变量
export SPARK_HOME=/xxx/hadoop-mahout-maven/spark/spark-2.3.0-bin-hadoop2.7
export PYSPARK_DRIVER_PYTHON=jupyter
export PYSPARK_DRIVER_PYTHON_OPTS='notebook'
export PYTHONPATH=$SPARK_HOME/python
使用:在指定目录cmd下执行pyspark启动juypter,进入开发环境
转载于:https://www.jianshu.com/p/38b993764373