我尝试在$ 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'
这是正确的方法吗?因为我无法导入它。我错过了什么吗?