英文:
spark-3.0.1-bin-hadoop2.7 failed to launch, java: No such file or directory
问题
在接触Java时,我遇到了一些问题。
(为了使用tensorflowonspark,我运行了以下代码)
在Window PowerShell中,
export JAVA_HOME=/mnt/c/Program\ Files/Java/jdk1.8.0_261
${SPARK_HOME}/sbin/start-master.sh
出现以下信息:
starting org.apache.spark.deploy.master.Master, logging to /mnt/c/Users/MY_PATH/spark-3.0.1-bin-hadoop2.7/logs/spark-root-org.apache.spark.deploy.master.Master-1-DESKTOP-5CGUHKF.out
failed to launch: nice -n 0 /mnt/c/Users/MY_PATH/spark-3.0.1-bin-hadoop2.7/bin/spark-class org.apache.spark.deploy.master.Master --host DESKTOP-5CGUHKF.localdomain --port 7077 --webui-port 8080
/mnt/c/Users/MY_PATH/spark-3.0.1-bin-hadoop2.7/bin/spark-class: line 71: /mnt/c/Program Files/Java/jdk1.8.0_261/bin/java: No such file or directory
/mnt/c/Program Files/Java/jdk1.8.0_261# cd bin
/mnt/c/Program Files/Java/jdk1.8.0_261/bin# cd java
bash: cd: java: No such file or directory
/mnt/c/Program Files/Java/jdk1.8.0_261/bin# ls
appletviewer.exe javac.exe jcmd.exe jmap.exe keytool.exe rmic.exe vcruntime140.dll
extcheck.exe javadoc.exe jconsole.exe jps.exe kinit.exe rmid.exe wsgen.exe
idlj.exe javafxpackager.exe jdb.exe jrunscript.exe klist.exe rmiregistry.exe wsimport.exe
jabswitch.exe javah.exe jdeps.exe jsadebugd.exe ktab.exe schemagen.exe xjc.exe
jar.exe javap.exe jhat.exe jstack.exe native2ascii.exe serialver.exe
jarsigner.exe javapackager.exe jinfo.exe jstat.exe orbd.exe servertool.exe
java-rmi.exe javaw.exe jjs.exe jstatd.exe pack200.exe tnameserv.exe
java.exe javaws.exe jli.dll jvisualvm.exe policytool.exe unpack200.exe
在Java中,没有任何 "java" 文件!我该如何解决这个问题?
英文:
Whenever I approach to java, I have some problems.
(To use tensorflowonspark, I run the code)
At windowpowershell,
export JAVA_HOME=/mnt/c/Program\ Files/Java/jdk1.8.0_261
${SPARK_HOME}/sbin/start-master.sh
starting org.apache.spark.deploy.master.Master, logging to /mnt/c/Users/MY_PATH/spark-3.0.1-bin-hadoop2.7/logs/spark-root-org.apache.spark.deploy.master.Master-1-DESKTOP-5CGUHKF.out
failed to launch: nice -n 0 /mnt/c/Users/MY_PATH/spark-3.0.1-bin-hadoop2.7/bin/spark-class org.apache.spark.deploy.master.Master --host DESKTOP-5CGUHKF.localdomain --port 7077 --webui-port 8080
/mnt/c/Users/MY_PATH/spark-3.0.1-bin-hadoop2.7/bin/spark-class: line 71: /mnt/c/Program Files/Java/jdk1.8.0_261/bin/java: No such file or directory
/mnt/c/Program Files/Java/jdk1.8.0_261# cd bin
/mnt/c/Program Files/Java/jdk1.8.0_261/bin# cd java
bash: cd: java: No such file or directory
/mnt/c/Program Files/Java/jdk1.8.0_261/bin# ls
appletviewer.exe javac.exe jcmd.exe jmap.exe keytool.exe rmic.exe vcruntime140.dll
extcheck.exe javadoc.exe jconsole.exe jps.exe kinit.exe rmid.exe wsgen.exe
idlj.exe javafxpackager.exe jdb.exe jrunscript.exe klist.exe rmiregistry.exe wsimport.exe
jabswitch.exe javah.exe jdeps.exe jsadebugd.exe ktab.exe schemagen.exe xjc.exe
jar.exe javap.exe jhat.exe jstack.exe native2ascii.exe serialver.exe
jarsigner.exe javapackager.exe jinfo.exe jstat.exe orbd.exe servertool.exe
java-rmi.exe javaw.exe jjs.exe jstatd.exe pack200.exe tnameserv.exe
java.exe javaws.exe jli.dll jvisualvm.exe policytool.exe unpack200.exe
IN JAVA, THERE ISN'T ANY "java" FILE! HOW CAN I SOLVE IT?
答案1
得分: 1
java.exe
在您的输出中确实存在
您已经为Windows安装了Java,但在使用Shell脚本,这两者将无法一起正常工作。
英文:
java.exe
does exist in your output
You've installed Java for Windows, but using Shell scripts, which will not work together.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论