.append("/").append(partitions);
return new URI(uri.toString());
}
public void createDatabase(String db, String location) throws Exception {
HCatCreateDBDesc dbDesc = HCatCreateDBDesc.create(db).ifNotExists(true).location(location).build();
hcatClient.createDatabase(dbDesc);
List<String> dbNames = hcatClient.listDatabaseNamesByPattern(db);
Assert.assertTrue(dbNames.contains(db));
}