Refine search
/** * Thrown if the region server log directory exists (which indicates another * region server is running at the same address) */ @InterfaceAudience.Public @InterfaceStability.Evolving public class RegionServerRunningException extends IOException { private static final long serialVersionUID = 1L << 31 - 1L; /** Default Constructor */ public RegionServerRunningException() { super(); } /** * Constructs the exception and supplies a string as the message * @param s - message */ public RegionServerRunningException(String s) { super(s); } }
/** * Exception thrown by access-related methods. */ @InterfaceAudience.Public @InterfaceStability.Evolving public class AccessDeniedException extends DoNotRetryIOException { private static final long serialVersionUID = 1913879564363001780L; public AccessDeniedException() { super(); } public AccessDeniedException(Class<?> clazz, String s) { super( "AccessDenied [" + clazz.getName() + "]: " + s); } public AccessDeniedException(String s) { super(s); } public AccessDeniedException(Throwable cause) { super(cause); } }
/** * Thrown when the server is looking for a snapshot but can't find the snapshot on the filesystem */ @SuppressWarnings("serial") @InterfaceAudience.Public @InterfaceStability.Evolving public class SnapshotDoesNotExistException extends HBaseSnapshotException { /** * @param msg full description of the failure */ public SnapshotDoesNotExistException(String msg) { super(msg); } /** * @param desc expected snapshot to find */ public SnapshotDoesNotExistException(SnapshotDescription desc) { super("Snapshot '" + desc.getName() +"' doesn't exist on the filesystem", desc); } }
/** * All hbase specific IOExceptions should be subclasses of HBaseIOException */ @InterfaceAudience.Public @InterfaceStability.Evolving public class HBaseIOException extends IOException { private static final long serialVersionUID = 1L; public HBaseIOException() { super(); } public HBaseIOException(String message) { super(message); } public HBaseIOException(String message, Throwable cause) { super(message, cause); } public HBaseIOException(Throwable cause) { super(cause); }}
/** * Thrown when a snapshot could not be restored due to a server-side error when restoring it. */ @SuppressWarnings("serial") @InterfaceAudience.Public @InterfaceStability.Evolving public class RestoreSnapshotException extends HBaseSnapshotException { public RestoreSnapshotException(String msg, SnapshotDescription desc) { super(msg, desc); } public RestoreSnapshotException(String msg, Throwable cause, SnapshotDescription desc) { super(msg, cause, desc); } public RestoreSnapshotException(String msg) { super(msg); } public RestoreSnapshotException(String message, Exception e) { super(message, e); } }
/** * Thrown if request for nonexistent column family. */ @InterfaceAudience.Public @InterfaceStability.Evolving public class NoSuchColumnFamilyException extends DoNotRetryIOException { private static final long serialVersionUID = -6569952730832331274L; /** default constructor */ public NoSuchColumnFamilyException() { super(); } /** * @param message exception message */ public NoSuchColumnFamilyException(String message) { super(message); } }
/** * Reports a problem with a lease */ @InterfaceAudience.Public @InterfaceStability.Evolving public class LeaseException extends DoNotRetryIOException { private static final long serialVersionUID = 8179703995292418650L; /** default constructor */ public LeaseException() { super(); } /** * @param message */ public LeaseException(String message) { super(message); } }
/** * Thrown when a read request issued against a region which is in recovering state. */ @InterfaceAudience.Public @InterfaceStability.Evolving public class RegionInRecoveryException extends NotServingRegionException { private static final long serialVersionUID = 327302071153799L; /** default constructor */ public RegionInRecoveryException() { super(); } /** * Constructor * @param s message */ public RegionInRecoveryException(String s) { super(s); } }
/** * This class defines constants for different classes of hbase limited private apis */ @InterfaceAudience.Public @InterfaceStability.Evolving public class HBaseInterfaceAudience { public static final String COPROC = "Coprocesssor"; public static final String REPLICATION = "Replication"; public static final String PHOENIX = "Phoenix"; /** * Denotes class names that appear in user facing configuration files. */ public static final String CONFIG = "Configuration"; /** * Denotes classes used as tools (Used from cmd line). Usually, the compatibility is required * for class name, and arguments. */ public static final String TOOLS = "Tools"; }
/** * Thrown when server finds fatal issue w/ connection setup: e.g. bad rpc version * or unsupported auth method. * Closes connection after throwing this exception with message on why the failure. */ @SuppressWarnings("serial") @InterfaceAudience.Public @InterfaceStability.Evolving public class FatalConnectionException extends DoNotRetryIOException { public FatalConnectionException() { super(); } public FatalConnectionException(String msg) { super(msg); } public FatalConnectionException(String msg, Throwable t) { super(msg, t); } }
/** * Interface to convert visibility expressions into Tags for storing along with Cells in HFiles. */ @InterfaceAudience.Public @InterfaceStability.Evolving public interface VisibilityExpressionResolver extends Configurable { /** * Giving a chance for the initialization. */ void init(); /** * Convert visibility expression into tags to be serialized. * @param visExpression the label expression * @return The list of tags corresponds to the visibility expression. These tags will be stored * along with the Cells. */ List<Tag> createVisibilityExpTags(String visExpression) throws IOException; }
/** * Exception thrown when we get a request for a snapshot we don't recognize. */ @SuppressWarnings("serial") @InterfaceAudience.Public @InterfaceStability.Evolving public class UnknownSnapshotException extends HBaseSnapshotException { /** * @param msg full information about the failure */ public UnknownSnapshotException(String msg) { super(msg); } public UnknownSnapshotException(String msg, Exception e) { super(msg, e); } }
/** * Utility class for converting objects to JSON */ @InterfaceAudience.Public @InterfaceStability.Evolving public final class JsonMapper { private JsonMapper() { } private static final ObjectMapper MAPPER = new ObjectMapper(); public static String writeMapAsString(Map<String, Object> map) throws IOException { return writeObjectAsString(map); } public static String writeObjectAsString(Object object) throws IOException { return MAPPER.writeValueAsString(object); } }
/** * This would be the interface which would be used add labels to the RPC context * and this would be stored against the UGI. * */ @InterfaceAudience.Public @InterfaceStability.Evolving public interface ScanLabelGenerator extends Configurable { /** * Helps to get a list of lables associated with an UGI * @param user * @param authorizations * @return The labels */ public List<String> getLabels(User user, Authorizations authorizations); }
/** * Thrown when the client believes that we are trying to communicate to has * been repeatedly unresponsive for a while. * * On receiving such an exception. The HConnectionManager will skip all * retries and fast fail the operation. */ @InterfaceAudience.Public @InterfaceStability.Evolving public class ConnectionClosingException extends IOException { public ConnectionClosingException(String string) { super(string); } private static final long serialVersionUID = -8980028569652624236L; }
/** * During the read (ie. get/Scan) the VisibilityController calls this interface for each of the * Cell. Depending on the evaluate() result, a cell can be either included or filtered out from the * read results. */ @InterfaceAudience.Public @InterfaceStability.Evolving public interface VisibilityExpEvaluator { /** * Evaluates whether the passed cell passes Scan/Get Authorization. * @param cell Cell under evaluation * @return true if this cell can be included in the Result. Else false. */ boolean evaluate(Cell cell) throws IOException; }
/** Thrown when the file system needs to be upgraded */ @InterfaceAudience.Public @InterfaceStability.Evolving public class FileSystemVersionException extends IOException { private static final long serialVersionUID = 1004053363L; /** default constructor */ public FileSystemVersionException() { super(); } /** @param s message */ public FileSystemVersionException(String s) { super(s); } }
/** Thrown when a table can not be located */ @InterfaceAudience.Public @InterfaceStability.Evolving public class RegionOfflineException extends RegionException { private static final long serialVersionUID = 466008402L; /** default constructor */ public RegionOfflineException() { super(); } /** @param s message */ public RegionOfflineException(String s) { super(s); } }
/** * Indicates that we're trying to connect to a already known as dead server. We will want to * retry: we're getting this because the region location was wrong, or because * the server just died, in which case the retry loop will help us to wait for the * regions to recover. */ @SuppressWarnings("serial") @InterfaceAudience.Public @InterfaceStability.Evolving public class FailedServerException extends HBaseIOException { public FailedServerException(String s) { super(s); } }
@InterfaceAudience.Public @InterfaceStability.Evolving public class UnsupportedCellCodecException extends FatalConnectionException { public UnsupportedCellCodecException() { super(); } public UnsupportedCellCodecException(String msg) { super(msg); } public UnsupportedCellCodecException(String msg, Throwable t) { super(msg, t); } }