Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
public static String getHBaseMetaStoreId() throws IOException { final HBaseAdmin hbaseAdmin = new HBaseAdmin(HBaseConfiguration.create(HadoopUtil.getCurrentConfiguration())); final String metaStoreName = KylinConfig.getInstanceFromEnv().getMetadataUrlPrefix(); final HTableDescriptor desc = hbaseAdmin.getTableDescriptor(TableName.valueOf(metaStoreName)); return "MetaStore UUID: " + desc.getValue(HBaseConnection.HTABLE_UUID_TAG);
hbaseAdmin should be closed upon return.