1.使用的hive-client
2.使用beenline
报错:
ERROR : FAILED: Execution Error, return code 30041 from org.apache.hadoop.hive.ql.exec.spark.SparkTask. Failed to create Spark client for Spark session 1cde724c-04c9-4a2b-a60d-2ada19308d86_4: java.lang.RuntimeException: spark-submit process failed with exit code 1 and error ?
INFO : Completed executing command(queryId=hive_20200402150049_38c805fb-f3da-451a-b267-7d2f7ecdcaaf); Time taken: 3.91 seconds
Error: Error while processing statement: FAILED: Execution Error, return code 30041 from org.apache.hadoop.hive.ql.exec.spark.SparkTask. Failed to create Spark client for Spark session 1cde724c-04c9-4a2b-a60d-2ada19308d86_4: java.lang.RuntimeException: spark-submit process failed with exit code 1 and error ? (state=42000,code=30041)
查错误原因为:
cdh未设置set hive.execution.engine=spark
已经设置了,所以不是这个错误