Hi,

In trunk, since HBASE-3171 (Drop ROOT and instead store META
location(s) directly in ZooKeeper ) there is no more
MetaUtils.ScannerListener.

In the merge, I used it to retreive all the regions belonging to a
specific table, from the META. kind of scan.

          // Retrieve the list of regions for this table.
          final List<HRegionInfo> regions = new Vector<HRegionInfo>();
          utils.scanMetaRegion(HRegionInfo.FIRST_META_REGIONINFO, new
MetaUtils.ScannerListener() {
            public boolean processRow(HRegionInfo info) {
              if ((info != null) &&
(Bytes.compareTo(info.getTableName(), tableName) == 0)) {
                regions.add(info);
              }
              return true;
            }
          });


Is there a recommanded way to replace that? The Merge is running
offline, so I can't do a scan.

Thanks,

JM

Reply via email to