hive on spark trip pit Guide

1, execute SQL queries when the newspaper Failed to submit Spark work errors.

Failed to execute spark task, with exception 'java.lang.Exception(Failed to submit Spark work, please retry later)'
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.spark.SparkTask. Failed to submit Spark work, please retry later

This issue needs to look at the specific nature of the error, resolve to do, it should not be attributed to spark the hive versions are not compatible. Suggest that you modify the hive view the error log level, we will be back -e sql error messages into their side to view the output, positioning modifications

hive --hiveconf hive.root.logger=DEBUG,console  -e "use userdb;select count(*) from app_yyb;"

Reproduced in: https: //my.oschina.net/2devil/blog/3056772

Guess you like

Origin blog.csdn.net/weixin_33724046/article/details/91732008