YARN-9303 Username splits won't help timelineservice.app_flow table. Contributed by Prabhu Joseph.

This commit is contained in:
Vrushali C 2019-04-03 22:53:05 -07:00
parent f09a78f73f
commit eb03f7c419

View File

@ -79,13 +79,7 @@ public void createTable(Admin admin, Configuration hbaseConf)
mappCF.setBloomFilterType(BloomType.ROWCOL);
appToFlowTableDescp.addFamily(mappCF);
appToFlowTableDescp
.setRegionSplitPolicyClassName(
"org.apache.hadoop.hbase.regionserver.KeyPrefixRegionSplitPolicy");
appToFlowTableDescp.setValue("KeyPrefixRegionSplitPolicy.prefix_length",
TimelineHBaseSchemaConstants.USERNAME_SPLIT_KEY_PREFIX_LENGTH);
admin.createTable(appToFlowTableDescp,
TimelineHBaseSchemaConstants.getUsernameSplits());
admin.createTable(appToFlowTableDescp);
LOG.info("Status of table creation for " + table.getNameAsString() + "="
+ admin.tableExists(table));
}