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.
Run Code Online (Sandbox Code Playgroud)
如上面的屏幕输出所示,alter table位置在外部表上只运行一次,然后抛出错误.请告诉我如何使alter table location语句起作用.
hive ×1