验证Spark安装是否成功报错:/usr/lib/jdk/jdk1.8.0_221/bin/java: 没有那个文件或目录_./bin/run-example:行25: /opt/softwares/spark-3.2.4/-CSDN博客

网站介绍:文章浏览阅读6.2k次,点赞4次,收藏21次。使用命令./bin/run-example SparkPi,验证Spark安装是否成功报错:/usr/local/spark/bin/spark-class: 行 71: /usr/lib/jdk/jdk1.8.0_221/bin/java: 没有那个文件或目录报错情况如下sudo gedit ~/.bashrcsudo gedit ~/.bashrcjdk找不到路径问题,报错如图,直接配置修改文件spark-env中export (导入)jdk的路径即可。..._./bin/run-example:行25: /opt/softwares/spark-3.2.4/bin/spark-submit: 没有那