Map<String, String> partitions = new HashMap<String, String>();
for (String part : parts) {
String[] split = part.split("=");
partitions.put(split[0], split[1]);
}
HCatAddPartitionDesc addPtn = HCatAddPartitionDesc.create(db, table, location, partitions).build();
hcatClient.addPartition(addPtn);
assertNotNull(hcatClient.getPartition(db, table, partitions));
}