Cannot assign value of type 'java.lang.String' to property '

本文讨论了一个具体的Java类型转换错误:尝试将String类型的值赋给Date类型的属性。文章分析了此错误的原因,并探讨了如何正确地进行类型转换以避免此类错误。
Cannot assign value of type 'java.lang.String' to property 'reportdate' of type 'java.util.Date'
ubuntu@VM-0-12-ubuntu:/usr/local/hbase/bin$ hbase hbck -j ./hbase-hbck2-1.2.0.jar setRegionState 'hbase:meta,,1' CLOSED SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/client-facing-thirdparty/log4j-slf4j-impl-2.17.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/hbase/bin/hbase-hbck2-1.2.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "java.lang.Integer.getInteger(String)" is null at org.apache.hbase.HBCK2.doCommandLine(HBCK2.java:918) at org.apache.hbase.HBCK2.run(HBCK2.java:830) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:82) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:97) at org.apache.hbase.HBCK2.main(HBCK2.java:1145) ubuntu@VM-0-12-ubuntu:/usr/local/hbase/bin$ hbase hbck -j ./hbase-hbck2-*.jar assign 'hbase:meta,,1' SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/client-facing-thirdparty/log4j-slf4j-impl-2.17.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/hbase/bin/hbase-hbck2-1.2.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] ERROR: Unsupported command: assign FOR USAGE, use the -h or --help option ubuntu@VM-0-12-ubuntu:/usr/local/hbase/bin$
最新发布
10-14
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值