junegunn commented on PR #6893:
URL: https://github.com/apache/hbase/pull/6893#issuecomment-2791582822

   @NihalJain @guluo2016 I'd appreciate a review on 
https://github.com/apache/hbase/pull/6709. It addresses the same kind of 
problem on a broader scope, and I just added more type annotations in 
befa54ade137e904a53d422b02c89d66dced604e.
   
   ```
   hbase:001:0> create 't01', {NAME => 'info', TTL => 30, CONFIGURATION => { 
'hbase.hstore.defaultengine.compactionpolicy.class' => 'com.test.App' }}
   
   ERROR: org.apache.hadoop.hbase.DoNotRetryIOException: 
'hbase.hstore.defaultengine.compactionpolicy.class' must be a class. Set 
hbase.table.sanity.checks to false at conf or table descriptor if you want to 
bypass sanity checks
           at 
org.apache.hadoop.hbase.util.TableDescriptorChecker.warnOrThrowExceptionForFailure(TableDescriptorChecker.java:327)
           at 
org.apache.hadoop.hbase.util.TableDescriptorChecker.warnOrThrowExceptionForFailure(TableDescriptorChecker.java:344)
           at 
org.apache.hadoop.hbase.util.TableDescriptorChecker.sanityCheck(TableDescriptorChecker.java:85)
           at 
org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:2461)
           at 
org.apache.hadoop.hbase.master.MasterRpcServices.createTable(MasterRpcServices.java:786)
           at 
org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java)
           at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:457)
           at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:124)
           at org.apache.hadoop.hbase.ipc.RpcHandler.run(RpcHandler.java:102)
           at org.apache.hadoop.hbase.ipc.RpcHandler.run(RpcHandler.java:82)
   Caused by: java.lang.IllegalArgumentException: 
'hbase.hstore.defaultengine.compactionpolicy.class' must be a class.
           at 
org.apache.hadoop.hbase.conf.ConfigKey.lambda$CLASS$8(ConfigKey.java:109)
           at 
org.apache.hadoop.hbase.conf.ConfigKey.lambda$validate$9(ConfigKey.java:133)
           at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
           at 
org.apache.hadoop.hbase.conf.ConfigKey.validate(ConfigKey.java:130)
           at 
org.apache.hadoop.hbase.util.TableDescriptorChecker.lambda$sanityCheck$1(TableDescriptorChecker.java:87)
           at 
org.apache.hadoop.hbase.util.TableDescriptorChecker.warnOrThrowExceptionForFailure(TableDescriptorChecker.java:342)
           ... 8 more
   Caused by: java.lang.ClassNotFoundException: com.test.App
           at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
           at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
           at java.base/java.lang.Class.forName0(Native Method)
           at java.base/java.lang.Class.forName(Class.java:375)
           at 
org.apache.hadoop.hbase.conf.ConfigKey.lambda$CLASS$8(ConfigKey.java:104)
           ... 13 more
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to