本文整理汇总了Java中org.apache.hadoop.hbase.coprocessor.BaseMasterObserver类的典型用法代码示例。如果您正苦于以下问题:Java BaseMasterObserver类的具体用法?Java BaseMasterObserver怎么用?Java BaseMasterObserver使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BaseMasterObserver类属于org.apache.hadoop.hbase.coprocessor包,在下文中一共展示了BaseMasterObserver类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import org.apache.hadoop.hbase.coprocessor.BaseMasterObserver; //导入依赖的package包/类
/**
* Setup
* @throws Exception
*/
@Before
public void setUp() throws Exception {
TEST_UTIL.getConfiguration().setInt("hfile.format.version", 3);
TEST_UTIL.getConfiguration().setClass("hbase.hregion.impl", HMobRegion.class,
HRegion.class);
TEST_UTIL.getConfiguration().setClass(DefaultStoreEngine.DEFAULT_STORE_FLUSHER_CLASS_KEY,
DefaultMobStoreFlusher.class, DefaultStoreFlusher.class);
TEST_UTIL.getConfiguration().setClass("hbase.coprocessor.master.classes",
MobMasterObserver.class, BaseMasterObserver.class);
qualifiers.add(qf1);
qualifiers.add(qf3);
qualifiers.add(qf5);
Iterator<byte[]> iter = qualifiers.iterator();
while(iter.hasNext()){
byte [] next = iter.next();
expected.add(new KeyValue(row, family, next, 1, value));
get.addColumn(family, next);
get.setMaxVersions(); // all versions.
}
}
示例2: setUpBeforeClass
import org.apache.hadoop.hbase.coprocessor.BaseMasterObserver; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass() throws Exception {
TEST_UTIL.getConfiguration().setInt("hbase.master.info.port", 0);
TEST_UTIL.getConfiguration().setBoolean("hbase.regionserver.info.port.auto", true);
TEST_UTIL.getConfiguration().setInt("hfile.format.version", 3);
TEST_UTIL.getConfiguration().setClass("hbase.hregion.impl", HMobRegion.class,
HRegion.class);
TEST_UTIL.getConfiguration().setClass(DefaultStoreEngine.DEFAULT_STORE_FLUSHER_CLASS_KEY,
DefaultMobStoreFlusher.class, DefaultStoreFlusher.class);
TEST_UTIL.getConfiguration().setClass("hbase.coprocessor.master.classes",
MobMasterObserver.class, BaseMasterObserver.class);
TEST_UTIL.startMiniCluster(1);
}
示例3: setUpBeforeClass
import org.apache.hadoop.hbase.coprocessor.BaseMasterObserver; //导入依赖的package包/类
@BeforeClass
public static void setUpBeforeClass() throws Exception {
TEST_UTIL.getConfiguration().setInt("hbase.master.info.port", 0);
TEST_UTIL.getConfiguration().setBoolean("hbase.regionserver.info.port.auto", true);
TEST_UTIL.getConfiguration().setClass("hbase.hregion.impl", HMobRegion.class,
HRegion.class);
TEST_UTIL.getConfiguration().setClass(DefaultStoreEngine.DEFAULT_STORE_FLUSHER_CLASS_KEY,
DefaultMobStoreFlusher.class, DefaultStoreFlusher.class);
TEST_UTIL.getConfiguration().setClass("hbase.coprocessor.master.classes",
MobMasterObserver.class, BaseMasterObserver.class);
TEST_UTIL.startMiniCluster(1);
}