Package org.apache.hadoop.hbase.util
Class TableDescriptorChecker
java.lang.Object
org.apache.hadoop.hbase.util.TableDescriptorChecker
Only used for master to sanity check
TableDescriptor.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcheckBloomFilterType(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) static voidcheckClassLoading(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) private static voidcheckCompactionPolicy(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) static voidcheckCompression(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) static voidcheckEncryption(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) private static voidcheckReplicationScope(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) static voidsanityCheck(org.apache.hadoop.conf.Configuration c, TableDescriptor td) Checks whether the table conforms to some sane limits, and configured values (compression, etc) work.private static booleanshouldSanityCheck(org.apache.hadoop.conf.Configuration conf) private static voidwarnOrThrowExceptionForFailure(boolean logWarn, String message, Exception cause) private static voidwarnOrThrowExceptionForFailure(boolean logWarn, TableDescriptorChecker.ThrowingRunnable runnable) private static voidwarnOrThrowExceptionForFailure(org.apache.hadoop.conf.Configuration conf, TableDescriptorChecker.ThrowingRunnable runnable)
-
Field Details
-
LOG
-
TABLE_SANITY_CHECKS
- See Also:
-
DEFAULT_TABLE_SANITY_CHECKS
- See Also:
-
MASTER_CHECK_COMPRESSION
- See Also:
-
DEFAULT_MASTER_CHECK_COMPRESSION
- See Also:
-
MASTER_CHECK_ENCRYPTION
- See Also:
-
DEFAULT_MASTER_CHECK_ENCRYPTION
- See Also:
-
-
Constructor Details
-
TableDescriptorChecker
private TableDescriptorChecker()
-
-
Method Details
-
shouldSanityCheck
-
sanityCheck
public static void sanityCheck(org.apache.hadoop.conf.Configuration c, TableDescriptor td) throws IOException Checks whether the table conforms to some sane limits, and configured values (compression, etc) work. Throws an exception if something is wrong.- Throws:
IOException
-
checkReplicationScope
private static void checkReplicationScope(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
IOException
-
checkCompactionPolicy
private static void checkCompactionPolicy(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
IOException
-
checkBloomFilterType
private static void checkBloomFilterType(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
IOException
-
checkCompression
public static void checkCompression(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
IOException
-
checkEncryption
public static void checkEncryption(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
IOException
-
checkClassLoading
public static void checkClassLoading(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
IOException
-
warnOrThrowExceptionForFailure
private static void warnOrThrowExceptionForFailure(boolean logWarn, String message, Exception cause) throws IOException - Throws:
IOException
-
warnOrThrowExceptionForFailure
private static void warnOrThrowExceptionForFailure(org.apache.hadoop.conf.Configuration conf, TableDescriptorChecker.ThrowingRunnable runnable) throws IOException - Throws:
IOException
-
warnOrThrowExceptionForFailure
private static void warnOrThrowExceptionForFailure(boolean logWarn, TableDescriptorChecker.ThrowingRunnable runnable) throws IOException - Throws:
IOException
-