Presto Cannot write to non-managed Hive table

Posted 光于前裕于后

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Presto Cannot write to non-managed Hive table相关的知识,希望对你有一定的参考价值。

使用Presto向Hive表插数据时遇到这个错,我还是头回碰见。

Cannot write to non-managed Hive table

网上搜了一下也没发现类似的错,不过让我注意到了non-managed Hive table。
那么,什么是non-managed Hive table?
查了一下才发现,原来 Managed Table 就是 Internal Table,也就是内部表,当建表时没有指明Managed或者External,就会默认创建Managed Table。
而 non-managed table 对应的就是External Table,即外部表。
内部表和外部表的使用场景大家应该都清楚,下面再贴一下1

回到最初的问题,大家应该都明白了~这说明(见下)
Presto不支持写入Hive外部表,此时可能需要重新创建内部表。当然,不要忘了保存历史数据哦~

ALTER TABLE old_name RENAME 

以上是关于Presto Cannot write to non-managed Hive table的主要内容,如果未能解决你的问题,请参考以下文章

linux wget下载文件出现 Cannot write to ‘文件名’ (Success).的问题

Windows7 caffe训练cifar10,出现 Cannot write to snapshot prefix 'examples/cifar10/cifar10_qui

touch: cannot touch ‘/var/jenkins_home/copy_reference_file.log’: Permission denied Can not write to

zabbix Get value from agent failed: cannot connect to [[10.2.72.132]:10050]: [113] No route to host

Debian下Cannot set LC_CTYPE to default locale: No such file or directory解决方法

Debian下Cannot set LC_CTYPE to default locale: No such file or directory解决方法