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