[
https://issues.apache.org/jira/browse/HIVE-25500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HIVE-25500:
----------------------------------
Labels: pull-request-available (was: )
> Switch back to alter_partition(s) in HMS client for Hive 2.3.x
> --------------------------------------------------------------
>
> Key: HIVE-25500
> URL: https://issues.apache.org/jira/browse/HIVE-25500
> Project: Hive
> Issue Type: Improvement
> Components: Metastore
> Affects Versions: 2.3.9
> Reporter: dzcxzl
> Assignee: dzcxzl
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> HIVE-12730 uses alter_partition_with_environment_context and
> alter_partitions_with_environment_context instead of alter_partition and
> alter_partitions when the EnvironmentContext is null.
> This causes the client version to be greater than 2.1 to connect to
> server<2.1, and this error will occur.
> {code:java}
> Caused by: org.apache.thrift.TApplicationException: Invalid method name:
> 'alter_partitions_with_environment_context'
> at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79)
> at
> org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_alter_partitions_with_environment_context(ThriftHiveMetastore.java:2843)
> at
> org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.alter_partitions_with_environment_context(ThriftHiveMetastore.java:2827)
> at
> org.apache.hadoop.hive.metastore.HiveMetaStoreClient.alter_partitions(HiveMetaStoreClient.java:1524)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)