1. 18/07/29 00:53:04 ERROR operation.Operation: Error running hive query:
    2. org.apache.hive.service.cli.HiveSQLException: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
    3. at org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:374)
    4. at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:180)
    5. at org.apache.hive.service.cli.operation.SQLOperation.access$100(SQLOperation.java:72)
    6. at org.apache.hive.service.cli.operation.SQLOperation$2$1.run(SQLOperation.java:232)
    7. at java.security.AccessController.doPrivileged(Native Method)
    8. at javax.security.auth.Subject.doAs(Subject.java:415)
    9. at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1693)
    10. at org.apache.hive.service.cli.operation.SQLOperation$2.run(SQLOperation.java:245)
    11. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    12. at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    13. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    14. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    15. at java.lang.Thread.run(Thread.java:745)

    目前具体报错原因未知,可在执行sql语句前加上这句解决上面问题:

    1. set hive.support.concurrency=false;