Problem Description:
when deploying hive on spark, the test reports an error, and the table creation operation is successful, but the following error occurs when inserting insert:
Failed to execute spark task, with exception ‘org.apache.hadoop.hive.ql.metadata.HiveException(Failed to create Spark client for Spark session 2df0eb9a-15b4-4d81-aea1-24b12094bf44)’
FAILED: Execution Error, return code 30041 from org.apache.hadoop.hive.ql.exec.spark.SparkTask. Failed to create Spark client for Spark session 2df0eb9a-15b4-4d81-aea1-24b12094bf44
View the hive log according to the required time in the/TMP/Xiaobai path:
cause analysis
prompt timed out waiting for client connection. Indicates that the connection time between hive and spark has timed out
Solution
1). Change the spark-env.sh.template file in/opt/module/spark/conf/directory to spark env. Sh
, and then add the content export spark_ DIST_ CLASSPATH=$(hadoop classpath)
;
2). Change hive-site.xml in/opt/module/hive/conf directory to modify the connection time between hive and spark
execute the insert statement again. Success! Cry with joy
I made a mistake last night. I checked it all night and didn’t solve it. As a result, I solved it today.
Read More:
- org.apache.hadoop.hive.ql.exec.spark.SparkTask. Failed to create Spark client for Spark session 0354
- FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(me
- 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.
- Run spark to report error while identifying ‘ org.apache.spark . sql.hive.HiveSessionState ‘
- Error while instantiating ‘org.apache.spark.sql.hive.HiveExternalCatalog’:
- org.apache.spark.SparkException: Task not serializable
- [Solved] Import org.apache.hadoop.hbase.hbaseconfiguration package cannot be imported
- hbase ERROR org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
- The list command in HBase shell reported an error org.apache.hadoop . hbase.PleaseHoldException : Master is initializing
- Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:exec (default-cli) on project Hello
- Hive view execution plan
- Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool
- Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibat
- [Solved] Spark job failed during runtime. Please check stacktrace for the root cause.
- Habse error: error: org.apache.hadoop . hbase.security.AccessDeniedException : Insufficient
- “Hive metadata problem” hive.metastore.HiveMetaException : Failed to get schema version.
- Spark SQL startup error: error creating transactional connection factory
- Group by operator of hive execution plan
- org.apache.flink.runtime.client.JobSubmissionException: Failed to submit JobGraph