修改hive表location

两种方式:

一、通过修改表DDL:

alter table t_m_cc set location 'hdfs://heracles/user/video-mvc/hive/warehouse/t_m_cc'

二、直接修改hive 的meta info:

update `DBS` set `DB_LOCATION_URI` = replace(DB_LOCATION_URI,"oldpath","newpath")
 
update SDS  set location =replace(location,'oldpath,'newpath')

猜你喜欢

转载自blog.csdn.net/map_lixiupeng/article/details/45870635