throw new UnsupportedOperationException("Creation of partition is not supported for " + uri);
}
@Override
public boolean delete(URI uri, Configuration conf) throws LauncherException {
HCatClient client = getHCatClient(uri, conf);
try {
HCatURI hcatURI = new HCatURI(uri.toString());
client.dropPartitions(hcatURI.getDb(), hcatURI.getTable(), hcatURI.getPartitionMap(), true);
System.out.println("Dropped partitions for " + uri);
return true;
}
catch (ConnectionFailureException e) {
throw new LauncherException("Error trying to drop " + uri, e);