Examples of RegionServerStoppedException


Examples of org.apache.hadoop.hbase.exceptions.RegionServerStoppedException

   *
   * @throws IOException
   */
  protected void checkOpen() throws IOException {
    if (this.stopped || this.abortRequested) {
      throw new RegionServerStoppedException("Server " + getServerName() +
        " not running" + (this.abortRequested ? ", aborting" : ""));
    }
    if (!fsOk) {
      throw new RegionServerStoppedException("File system not available");
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.exceptions.RegionServerStoppedException

              regionInfo.getRegionNameAsString() + " containing row " +
              Bytes.toStringBinary(row));
          }

          if (isDeadServer(serverName)){
            throw new RegionServerStoppedException(".META. says the region "+
                regionInfo.getRegionNameAsString()+" is managed by the server " + serverName +
                ", but it is dead.");
          }

          // Instantiate the location
View Full Code Here

Examples of org.apache.hadoop.hbase.exceptions.RegionServerStoppedException

    @Override
    public ClientProtocol getClient(final ServerName serverName)
        throws IOException {
      if (isDeadServer(serverName)){
        throw new RegionServerStoppedException("The server " + serverName + " is dead.");
      }
      return (ClientProtocol)
          getProtocol(serverName.getHostname(), serverName.getPort(), clientClass);
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.exceptions.RegionServerStoppedException

    @Override
    public AdminProtocol getAdmin(final ServerName serverName, final boolean master)
        throws IOException {
      if (isDeadServer(serverName)){
        throw new RegionServerStoppedException("The server " + serverName + " is dead.");
      }
      return (AdminProtocol)getProtocol(
          serverName.getHostname(), serverName.getPort(), adminClass);
    }
View Full Code Here

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

              regionInfo.getRegionNameAsString() + " containing row " +
              Bytes.toStringBinary(row));
          }

          if (isDeadServer(serverName)){
            throw new RegionServerStoppedException("hbase:meta says the region "+
                regionInfo.getRegionNameAsString()+" is managed by the server " + serverName +
                ", but it is dead.");
          }

          // Instantiate the location
View Full Code Here

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

    // Nothing is done w/ the 'master' parameter.  It is ignored.
    public AdminService.BlockingInterface getAdmin(final ServerName serverName,
      final boolean master)
    throws IOException {
      if (isDeadServer(serverName)) {
        throw new RegionServerStoppedException(serverName + " is dead.");
      }
      String key = getStubKey(AdminService.BlockingInterface.class.getName(),
        serverName.getHostAndPort());
      this.connectionLock.putIfAbsent(key, key);
      AdminService.BlockingInterface stub = null;
View Full Code Here

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

    @Override
    public ClientService.BlockingInterface getClient(final ServerName sn)
    throws IOException {
      if (isDeadServer(sn)) {
        throw new RegionServerStoppedException(sn + " is dead.");
      }
      String key = getStubKey(ClientService.BlockingInterface.class.getName(), sn.getHostAndPort());
      this.connectionLock.putIfAbsent(key, key);
      ClientService.BlockingInterface stub = null;
      synchronized (this.connectionLock.get(key)) {
View Full Code Here

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

      long sid = 12345L;
      try {
        Mockito.when(stub.scan((RpcController)Mockito.any(),
            (ClientProtos.ScanRequest)Mockito.any())).
          thenReturn(ClientProtos.ScanResponse.newBuilder().setScannerId(sid).build()).
          thenThrow(new ServiceException(new RegionServerStoppedException("From Mockito"))).
          thenReturn(ClientProtos.ScanResponse.newBuilder().setScannerId(sid).
            setMoreResults(false).build());
      } catch (ServiceException e) {
        throw new IOException(e);
      }
View Full Code Here

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

      long sid = 12345L;
      try {
        Mockito.when(stub.scan((RpcController)Mockito.any(),
            (ClientProtos.ScanRequest)Mockito.any())).
          thenReturn(ClientProtos.ScanResponse.newBuilder().setScannerId(sid).build()).
          thenThrow(new ServiceException(new RegionServerStoppedException("From Mockito"))).
          thenReturn(ClientProtos.ScanResponse.newBuilder().setScannerId(sid).
            setMoreResults(false).build());
      } catch (ServiceException e) {
        throw new IOException(e);
      }
View Full Code Here

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

      // Mock up my stub so an exists call -- which turns into a get -- throws an exception
      this.stub = Mockito.mock(ClientService.BlockingInterface.class);
      try {
        Mockito.when(stub.get((RpcController)Mockito.any(),
            (ClientProtos.GetRequest)Mockito.any())).
          thenThrow(new ServiceException(new RegionServerStoppedException("From Mockito")));
      } catch (ServiceException e) {
        throw new IOException(e);
      }
    }
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.