Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24609

The alter_partitions method of hive2.1.1 cannot be used to modify partition information of hive1.1.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 2.1.1
    • 4.0.0
    • API
    • CDH6.2.0 CDH5.15.2

    Description

      here is my java-code:

      
      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();       
                      } 
       }
      
      

       

      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

      Attachments

        Activity

          People

            lllli chris mar
            Jufeng jufeng li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h