2017-05-12 50 views
0

我有業主爲「X」創造了一個蜂巢表「樣本」如何改變蜂房表所有者

hive> show table extended like sample; 

--shows所有者「X」

有沒有辦法我可以改變所有者爲其他'Y',但不重新創建表(不想丟失數據)

已知的選項是直接在postgres配置單元Metastore表中更新所有者。

hive=# update "TBLS" set "OWNER" = 'Y' where "OWNER" = 'X' and "TBL_NAME" = 'sample'; 

這是安全嗎?

回答

0

據我所知,除了直接改變metastore DB之外,沒有其他方法可以做到。我需要這樣做幾次 - 沒有任何問題。