确保安装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,进入开发环境