Problem description
Recently, I changed a computer and tested the spark streaming code of the original computer to the new computer. I used idea to run it, but I reported an error
Error while instantiating 'org.apache.spark.sql.hive.HiveSessionState'
The root scratch dir: /tmp/hive on HDFS should be writable
After checking, it is found that/TMP/hive has insufficient permissions
resolvent
First, make sure that there is Hadoop on the computer and that Hadoop is configured_ The home environment variable ensures% Hadoop_ HOME%\bin\ winutils.exe , winutils.exe The following code can be executed in Baidu CMD, where f is my code running directory
%HADOOP_HOME%\bin\winutils.exe ls F:\tmp\hive
%HADOOP_HOME%\bin\winutils.exe chmod 777 F:\tmp\hive
%HADOOP_HOME%\bin\winutils.exe ls F:\tmp\hive
After modification, spark streaming can run normally
Read More:
- org.apache.hadoop.hive.ql.exec.spark.SparkTask. Failed to create Spark client for Spark session 0354
- Error while instantiating ‘org.apache.spark.sql.hive.HiveExternalCatalog’:
- [Solved] hiveonspark:Execution Error, return code 30041 from org.apache.hadoop.hive.ql.exec.spark.SparkTask
- org.apache.spark.SparkException: Task not serializable
- [Solved] Spark SQL Error: File xxx could only be written to 0 of the 1 minReplication nodes.
- Spark SQL startup error: error creating transactional connection factory
- spark SQL Export Data to Kafka error [How to Solve]
- Spark shell startup error, error: not found: value spark (low level solved)
- [Solved] Spark job failed during runtime. Please check stacktrace for the root cause.
- FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(me
- Several ways to view spark task log
- Failed: execution error, return code 1 from org.apache.hadoop . hive.ql.exec .DDLTask…
- Execution error, return code 1 from org.apache.hadoop . hive.ql.exec .DDLTask.
- pyspark : NameError: name ‘spark’ is not defined
- Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibat
- Wamp Apache can’t run error report could not execute menu item
- Zeppelin uses spark to connect to MySQL and reports an error
- Accelerating spark iterative computation with coalesce
- How to deal with NullPointerException error in row.getlong in spark – sparksql
- Exit spark shell