问题:cdh中设置hive on spark后,hive使用 beeline无法运行,使用hive-client可以运行 ERROR : FAILED: Execution Error, retur

 

1.使用的hive-client

问题:cdh中设置hive on spark后,hive使用 beeline无法运行,使用hive-client可以运行 ERROR : FAILED: Execution Error, retur_第1张图片

 

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中设置hive on spark后,hive使用 beeline无法运行,使用hive-client可以运行 ERROR : FAILED: Execution Error, retur_第2张图片

 

查错误原因为:

cdh未设置set hive.execution.engine=spark

已经设置了,所以不是这个错误

你可能感兴趣的:(hive2)