我可以在配置单元中将表从内部更改为外部吗? [英] Can I change a table from internal to external in hive?
本文介绍了我可以在配置单元中将表从内部更改为外部吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在蜂巢中创建了一个表作为托管表,但是它应该是外部表,是否可以在不丢失数据的情况下更改表的表类型?
I created a table in hive as a managed table, but it was supposed to be external, is it possible to change the table type of the table without losing the data?
推荐答案
ALTER TABLE <table> SET TBLPROPERTIES('EXTERNAL'='TRUE')
注意:EXTERNAL和TRUE需要设置上限,否则将无效
Note: EXTERNAL and TRUE need to caps or it will not work
这篇关于我可以在配置单元中将表从内部更改为外部吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文