Package org.apache.hadoop.hbase

Examples of org.apache.hadoop.hbase.HBaseIOException


            break;
          default:
            throw new DoNotRetryIOException("Unsupported mutate type: " + type.name());
          }
        } else {
          throw new HBaseIOException("Unexpected Action type");
        }
        if (r != null) {
          ClientProtos.Result pbResult = null;
          if (isClientCellBlockSupport()) {
            pbResult = ProtobufUtil.toResultNoData(r);
View Full Code Here


      }
    } catch (IOException ioe) {
      if (ioe instanceof HBaseIOException) {
        throw (HBaseIOException)ioe;
      }
      throw new HBaseIOException(ioe);
    }
  }
View Full Code Here

      location = getLocation(!reload);
    }

    if (location == null) {
      // With this exception, there will be a retry.
      throw new HBaseIOException(getExceptionMessage());
    }

    this.setStub(connection.getAdmin(location.getServerName()));
  }
View Full Code Here

        id, getConnection(), getTableName(), getRow());
    location = id < rl.size() ? rl.getRegionLocation(id) : null;
    if (location == null || location.getServerName() == null) {
      // With this exception, there will be a retry. The location can be null for a replica
      //  when the table is created or after a split.
      throw new HBaseIOException("There is no location for replica id #" + id);
    }
    ServerName dest = location.getServerName();
    setStub(super.getConnection().getClient(dest));
    if (!instantiated || reload) {
      checkIfRegionServerIsRemote();
View Full Code Here

      }

      if (location == null || location.getServerName() == null) {
        // With this exception, there will be a retry. The location can be null for a replica
        //  when the table is created or after a split.
        throw new HBaseIOException("There is no location for replica id #" + id);
      }

      ServerName dest = location.getServerName();

      setStub(cConnection.getClient(dest));
View Full Code Here

      }
    } catch (IOException ioe) {
      if (ioe instanceof HBaseIOException) {
        throw (HBaseIOException)ioe;
      }
      throw new HBaseIOException(ioe);
    }
  }
View Full Code Here

      boolean error = true;
      try {
        // Send as much data as we can in the non-blocking fashion
        long numBytes = channelWrite(call.connection.channel, call.response);
        if (numBytes < 0) {
          throw new HBaseIOException("Error writing on the socket " +
            "for the call:" + call.toShortString());
        }
        error = false;
      } finally {
        if (error) {
View Full Code Here

      List<UserPermission> perms = AccessControlClient.getUserPermissions(conf,
        TEST_TABLE.getTableName().getNameAsString());
      assertTrue(perms != null);
      assertEquals(existingPerms.size(), perms.size());
    } catch (Throwable e) {
      throw new HBaseIOException(e);
    }
  }
View Full Code Here

      RegionLocations locations = null;
      try {
        locations = getRegionLocations(connection, tableName, row, true, 0);

        if (locations == null) {
          throw new HBaseIOException("Cannot locate locations for "
              + tableName + ", row:" + Bytes.toStringBinary(row));
        }
      } catch (TableNotFoundException e) {
        disabledAndDroppedTables.put(tableName, Boolean.TRUE); // put to cache. Value ignored
        // skip this entry
View Full Code Here

    @Override
    public HRegionLocation getLocation(boolean useCache) throws IOException {
      RegionLocations rl = getRegionLocations(connection, tableName, row, useCache, replicaId);
      if (rl == null) {
        throw new HBaseIOException(getExceptionMessage());
      }
      location = rl.getRegionLocation(replicaId);
      if (location == null) {
        throw new HBaseIOException(getExceptionMessage());
      }

      // check whether we should still replay this entry. If the regions are changed, or the
      // entry is not coming form the primary region, filter it out because we do not need it.
      // Regions can change because of (1) region split (2) region merge (3) table recreated
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.HBaseIOException

Copyright © 2018 www.massapicom. 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.