Details
-
Bug
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
2.1.1
-
None
-
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