[英]Remove Hive partition Locks
I have a hive table under a schema with 5 partitions 我有一个带有5个分区的模式下的hive表
There are about 9000 partition values, I am trying to unlock a table with the below command 有大约9000个分区值,我试图使用以下命令解锁表
unlock schema.Table-name PARTITION(country_code='KR');
Error that happens is: 发生的错误是:
Return code 1 from org.apache.hadoop.hive.q1.exec.DDLTask.partion spec {country_code=KR} doesnt contain all (5) partition columns 从org.apache.hadoop.hive.q1.exec.DDLTask.partion spec {country_code = KR}返回代码1并不包含所有(5)分区列
Can someone provide a query/solution by which I can unlock the table partitions based on a single partition value? 有人可以提供查询/解决方案,我可以根据单个分区值解锁表分区吗?
2 years later, but it might still help somebody.. The query is missing the keyword table
I think... 2年后,但它可能仍然有助于某人..查询缺少关键字table
我认为...
The following query is working fine for me: unlock table database.cs_generator PARTITION(config_id = '247', d_date = '2019-01-25')
以下查询对我来说运行正常: unlock table database.cs_generator PARTITION(config_id = '247', d_date = '2019-01-25')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.