脚本宝典收集整理的这篇文章主要介绍了

Phoenix报错(4)java.lang.AbstractMethodError

脚本宝典小编觉得挺不错的,现在分享给大家,也给大家做个参考,希望能帮助你少写一行代码,多一份安全和惬意。

  • 解决办法

原来ha的namenode 爆红了,于是把集群的namenode ha先去掉了,随后该问题就搞定了,后面又把ha加上去,ha也不报错了。

  • 报错信息如下(里面有namenode.ha相关的报错)

Exception in thread "main" java.io.IOException: java.lang.reflect.InvocationTargetException     at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:240)     at org.apache.hadoop.hbase.client.ConnectionManager.createConnection(ConnectionManager.java:410)     at org.apache.hadoop.hbase.client.ConnectionManager.createConnection(ConnectionManager.java:403)     at org.apache.hadoop.hbase.client.ConnectionManager.getConnectionInternal(ConnectionManager.java:281)     at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:178)     at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:144)     at LianJieHbase$.main(LianJieHbase.scala:18)     at LianJieHbase.main(LianJieHbase.scala)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) Caused by: java.lang.reflect.InvocationTargetException     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)     at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)     ... 12 more Caused by: java.lang.AbstractMethodError: org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider.getProxy()Lorg/apache/hadoop/io/retry/FailoverProxyProvider$ProxyInfo;     at org.apache.hadoop.io.retry.RetryInvocationHandler.<init>(RetryInvocationHandler.java:73)     at org.apache.hadoop.io.retry.RetryInvocationHandler.<init>(RetryInvocationHandler.java:64)     at org.apache.hadoop.io.retry.RetryProxy.create(RetryProxy.java:58)     at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:147)     at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:510)     at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:453)     at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:136)     at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2591)     at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:89)     at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2625)     at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2607)     at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:368)     at org.apache.hadoop.fs.Path.getFileSystem(Path.java:296)     at org.apache.hadoop.hbase.util.DynamicClassLoader.<init>(DynamicClassLoader.java:104)     at org.apache.hadoop.hbase.protobuf.ProtobufUtil.<clinit>(ProtobufUtil.java:229)     at org.apache.hadoop.hbase.ClusterId.parseFrom(ClusterId.java:64)     at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:75)     at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:86)     at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:833)     at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:623)     ... 17 more

总结

以上是脚本宝典为你收集整理的

Phoenix报错(4)java.lang.AbstractMethodError

全部内容,希望文章能够帮你解决

Phoenix报错(4)java.lang.AbstractMethodError

所遇到的程序开发问题,欢迎加入QQ群277859234一起讨论学习。如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典网站推荐给程序员好友。 本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。

80%的人都看过