无法启动 Spark-shell
Can not start Spark-shell
您好,我已经解压缩并导出了 spark 路径。当我启动它时出现此错误。
export PATH=$PATH:/usr/local/spark/spark24/bin
$火花-shell
错误
Traceback (most recent call last):
File "/usr/local/bin/find_spark_home.py", line 74, in <module>
print(_find_spark_home())
File "/usr/local/bin/find_spark_home.py", line 56, in _find_spark_home
module_home = os.path.dirname(find_spec("pyspark").origin)
AttributeError: 'NoneType' object has no attribute 'origin'
/usr/local/bin/spark-shell: line 57: /bin/spark-submit: No such file or directory
我的问题是什么。
你设置了吗SPARK_HOME?
export SPARK_HOME=/usr/local/spark/spark24
您好,我已经解压缩并导出了 spark 路径。当我启动它时出现此错误。
export PATH=$PATH:/usr/local/spark/spark24/bin
$火花-shell
错误
Traceback (most recent call last):
File "/usr/local/bin/find_spark_home.py", line 74, in <module>
print(_find_spark_home())
File "/usr/local/bin/find_spark_home.py", line 56, in _find_spark_home
module_home = os.path.dirname(find_spec("pyspark").origin)
AttributeError: 'NoneType' object has no attribute 'origin'
/usr/local/bin/spark-shell: line 57: /bin/spark-submit: No such file or directory
我的问题是什么。
你设置了吗SPARK_HOME?
export SPARK_HOME=/usr/local/spark/spark24