两种方式:

一、通过修改表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')

相关文章:

  • 2022-12-23
  • 2021-11-10
  • 2021-08-12
  • 2021-11-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-15
  • 2021-08-17
  • 2022-01-05
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
相关资源
相似解决方案