无法在python shell中导入PySpark

时间:2015-04-09 11:41:32

标签: python pyspark

我尝试在$ SPARK_HOME / bin / pyspark文件中添加以下内容:

export PYTHONPATH=$SPARK_HOME/python/:$PYTHONPATH' along with 'export SPARK_HOME' to .bashrc file. In the bashrc I have given the path like this

export SPARK_HOME='/usr/bin/spark'

export PYTHONPATH='/usr/bin/spark/python/:/usr/bin/python'

这是正确的方法吗?因为我无法导入它。我错过了什么吗?

0 个答案:

没有答案