Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive

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
at org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:379)
at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:257)
at org.apache.hive.service.cli.operation.SQLOperation.access$800(SQLOperation.java:91)
at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:348)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:362)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748) (state=08S01,code=2)

    今天使用beeline连接hive准备进行一些读写操作,但是发现无论如何hive中插不进去数据,我以为是没有开启ORC的事务属性,但是重新创建事务表也没有用,后来与他人的beeline连接字符串对比了一下,我发现自己用户名和密码都填的空,所以没有权限进行插入操作。

    建议大家通过beeline连接的时候不要匿名登陆。

beeline连接字符串:beeline -u jdbc:hive2://192.168.186.10:10010/default  -n "zz" -p "";


你可能感兴趣的:(hive)