Examples of closeRegion()


Examples of org.apache.hadoop.hbase.ipc.HRegionInterface.closeRegion()

    }
    ServerName sn = new ServerName(serverName);
    HRegionInterface rs = this.connection.getHRegionConnection(
        sn.getHostname(), sn.getPort());
    // Close the region without updating zk state.
    boolean isRegionClosed = rs.closeRegion(encodedRegionNameInBytes, false);
    if (false == isRegionClosed) {
      LOG.error("Not able to close the region " + encodedRegionName + ".");
    }
    return isRegionClosed;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.HRegionInterface.closeRegion()

  public void closeRegion(final ServerName sn, final HRegionInfo hri)
  throws IOException {
    HRegionInterface rs =
      this.connection.getHRegionConnection(sn.getHostname(), sn.getPort());
    // Close the region without updating zk state.
    rs.closeRegion(hri, false);
  }

  /**
   * Flush a table or an individual region.
   * Synchronous operation.
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.HRegionInterface.closeRegion()

    }
    ServerName sn = new ServerName(serverName);
    HRegionInterface rs = this.connection.getHRegionConnection(
        sn.getHostname(), sn.getPort());
    // Close the region without updating zk state.
    boolean isRegionClosed = rs.closeRegion(encodedRegionNameInBytes, false);
    if (false == isRegionClosed) {
      LOG.error("Not able to close the region " + encodedRegionName + ".");
    }
    return isRegionClosed;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.HRegionInterface.closeRegion()

  public void closeRegion(final ServerName sn, final HRegionInfo hri)
  throws IOException {
    HRegionInterface rs =
      this.connection.getHRegionConnection(sn.getHostname(), sn.getPort());
    // Close the region without updating zk state.
    rs.closeRegion(hri, false);
  }

  /**
   * Flush a table or an individual region.
   * Asynchronous operation.
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.HRegionInterface.closeRegion()

      throw new IOException("Attempting to send CLOSE RPC to server " +
        server.toString() + " for region " +
        region.getRegionNameAsString() +
        " failed because no RPC connection found to this server");
    }
    return hri.closeRegion(region, versionOfClosingNode);
  }

  /**
   * @param sn
   * @return
 
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.HRegionInterface.closeRegion()

    }
    ServerName sn = new ServerName(serverName);
    HRegionInterface rs = this.connection.getHRegionConnection(
        sn.getHostname(), sn.getPort());
    // Close the region without updating zk state.
    boolean isRegionClosed = rs.closeRegion(encodedRegionNameInBytes, false);
    if (false == isRegionClosed) {
      LOG.error("Not able to close the region " + encodedRegionName + ".");
    }
    return isRegionClosed;
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.HRegionInterface.closeRegion()

  public void closeRegion(final ServerName sn, final HRegionInfo hri)
  throws IOException {
    HRegionInterface rs =
      this.connection.getHRegionConnection(sn.getHostname(), sn.getPort());
    // Close the region without updating zk state.
    rs.closeRegion(hri, false);
  }

  /**
   * Flush a table or an individual region.
   * Asynchronous operation.
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.HRegionInterface.closeRegion()

      throw new IOException("Attempting to send CLOSE RPC to server " +
        server.toString() + " for region " +
        region.getRegionNameAsString() +
        " failed because no RPC connection found to this server");
    }
    return hri.closeRegion(region, versionOfClosingNode);
  }

  /**
   * @param sn
   * @return
 
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.HRegionInterface.closeRegion()

    HConnection connection = HConnectionManager.getConnection(conf);
    boolean success = false;

    try {
      HRegionInterface rs = connection.getHRegionConnection(server);
      rs.closeRegion(region, false);
      long timeout = conf.getLong("hbase.hbck.close.timeout", 120000);
      long expiration = timeout + System.currentTimeMillis();
      while (System.currentTimeMillis() < expiration) {
        try {
          HRegionInfo rsRegion = rs.getRegionInfo(region.getRegionName());
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.HRegionInterface.closeRegion()

  public void closeRegion(final HServerAddress hsa, final HRegionInfo hri)
  throws IOException {
    HRegionInterface rs = this.connection.getHRegionConnection(hsa);
    // Close the region without updating zk state.
    rs.closeRegion(hri, false);
  }

  /**
   * Flush a table or an individual region.
   * Asynchronous operation.
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.