Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions報錯

时间:2024-03-22 09:40:40

报错
yarn休眠,解决方法:稍微等会,就会反应过来
WARNING: Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. spark, tez) or using Hive 1.X releases.
Error: org.apache.hive.service.cli.HiveSQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask. Permission denied: user=anonymous, access=EXECUTE, inode="/tmp/hadoop-yarn/staging/anonymous/.staging/job_1575623179132_0002":root:supergroup:drwx------

原因是
Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions報錯
解决方法 (在conf的hive-env.sh中将最后一行的 * 号去掉)
Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions報錯
最后显示 最后结果
Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions報錯