spark-class: line 71…No such file or directory

后端 未结 2 1589
遥遥无期
遥遥无期 2021-02-15 16:40

I\'ve installed Spark 2.1.1 on Ubuntu and no matter what I do, it doesn\'t seem to agree with the java path. When I run \"spark-submit --version\" or \"spark-shell\" I get the f

相关标签:
2条回答
  • 2021-02-15 17:08

    In the /etc/environment file replace

    JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/ 
    

    with

    JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/
    

    then execute

    source /etc/environment 
    

    also RUNNER="${JAVA_HOME}/bin/java" should be kept as it is

    0 讨论(0)
  • 2021-02-15 17:13

    Windows Environment:

    Open Advanced system settings -> Environment Variables to set JAVA_HOME path, and the most common mistake is setting the path to JAVA folder:

    JAVA_HOME: Directory-Name:\java
    

    rather than setting it to JDK folder

    JAVA_HOME: Directory-Name:\jdk
    

    This is how it worked for me.

    0 讨论(0)
提交回复
热议问题