Spark: Trying to run spark-shell, but get 'cmd' is not recognized as an internal or

前端 未结 10 1916
盖世英雄少女心
盖世英雄少女心 2021-01-11 22:55

I\'m trying to install Spark on my Windows desktop. Everything should work fine, but I get an error \"\'cmd\' is not recognized as an internal or external command... \"

10条回答
  •  误落风尘
    2021-01-11 23:15

    I had the similar error. I fixed it after following changes:

    1. There were multiple Java/bin path in the System Path. So I corrected them to reflect single Java/Bin, which is in sync with JAVA_HOME
    2. Added C:Windows\system32 to System Path Variable.
    3. My Java_Home and java.exe was pointing different places. I fixed them.

    Now it works.

    Thanks guys.

提交回复
热议问题