Apache hive MSCK REPAIR TABLE new partition not added

大兔子大兔子 提交于 2019-12-05 08:09:01
HakkiBuyukcengiz

For the MSCK to work, naming convention /partition_name=partition_value/ should be used.

You have to put data in directory named 'region=eastregio' in table location directory:

$ hadoop fs -mkdir 'hdfs://localhost.localdomain:8020/user/hive/warehouse/factory/region=eastregio'
$ hadoop fs -copyFromLocal '/home/cloudera/factory3.txt' 'hdfs://localhost.localdomain:8020/user/hive/warehouse/factory/region=eastregio'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!