Hive修改表的所有者(Owner)

参考:https://stackoverflow.com/questions/44448675/how-to-change-ownership-of-hive-table-database

You can try following with superuser

ALTER (DATABASE|SCHEMA) database_name SET OWNER [USER|ROLE] user_or_role;   -- (Note: Hive 0.13.0 and later; SCHEMA added in Hive 0.14.0)

If your Hadoop cluster is Kerberos enabled then there is no way you can change the ownership with non-super user account. If this would have been possible then there is no use of Permissions.

posted @ 2021-08-30 14:19  梦醒江南·Infinite  阅读(1592)  评论(0编辑  收藏  举报