@Override public List<TableId> listTables(HBaseAdmin admin) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTables(); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTables(HBaseAdmin admin) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTables(); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTables(HBaseAdmin admin) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTables(); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTables(HBaseAdmin admin) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTables(); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTables(HBaseAdmin admin) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTables(); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTables(HBaseAdmin admin) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTables(); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTables(HBaseAdmin admin) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTables(); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTablesInNamespace(HBaseAdmin admin, String namespaceId) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTableDescriptorsByNamespace(HTableNameConverter.encodeHBaseEntity(namespaceId)); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTablesInNamespace(HBaseAdmin admin, String namespaceId) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTableDescriptorsByNamespace(HTableNameConverter.encodeHBaseEntity(namespaceId)); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTablesInNamespace(HBaseAdmin admin, String namespaceId) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTableDescriptorsByNamespace(HTableNameConverter.encodeHBaseEntity(namespaceId)); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTablesInNamespace(HBaseAdmin admin, String namespaceId) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTableDescriptorsByNamespace(HTableNameConverter.encodeHBaseEntity(namespaceId)); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTablesInNamespace(HBaseAdmin admin, String namespaceId) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTableDescriptorsByNamespace(HTableNameConverter.encodeHBaseEntity(namespaceId)); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTablesInNamespace(HBaseAdmin admin, String namespaceId) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTableDescriptorsByNamespace(HTableNameConverter.encodeHBaseEntity(namespaceId)); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
@Override public List<TableId> listTablesInNamespace(HBaseAdmin admin, String namespaceId) throws IOException { List<TableId> tableIds = Lists.newArrayList(); HTableDescriptor[] hTableDescriptors = admin.listTableDescriptorsByNamespace(HTableNameConverter.encodeHBaseEntity(namespaceId)); for (HTableDescriptor hTableDescriptor : hTableDescriptors) { if (isCDAPTable(hTableDescriptor)) { tableIds.add(HTableNameConverter.from(hTableDescriptor)); } } return tableIds; }
private void upgradeUserTable(HTableDescriptor desc) throws IOException { TableId tableId = HTableNameConverter.from(desc); LOG.info("Upgrading hbase table: {}, desc: {}", tableId, desc); final boolean supportsIncrement = HBaseTableAdmin.supportsReadlessIncrements(desc); final boolean transactional = HBaseTableAdmin.isTransactional(desc); DatasetAdmin admin = new AbstractHBaseDataSetAdmin(tableId, hConf, cConf, hBaseTableUtil, locationFactory) { @Override protected CoprocessorJar createCoprocessorJar() throws IOException { return HBaseTableAdmin.createCoprocessorJarInternal(cConf, coprocessorManager, hBaseTableUtil, transactional, supportsIncrement); } @Override protected boolean needsUpdate(HTableDescriptor tableDescriptor, HTableDescriptorBuilder descriptorBuilder) { return false; } @Override public void create() throws IOException { // no-op throw new UnsupportedOperationException("This DatasetAdmin is only used for upgrade() operation"); } }; admin.upgrade(); LOG.info("Upgraded hbase table: {}", tableId); }
continue; TableId tableId = HTableNameConverter.from(tableDescriptor); TableStats stat = datasetStat.get(tableId); if (stat == null) {
continue; TableId tableId = HTableNameConverter.from(tableDescriptor); TableStats stat = datasetStat.get(tableId); if (stat == null) {