我收到了一些关于HBase连接的错误,但它与缺少的字符串库有关,或者与我的pom.xml有关。
我删除了很多错误,但是:
java.io.IOException:java.lang.reflect.InvocationTargetException 在org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:240)〜[hbase-shaded-client-1.2.3.jar!/:1.2.3]
..进一步向下
<blockquote class="reddit-card" data-card-created="1490648549"><a href="https://www.reddit.com/r/worldnews/comments/61svww/jared_kushner_had_undisclosed_meeting_with_sergey/?ref=share&ref_source=embed">Jared Kushner had undisclosed meeting with Sergey Gorkov, the head of Russia’s state-owned Vnesheconombank, which has been under sanctions since the annexation of Crimea in 2014</a> from <a href="http://www.reddit.com/r/worldnews">worldnews</a></blockquote>
<script async src="//embed.redditmedia.com/widgets/platform.js" charset="UTF-8"></script>
...
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72-internal]
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_72-internal]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_72-internal]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_72-internal]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_72-internal]
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238) ~[hbase-shaded-client-1.2.3.jar!/:1.2.3]
... 98 common frames omitted
Caused by: java.lang.NoSuchMethodError: org.apache.hadoop.util.StringUtils.toLowerCase(Ljava/lang/String;)Ljava/lang/String;
at org.apache.hadoop.hdfs.server.common.HdfsServerConstants$RollingUpgradeStartupOption.getAllOptionString(HdfsServerConstants.java:80) ~[hadoop-hdfs-2.7.3.jar!/:na]
at org.apache.hadoop.hdfs.server.namenode.NameNode.<clinit>(NameNode.java:264) ~[hadoop-hdfs-2.7.3.jar!/:na]
at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:176) ~[hadoop-hdfs-2.7.3.jar!/:na]
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:678) ~[hadoop-hdfs-2.7.3.jar!/:na]
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619) ~[hadoop-hdfs-2.7.3.jar!/:na]
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149) ~[hadoop-hdfs-2.7.3.jar!/:na]
答案 0 :(得分:1)
我修复了它,但我认为是某些东西需要的是Guava 16.0,而Guava 21.0已经弃用了util.toLowerCase或其他东西。