使用Hive在往分桶表插入資料是報錯如下
Job Submission failed with exception 'java.io.IOException(The ownership on the s taging directory /tmp/hadoop-yarn/staging/root/.staging is not as expected. It i s owned by hive. The directory must be owned by the submitter root or root)'
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.Ma pRedTask. The ownership on the staging directory /tmp/hadoop-yarn/staging/root/. staging is not as expected. It is owned by hive. The directory must be owned by the submitter root or root

解決方案
執行如下命令,把檔案的所屬組修改為root
hdfs dfs -chown -R root:root /tmp

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/335481.html
標籤:其他
上一篇:源起:這是一場悲催的筆試
