Java 类org.apache.hadoop.hbase.regionserver.snapshot.RegionServerSnapshotManager 实例源码

项目:ditb    文件:TestRestoreFlushSnapshotFromClient.java   
@BeforeClass
public static void setUpBeforeClass() throws Exception {
  UTIL.getConfiguration().setBoolean("hbase.online.schema.update.enable", true);
  UTIL.getConfiguration().setInt("hbase.regionserver.msginterval", 100);
  UTIL.getConfiguration().setInt("hbase.client.pause", 250);
  UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 6);
  UTIL.getConfiguration().setBoolean(
      "hbase.master.enabletable.roundrobin", true);

  // Enable snapshot
  UTIL.getConfiguration().setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, true);
  UTIL.getConfiguration().setLong(RegionServerSnapshotManager.SNAPSHOT_TIMEOUT_MILLIS_KEY,
    RegionServerSnapshotManager.SNAPSHOT_TIMEOUT_MILLIS_DEFAULT * 2);

  UTIL.startMiniCluster(3);
}
项目:pbase    文件:TestRestoreFlushSnapshotFromClient.java   
@BeforeClass
public static void setUpBeforeClass() throws Exception {
  UTIL.getConfiguration().setBoolean("hbase.online.schema.update.enable", true);
  UTIL.getConfiguration().setInt("hbase.regionserver.msginterval", 100);
  UTIL.getConfiguration().setInt("hbase.client.pause", 250);
  UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 6);
  UTIL.getConfiguration().setBoolean(
      "hbase.master.enabletable.roundrobin", true);

  // Enable snapshot
  UTIL.getConfiguration().setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, true);
  UTIL.getConfiguration().setLong(RegionServerSnapshotManager.SNAPSHOT_TIMEOUT_MILLIS_KEY,
    RegionServerSnapshotManager.SNAPSHOT_TIMEOUT_MILLIS_DEFAULT * 2);

  UTIL.startMiniCluster(3);
}
项目:HIndex    文件:TestRestoreFlushSnapshotFromClient.java   
@BeforeClass
public static void setUpBeforeClass() throws Exception {
  UTIL.getConfiguration().setBoolean("hbase.online.schema.update.enable", true);
  UTIL.getConfiguration().setInt("hbase.regionserver.msginterval", 100);
  UTIL.getConfiguration().setInt("hbase.client.pause", 250);
  UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 6);
  UTIL.getConfiguration().setBoolean(
      "hbase.master.enabletable.roundrobin", true);

  // Enable snapshot
  UTIL.getConfiguration().setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, true);
  UTIL.getConfiguration().setLong(RegionServerSnapshotManager.SNAPSHOT_TIMEOUT_MILLIS_KEY,
    RegionServerSnapshotManager.SNAPSHOT_TIMEOUT_MILLIS_DEFAULT * 2);

  UTIL.startMiniCluster(3);
}
项目:PyroDB    文件:TestRestoreFlushSnapshotFromClient.java   
@BeforeClass
public static void setUpBeforeClass() throws Exception {
  UTIL.getConfiguration().setBoolean("hbase.online.schema.update.enable", true);
  UTIL.getConfiguration().setInt("hbase.regionserver.msginterval", 100);
  UTIL.getConfiguration().setInt("hbase.client.pause", 250);
  UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 6);
  UTIL.getConfiguration().setBoolean(
      "hbase.master.enabletable.roundrobin", true);

  // Enable snapshot
  UTIL.getConfiguration().setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, true);
  UTIL.getConfiguration().setLong(RegionServerSnapshotManager.SNAPSHOT_TIMEOUT_MILLIS_KEY,
    RegionServerSnapshotManager.SNAPSHOT_TIMEOUT_MILLIS_DEFAULT * 2);

  UTIL.startMiniCluster(3);
}
项目:c5    文件:TestRestoreFlushSnapshotFromClient.java   
@BeforeClass
public static void setUpBeforeClass() throws Exception {
  UTIL.getConfiguration().setBoolean("hbase.online.schema.update.enable", true);
  UTIL.getConfiguration().setInt("hbase.regionserver.msginterval", 100);
  UTIL.getConfiguration().setInt("hbase.client.pause", 250);
  UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 6);
  UTIL.getConfiguration().setBoolean(
      "hbase.master.enabletable.roundrobin", true);

  // Enable snapshot
  UTIL.getConfiguration().setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, true);
  UTIL.getConfiguration().setLong(RegionServerSnapshotManager.SNAPSHOT_TIMEOUT_MILLIS_KEY,
    RegionServerSnapshotManager.SNAPSHOT_TIMEOUT_MILLIS_DEFAULT * 2);

  UTIL.startMiniCluster(3);
}
项目:ditb    文件:RegionServerProcedureManagerHost.java   
@Override
public void loadProcedures(Configuration conf) {
  loadUserProcedures(conf, REGIONSERVER_PROCEDURE_CONF_KEY);
  // load the default snapshot manager
  procedures.add(new RegionServerSnapshotManager());
  // load the default flush region procedure manager
  procedures.add(new RegionServerFlushTableProcedureManager());
}
项目:LCIndex-HBase-0.94.16    文件:HRegionServer.java   
/**
 * Bring up connection to zk ensemble and then wait until a master for this cluster and then after
 * that, wait until cluster 'up' flag has been set. This is the order in which master does things.
 * Finally put up a catalog tracker.
 * @throws IOException
 * @throws InterruptedException
 */
private void initializeZooKeeper() throws IOException, InterruptedException {
  // Open connection to zookeeper and set primary watcher
  this.zooKeeper = new ZooKeeperWatcher(conf, REGIONSERVER + ":" + this.isa.getPort(), this);

  // Create the master address manager, register with zk, and start it. Then
  // block until a master is available. No point in starting up if no master
  // running.
  this.masterAddressManager = new MasterAddressTracker(this.zooKeeper, this);
  this.masterAddressManager.start();
  blockAndCheckIfStopped(this.masterAddressManager);

  // Wait on cluster being up. Master will set this flag up in zookeeper
  // when ready.
  this.clusterStatusTracker = new ClusterStatusTracker(this.zooKeeper, this);
  this.clusterStatusTracker.start();
  blockAndCheckIfStopped(this.clusterStatusTracker);

  // Create the catalog tracker and start it;
  this.catalogTracker = new CatalogTracker(this.zooKeeper, this.conf, this);
  catalogTracker.start();

  // watch for snapshots
  try {
    this.snapshotManager = new RegionServerSnapshotManager(this);
  } catch (KeeperException e) {
    this.abort("Failed to reach zk cluster when creating snapshot handler.");
  }
}
项目:pbase    文件:RegionServerProcedureManagerHost.java   
@Override
public void loadProcedures(Configuration conf) {
  loadUserProcedures(conf, REGIONSERVER_PROCEDURE_CONF_KEY);
  // load the default snapshot manager
  procedures.add(new RegionServerSnapshotManager());
  // load the default flush region procedure manager
  procedures.add(new RegionServerFlushTableProcedureManager());
}
项目:IRIndex    文件:HRegionServer.java   
/**
 * Bring up connection to zk ensemble and then wait until a master for this
 * cluster and then after that, wait until cluster 'up' flag has been set.
 * This is the order in which master does things.
 * Finally put up a catalog tracker.
 * @throws IOException
 * @throws InterruptedException
 */
private void initializeZooKeeper() throws IOException, InterruptedException {
  // Open connection to zookeeper and set primary watcher
  this.zooKeeper = new ZooKeeperWatcher(conf, REGIONSERVER + ":" +
    this.isa.getPort(), this);

  // Create the master address manager, register with zk, and start it.  Then
  // block until a master is available.  No point in starting up if no master
  // running.
  this.masterAddressManager = new MasterAddressTracker(this.zooKeeper, this);
  this.masterAddressManager.start();
  blockAndCheckIfStopped(this.masterAddressManager);

  // Wait on cluster being up.  Master will set this flag up in zookeeper
  // when ready.
  this.clusterStatusTracker = new ClusterStatusTracker(this.zooKeeper, this);
  this.clusterStatusTracker.start();
  blockAndCheckIfStopped(this.clusterStatusTracker);

  // Create the catalog tracker and start it;
  this.catalogTracker = new CatalogTracker(this.zooKeeper, this.conf, this);
  catalogTracker.start();

  // watch for snapshots
  try {
    this.snapshotManager = new RegionServerSnapshotManager(this);
  } catch (KeeperException e) {
    this.abort("Failed to reach zk cluster when creating snapshot handler.");
  }
}
项目:hbase    文件:RegionServerProcedureManagerHost.java   
@Override
public void loadProcedures(Configuration conf) {
  loadUserProcedures(conf, REGIONSERVER_PROCEDURE_CONF_KEY);
  // load the default snapshot manager
  procedures.add(new RegionServerSnapshotManager());
  // load the default flush region procedure manager
  procedures.add(new RegionServerFlushTableProcedureManager());
}
项目:hbase    文件:TestRestoreFlushSnapshotFromClient.java   
protected static void setupConf(Configuration conf) {
  UTIL.getConfiguration().setInt("hbase.regionserver.msginterval", 100);
  UTIL.getConfiguration().setInt("hbase.client.pause", 250);
  UTIL.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 6);
  UTIL.getConfiguration().setBoolean(
      "hbase.master.enabletable.roundrobin", true);

  // Enable snapshot
  UTIL.getConfiguration().setBoolean(SnapshotManager.HBASE_SNAPSHOT_ENABLED, true);
  UTIL.getConfiguration().setLong(RegionServerSnapshotManager.SNAPSHOT_TIMEOUT_MILLIS_KEY,
    RegionServerSnapshotManager.SNAPSHOT_TIMEOUT_MILLIS_DEFAULT * 2);
}
项目:PyroDB    文件:RegionServerProcedureManagerHost.java   
@Override
public void loadProcedures(Configuration conf) {
  loadUserProcedures(conf, REGIONSERVER_PROCEDURE_CONF_KEY);
  // load the default snapshot manager
  procedures.add(new RegionServerSnapshotManager());
  // load the default flush region procedure manager
  procedures.add(new RegionServerFlushTableProcedureManager());
}
项目:HBase-Research    文件:HRegionServer.java   
/**
 * Bring up connection to zk ensemble and then wait until a master for this
 * cluster and then after that, wait until cluster 'up' flag has been set.
 * This is the order in which master does things.
 * Finally put up a catalog tracker.
 * @throws IOException
 * @throws InterruptedException
 */
private void initializeZooKeeper() throws IOException, InterruptedException {
  // Open connection to zookeeper and set primary watcher
  this.zooKeeper = new ZooKeeperWatcher(conf, REGIONSERVER + ":" +
    this.isa.getPort(), this);

  // Create the master address manager, register with zk, and start it.  Then
  // block until a master is available.  No point in starting up if no master
  // running.
  this.masterAddressManager = new MasterAddressTracker(this.zooKeeper, this);
  this.masterAddressManager.start();
  blockAndCheckIfStopped(this.masterAddressManager);

  // Wait on cluster being up.  Master will set this flag up in zookeeper
  // when ready.
  this.clusterStatusTracker = new ClusterStatusTracker(this.zooKeeper, this);
  this.clusterStatusTracker.start();
  blockAndCheckIfStopped(this.clusterStatusTracker);

  // Create the catalog tracker and start it;
  this.catalogTracker = new CatalogTracker(this.zooKeeper, this.conf, this);
  catalogTracker.start();

  // watch for snapshots
  try {
    this.snapshotManager = new RegionServerSnapshotManager(this);
  } catch (KeeperException e) {
    this.abort("Failed to reach zk cluster when creating snapshot handler.");
  }
}
项目:hbase-0.94.8-qod    文件:HRegionServer.java   
/**
 * Bring up connection to zk ensemble and then wait until a master for this
 * cluster and then after that, wait until cluster 'up' flag has been set.
 * This is the order in which master does things.
 * Finally put up a catalog tracker.
 * @throws IOException
 * @throws InterruptedException
 */
private void initializeZooKeeper() throws IOException, InterruptedException {
  // Open connection to zookeeper and set primary watcher
  this.zooKeeper = new ZooKeeperWatcher(conf, REGIONSERVER + ":" +
    this.isa.getPort(), this);

  // Create the master address manager, register with zk, and start it.  Then
  // block until a master is available.  No point in starting up if no master
  // running.
  this.masterAddressManager = new MasterAddressTracker(this.zooKeeper, this);
  this.masterAddressManager.start();
  blockAndCheckIfStopped(this.masterAddressManager);

  // Wait on cluster being up.  Master will set this flag up in zookeeper
  // when ready.
  this.clusterStatusTracker = new ClusterStatusTracker(this.zooKeeper, this);
  this.clusterStatusTracker.start();
  blockAndCheckIfStopped(this.clusterStatusTracker);

  // Create the catalog tracker and start it;
  this.catalogTracker = new CatalogTracker(this.zooKeeper, this.conf, this);
  catalogTracker.start();

  // watch for snapshots
  try {
    this.snapshotManager = new RegionServerSnapshotManager(this);
  } catch (KeeperException e) {
    this.abort("Failed to reach zk cluster when creating snapshot handler.");
  }
}
项目:hbase-0.94.8-qod    文件:HRegionServer.java   
/**
 * Bring up connection to zk ensemble and then wait until a master for this
 * cluster and then after that, wait until cluster 'up' flag has been set.
 * This is the order in which master does things.
 * Finally put up a catalog tracker.
 * @throws IOException
 * @throws InterruptedException
 */
private void initializeZooKeeper() throws IOException, InterruptedException {
  // Open connection to zookeeper and set primary watcher
  this.zooKeeper = new ZooKeeperWatcher(conf, REGIONSERVER + ":" +
    this.isa.getPort(), this);

  // Create the master address manager, register with zk, and start it.  Then
  // block until a master is available.  No point in starting up if no master
  // running.
  this.masterAddressManager = new MasterAddressTracker(this.zooKeeper, this);
  this.masterAddressManager.start();
  blockAndCheckIfStopped(this.masterAddressManager);

  // Wait on cluster being up.  Master will set this flag up in zookeeper
  // when ready.
  this.clusterStatusTracker = new ClusterStatusTracker(this.zooKeeper, this);
  this.clusterStatusTracker.start();
  blockAndCheckIfStopped(this.clusterStatusTracker);

  // Create the catalog tracker and start it;
  this.catalogTracker = new CatalogTracker(this.zooKeeper, this.conf, this);
  catalogTracker.start();

  // watch for snapshots
  try {
    this.snapshotManager = new RegionServerSnapshotManager(this);
  } catch (KeeperException e) {
    this.abort("Failed to reach zk cluster when creating snapshot handler.");
  }
}
项目:hindex    文件:HRegionServer.java   
/**
 * Bring up connection to zk ensemble and then wait until a master for this
 * cluster and then after that, wait until cluster 'up' flag has been set.
 * This is the order in which master does things.
 * Finally put up a catalog tracker.
 * @throws IOException
 * @throws InterruptedException
 */
private void initializeZooKeeper() throws IOException, InterruptedException {
  // Open connection to zookeeper and set primary watcher
  this.zooKeeper = new ZooKeeperWatcher(conf, REGIONSERVER + ":" +
    this.isa.getPort(), this);

  // Create the master address manager, register with zk, and start it.  Then
  // block until a master is available.  No point in starting up if no master
  // running.
  this.masterAddressManager = new MasterAddressTracker(this.zooKeeper, this);
  this.masterAddressManager.start();
  blockAndCheckIfStopped(this.masterAddressManager);

  // Wait on cluster being up.  Master will set this flag up in zookeeper
  // when ready.
  this.clusterStatusTracker = new ClusterStatusTracker(this.zooKeeper, this);
  this.clusterStatusTracker.start();
  blockAndCheckIfStopped(this.clusterStatusTracker);

  // Create the catalog tracker and start it;
  this.catalogTracker = new CatalogTracker(this.zooKeeper, this.conf, this);
  catalogTracker.start();

  // watch for snapshots
  try {
    this.snapshotManager = new RegionServerSnapshotManager(this);
  } catch (KeeperException e) {
    this.abort("Failed to reach zk cluster when creating snapshot handler.");
  }
}
项目:HIndex    文件:RegionServerProcedureManagerHost.java   
@Override
public void loadProcedures(Configuration conf) {
  loadUserProcedures(conf, REGIONSERVER_PROCEDURE_CONF_KEY);
  // load the default snapshot manager
  procedures.add(new RegionServerSnapshotManager());
}