You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "dzcxzl (Jira)" <ji...@apache.org> on 2021/09/06 08:49:00 UTC

[jira] [Created] (HIVE-25500) Switch back to alter_partition(s) in HMS client for Hive 2.3.x

dzcxzl created HIVE-25500:
-----------------------------

             Summary: 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


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)