You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2022/10/21 07:32:01 UTC

[jira] [Updated] (HIVE-24609) The alter_partitions method of hive2.1.1 cannot be used to modify partition information of hive1.1.0

     [ https://issues.apache.org/jira/browse/HIVE-24609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stamatis Zampetakis updated HIVE-24609:
---------------------------------------
    Fix Version/s:     (was: 4.0.0)

I cleared the fixVersion field since this ticket is not resolved. Please review this ticket and if the fix is already committed to a specific version please set the version accordingly and mark the ticket as RESOLVED.

According to the JIRA guidelines (https://cwiki.apache.org/confluence/display/Hive/HowToContribute) the fixVersion should be set only when the issue is resolved/closed.

> The alter_partitions method of hive2.1.1 cannot be used to modify partition information of hive1.1.0
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-24609
>                 URL: https://issues.apache.org/jira/browse/HIVE-24609
>             Project: Hive
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.1.1
>         Environment: CDH6.2.0 CDH5.15.2
>            Reporter: jufeng li
>            Assignee: chris mar
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> here is my java-code:
> {code:java}
> public static void descFormatTable(String dbName, String tableName) {  
>       try {    
>           String confPath = "hive-site.xml";    
>           HiveConf hc = new HiveConf();     
>           hc.addResource(confPath);     
>           HiveMetaStoreClient hmsc = new HiveMetaStoreClient(hc);                  
>           hmsc.alter_partitions(dbName, tableName, list);
>          } catch (TException e) {            
>                     e.printStackTrace();       
>                 } 
>  }
> {code}
>  
> It can not be execute,When I used the alter_partitions API in Hive 2.1.1 to modify the partition information in Hive 1.1.0, it didn't work. The underlying code implementation was responsive, but it wasn't exposed



--
This message was sent by Atlassian Jira
(v8.20.10#820010)