
Access Denied: Cannot drop table dwb_news.article_top_terms: Owner of the table is different from session user
在presto删除表的时候,提示owner of the table is different form seesion user,表的拥有者和当前登录用户不相同,所以无法删除

因为是在本地跑的SparkSQL代码,将数据保存到Hive表中,所以在Hive的MySQL元数据表TBLS中,表的拥有者是windows用户,但是presto的登录用户是root,所以无法删除表
解决办法
将MySQL中TBLS表的owner改为root
本文介绍了解决Presto删除表时遇到的权限问题,即表的所有者与当前登录用户不符导致无法删除的情况。通过修改MySQL元数据中表的所有者为Presto登录用户root来解决该问题。
581

被折叠的 条评论
为什么被折叠?



