Package org.apache.hadoop.hbase.client

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.split()


        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
    HRegionInfo hRegionInfo = regionsOfTable.get(0);
    hRegionInfo.getRegionName();
    HTable tableidx = new HTable(conf, userTableName + "_idx");
    admin.split(hRegionInfo.getRegionName(), "row4".getBytes());

    String indexTable = userTableName + "_idx";
    List<HRegionInfo> mainTableRegions =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
View Full Code Here


    List<HRegionInfo> regionsOfTable =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
    HRegionInfo hRegionInfo = regionsOfTable.get(0);
    MockIndexRegionObserver.count++;
    admin.split(hRegionInfo.getRegionName(), "row5".getBytes());
    String indexTable = userTableName + "_idx";
    List<HRegionInfo> mainTableRegions =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
    List<HRegionInfo> indexTableRegions =
View Full Code Here

    MockIndexRegionObserver.count++;
    List<HRegionInfo> regionsOfTable2 =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
    HRegionInfo hRegionInfo1 = regionsOfTable2.get(0);
    admin.split(hRegionInfo1.getRegionName(), "row3".getBytes());
    List<HRegionInfo> mainTableRegions1 =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
    List<HRegionInfo> indexTableRegions1 =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
View Full Code Here

    List<HRegionInfo> regionsOfTable =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
    HRegionInfo hRegionInfo = regionsOfTable.get(0);
    MockIndexRegionObserver.isnullIndexRegion = true;
    admin.split(hRegionInfo.getRegionName(), "row5".getBytes());
    List<HRegionInfo> mainTableRegions =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
    String indexTable = userTableName + "_idx";
    List<HRegionInfo> indexTableRegions =
View Full Code Here

        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
    HRegionInfo hRegionInfo = regionsOfTable.get(0);
    hRegionInfo.getRegionName();
    HTable tableidx = new HTable(conf, userTableName + "_idx");
    admin.split(hRegionInfo.getRegionName(), "row5".getBytes());
    String indexTable = userTableName + "_idx";
    List<HRegionInfo> mainTableRegions =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
View Full Code Here

            .getRegionsOfTable(userTableName.getBytes());
    HRegionInfo hRegionInfo = regionsOfTable.get(0);
    hRegionInfo.getRegionName();

    HTable tableidx = new HTable(conf, userTableName + "_idx");
    admin.split(hRegionInfo.getRegionName(), "row5".getBytes());
    String indexTable = userTableName + "_idx";
    List<HRegionInfo> mainTableRegions =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
View Full Code Here

    List<HRegionInfo> regionsOfTable =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
    HRegionInfo hRegionInfo = regionsOfTable.get(0);
    hRegionInfo.getRegionName();
    admin.split(hRegionInfo.getRegionName(), "row5".getBytes());

    List<HRegionInfo> mainTableRegions =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(userTableName.getBytes());
View Full Code Here

    List<HRegionInfo> regionsOfIndexTable =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(indexTableName.getBytes());

    // try splitting index.
    admin.split(indexTableName.getBytes());
    Thread.sleep(2000);
    regionsOfIndexTable =
        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(indexTableName.getBytes());
    Assert.assertEquals("Index table should not get splited", 1, regionsOfIndexTable.size());
View Full Code Here

        UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
            .getRegionsOfTable(indexTableName.getBytes());
    Assert.assertEquals("Index table should not get splited", 1, regionsOfIndexTable.size());

    // try splitting the user region.
    admin.split(userTableName.getBytes(), "row5".getBytes());
    while (regionsOfUserTable.size() != 2) {
      Thread.sleep(2000);
      regionsOfUserTable =
          UTIL.getMiniHBaseCluster().getMaster().getAssignmentManager()
              .getRegionsOfTable(userTableName.getBytes());
View Full Code Here

      p = new Put(Bytes.toBytes("row" + i));
      p.add(Bytes.toBytes("col1"), Bytes.toBytes("ql"), Bytes.toBytes("test_val"));
      table.put(p);
    }

    admin.split(userTableName, "row5");
    ZKAssign.blockUntilNoRIT(zkw);

    count = manager.getTableRegionCount(userTableName);
    Assert.assertEquals(2, count);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.