Environment: CDH5.3.3, Hive version 0.13.1
Execute select * from sample_08 without error,
Execute select code from sample_08 and report the following error:
wrote
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)
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)
After analysis, the final reason is that the user name is incorrectly filled in, the permissions are not enough, and the user name is successfully changed to hdfs.