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

后端 未结 2 1590
遥遥无期
遥遥无期 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: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.

提交回复
热议问题