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
Modifier and TypeClassDescription(package private) static interface
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
checkBloomFilterType
(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) static void
checkClassLoading
(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) private static void
checkCompactionPolicy
(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) static void
checkCompression
(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) static void
checkEncryption
(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) private static void
checkReplicationScope
(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) static void
sanityCheck
(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 boolean
shouldSanityCheck
(org.apache.hadoop.conf.Configuration conf) private static void
warnOrThrowExceptionForFailure
(boolean logWarn, String message, Exception cause) private static void
warnOrThrowExceptionForFailure
(boolean logWarn, TableDescriptorChecker.ThrowingRunnable runnable) private static void
warnOrThrowExceptionForFailure
(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
-