spark-shell The system cannot find the path specified

后端 未结 2 1618
不思量自难忘°
不思量自难忘° 2020-12-21 08:43

I am trying to run spark-shell command on cmd prompt on Windows 7. I have installed hadoop and have kept it under C:\\winutils\\hadoop-common-2.2.0-bin-master\\bin and Spark

相关标签:
2条回答
  • 2020-12-21 08:50

    I have the same issue when trying to install Spark local with Windows 7. Please make sure the below paths is correct and I am sure I will work with you.

    1. Create JAVA_HOME variable: C:\Program Files\Java\jdk1.8.0_181
    2. Add the following part to your path: ;%JAVA_HOME%\bin
    3. Create SPARK_HOME variable: C:\spark-2.3.0-bin-hadoop2.7
    4. Add the following part to your path: ;%SPARK_HOME%\bin
    5. The most important part Hadoop path should include bin file before winutils.ee as the following: C:\Hadoop\bin Sure you will locate winutils.exe inside this path.
    6. Create HADOOP_HOME Variable: C:\Hadoop
    7. Add the following part to your path: ;%HADOOP_HOME%\bin

    Now you can run the cmd and write spark-shell it will work.

    0 讨论(0)
  • 2020-12-21 09:05

    Your JAVA_HOME is set to JRE, please make sure you point it to your JDK folder (it should be located next to your the JRE)

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