Package org.apache.hadoop.hbase.regionserver

Examples of org.apache.hadoop.hbase.regionserver.RegionMergeTransaction


      preMergeBeforePONRCalled = true;
      RegionServerCoprocessorEnvironment environment = ctx.getEnvironment();
      HRegionServer rs = (HRegionServer) environment.getRegionServerServices();
      List<HRegion> onlineRegions =
          rs.getOnlineRegions(TableName.valueOf("testRegionServerObserver_2"));
      rmt = new RegionMergeTransaction(onlineRegions.get(0), onlineRegions.get(1), true);
      if (!rmt.prepare(rs)) {
        LOG.error("Prepare for the region merge of table "
            + onlineRegions.get(0).getTableDesc().getNameAsString()
            + " failed. So returning null. ");
        ctx.bypass();
View Full Code Here


      preMergeBeforePONRCalled = true;
      RegionServerCoprocessorEnvironment environment = ctx.getEnvironment();
      HRegionServer rs = (HRegionServer) environment.getRegionServerServices();
      List<HRegion> onlineRegions =
          rs.getOnlineRegions(TableName.valueOf("testRegionServerObserver_2"));
      rmt = new RegionMergeTransaction(onlineRegions.get(0), onlineRegions.get(1), true);
      if (!rmt.prepare(rs)) {
        LOG.error("Prepare for the region merge of table "
            + onlineRegions.get(0).getTableDesc().getNameAsString()
            + " failed. So returning null. ");
        ctx.bypass();
View Full Code Here

      preMergeBeforePONRCalled = true;
      RegionServerCoprocessorEnvironment environment = ctx.getEnvironment();
      HRegionServer rs = (HRegionServer) environment.getRegionServerServices();
      List<HRegion> onlineRegions =
          rs.getOnlineRegions(TableName.valueOf("testRegionServerObserver_2"));
      rmt = new RegionMergeTransaction(onlineRegions.get(0), onlineRegions.get(1), true);
      if (!rmt.prepare(rs)) {
        LOG.error("Prepare for the region merge of table "
            + onlineRegions.get(0).getTableDesc().getNameAsString()
            + " failed. So returning null. ");
        ctx.bypass();
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.regionserver.RegionMergeTransaction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.