public CatalogPartition getPartition(String catalogUrl, String database, String tableName,
Map<String, String> partitionSpec) throws FalconException {
LOG.info("Fetch partition for : " + tableName + ", partition spec: " + partitionSpec);
try {
HCatClient client = get(catalogUrl);
HCatPartition hCatPartition = client.getPartition(database, tableName, partitionSpec);
return createCatalogPartition(hCatPartition);
} catch (HCatException e) {
throw new FalconException("Exception fetching partition:" + e.getMessage(), e);
}
}