spark-class java no such file or derectory

眉间皱痕 提交于 2021-02-10 14:20:46

问题


I am a newbie to spark / scala ... I have set up on a fully distributed cluster spark / scala and sbt. when I test and issue the command pyspark I get the following error:

/home/hadoop/spark/bin/spark-class line 75 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java - no such file or directory

my bashrc contains:

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 

hadoop-env.sh contains export JAVA_HOME=/usr/lib/jvm/java7-openjdk-amd64/jre/ 
conf/spark-env.sh contains JAVA_HOME=usr/lib/jvm/java7-openjdk-amd64/jre 
spark-class contains 
if [ -n "${JAVA_HOME"}]; then RUNNER="${JAVA_HOME}/bin/java" else if [ "$( command -v java ) " ] then RUNNER = "java"

can someone assist in what I need to change to get the right path to java


回答1:


I found the issue matched all paths from .bashrc to etc to spark.conf



来源:https://stackoverflow.com/questions/45012189/spark-class-java-no-such-file-or-derectory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!