How to load IPython shell with PySpark

后端 未结 7 2106
栀梦
栀梦 2020-12-24 02:08

I want to load IPython shell (not IPython notebook) in which I can use PySpark through command line. Is that possible? I have installed Spark-1.4.1.

7条回答
  •  滥情空心
    2020-12-24 02:41

    if version of spark >= 2.0 and the follow config could be adding to .bashrc

    export PYSPARK_PYTHON=/data/venv/your_env/bin/python
    export PYSPARK_DRIVER_PYTHON=/data/venv/your_env/bin/ipython
    

提交回复
热议问题