Apache Spark with Python: error

前端 未结 8 1782
别跟我提以往
别跟我提以往 2021-01-28 16:42

New to Spark. Downloaded everything alright but when I run pyspark I get the following errors:

Type \"help\", \"copyright\", \"credits\" or \"license\" for more          


        
8条回答
  •  灰色年华
    2021-01-28 16:49

    I also encountered this issue on Windows 7 with pre-built Spark 2.2. Here is a possible solution for Windows guys:

    1. make sure you get all the environment path set correctly, including SPARK_PATH, HADOOP_HOME, etc.

    2. get the correct version of winutils.exe for the Spark-Hadoop prebuilt package

    3. then open a cmd prompt as Administration, run this command:

      winutils chmod 777 C:\tmp\hive

      Note: The drive might be different depending on where you invoke pyspark or spark-shell

    This link should take the credit: see the answer by timesking

提交回复
热议问题