Hive 查询报错原因

环境:CDH5.3.3,Hive版本 0.13.1

执行 select * from sample_08不报错,

执行 select code from sample_08 报错如下:

写道
java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:275)
at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:355)
at hive.HiveJdbcCli.main(HiveJdbcCli.java:50)

 经过分析最后原因,是用户名填写不对,权限不够,用户名改成hdfs成功。

猜你喜欢

转载自qun715715.iteye.com/blog/2220597