You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Mithun Radhakrishnan (JIRA)" <ji...@apache.org> on 2016/03/17 00:59:33 UTC
[jira] [Commented] (HIVE-12158) Add methods to HCatClient for
partition synchronization
[ https://issues.apache.org/jira/browse/HIVE-12158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15198449#comment-15198449 ]
Mithun Radhakrishnan commented on HIVE-12158:
---------------------------------------------
[~sushanth], [~nahguam], sorry for the delay.
I agree with the spirit of this patch. Thank you for working on this. (I just came across a user who needed this as well.)
Please change HCatClientHMSImpl.java::Line#537 to compare table-name instead of db-name. I'll take a closer look at your tests. (Tests! Thank you!)
> Add methods to HCatClient for partition synchronization
> -------------------------------------------------------
>
> Key: HIVE-12158
> URL: https://issues.apache.org/jira/browse/HIVE-12158
> Project: Hive
> Issue Type: Improvement
> Components: HCatalog
> Affects Versions: 2.0.0
> Reporter: David Maughan
> Assignee: David Maughan
> Priority: Minor
> Labels: hcatalog
> Attachments: HIVE-12158.1.patch
>
>
> We have a use case where we have a list of partitions that are created as a result of a batch job (new or updated) outside of Hive and would like to synchronize them with the Hive MetaStore. We would like to use the HCatalog {{HCatClient}} but it currently does not seem to support this. However it is possible with the {{HiveMetaStoreClient}} directly. I am proposing to add the following method to {{HCatClient}} and {{HCatClientHMSImpl}}:
> A method for altering partitions. The implementation would delegate to {{HiveMetaStoreClient#alter_partitions}}. I've used "update" instead of "alter" in the name so it's consistent with the {{HCatClient#updateTableSchema}} method.
> {code}
> public void updatePartitions(List<HCatPartition> partitions) throws HCatException
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)