hive> alter table my_table_name set location "hdfs://nameservice1/foo";
OK
Time taken: 0.173 seconds
hive> alter table my_table_name set location "hdfs://nameservice1/foo/bar";
Authorization failed:org.apache.hadoop.security.AccessControlException: action WRITE not permitted on path hdfs://nameservice1/foo for user hadoop_user. Use show grant to get more details.
從上面的屏幕輸出中可以看出,alter table位置在外部表格上正好工作了一次,隨後引發了一個錯誤。 請諮詢我如何才能讓alter table location語句正常工作。Hive alter location statement not working