如果有人能帮我解决以下路径问题,我们将非常感激吗?我非常怀疑这与缺少路径设置有关,但我不知道如何解决它。
rxie@ubuntu:~/Downloads/spark$ echo $PATH
/usr/bin/java:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/rxie/Downloads/s park:/home/rxie/Downloads/spark/bin:/usr/bin/java
rxie@ubuntu:~/Downloads/spark$ pyspark
错误:无法找到或加载主类 org.apache.spark.launcher.Main
rxie @ ubuntu:〜/ Downloads / spark $ spark-shell
错误:无法找到或加载主类 org.apache.spark.launcher.Main
rxie @ ubuntu:〜/ Downloads / spark $ pwd /家庭/ RXIE /下载/火花
rxie@ubuntu:~/Downloads/spark$ ls
bin conf data examples jars kubernetes licenses R yarn
更新了PATH:
rxie@ubuntu:~$ echo $PATH
/home/rxie/Downloads/spark:/usr/bin/java:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
答案 0 :(得分:0)
尝试将SPARK_HOME环境变量设置为〜/ Downloads / spark