Apache Spark with Python: error

前端 未结 8 1634
别跟我提以往
别跟我提以往 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条回答
  •  旧时难觅i
    2021-01-28 16:52

    It looks like you've found the answer to the second part of your question in the above answer, but for future users getting here via the 'org.apache.spark.sql.hive.HiveSessionState' error, this class is found in the spark-hive jar file, which does not come bundled with Spark if it isn't built with Hive.

    You can get this jar at:

    http://central.maven.org/maven2/org/apache/spark/spark-hive_${SCALA_VERSION}/${SPARK_VERSION}/spark-hive_${SCALA_VERSION}-${SPARK_VERSION}.jar
    

    You'll have to put it into your SPARK_HOME/jars folder, and then Spark should be able to find all of the Hive classes required.

提交回复
热议问题