问题描述:hbase shell启动失败

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/perfer258/article/details/81812676

问题描述

[ERROR] Terminal initialization failed; falling back to unsupported
java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected
        at jline.TerminalFactory.create(TerminalFactory.java:101)
        at jline.TerminalFactory.get(TerminalFactory.java:158)
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:229)
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:221)
        at jline.console.ConsoleReader.<init>(ConsoleReader.java:209)
        at org.apache.hadoop.hive.cli.CliDriver.getConsoleReader(CliDriver.java:773)
        at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:715)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:212)

原因

hadoop目录/hadoop-2.5.2/share/hadoop/yarn/lib存在老版本jline

解决方案

将hive下的新版本jline的JAR包拷贝到hadoop下:cp /hive/lib/jline-2.12.jar /hadoop/share/hadoop/yarn/lib/

展开阅读全文

hbase regionserver启动失败

07-31

三台主机:rn192.168.1.121 sp.soft.pc1 作为主机masterrn192.168.1.122 sp.soft.pc2rn192.168.1.123 sp.soft.pc3rn搭建了hadoop集群,zookeeper集群,启动后各服务后进程如下:rn[img=https://img-bbs.csdn.net/upload/201807/31/1533028510_624154.png][/img]rnrn在sp.soft.pc1下启动hbase,结果如下:rn[img=https://img-bbs.csdn.net/upload/201807/31/1533028465_520977.png][/img]rn另外两台机器中的hregionserver启动后很快就停止了,查看日志有如下错误:rn2018-07-31 16:53:12,908 ERROR [regionserver/sp:16020] regionserver.HRegionServer: pache/hadoop/fs/ContentSummary; @98: invokestaticrn Reason:rn Type 'org/apache/hadoop/fs/ContentSummary$Builder' (current frame, stack[1]) is not assignable to 'org/apache/hadoop/fs/QuotaUsage$Builder'rn Current Frame:rn bci: @98rn flags: rn locals: 'org/apache/hadoop/hdfs/protocol/proto/HdfsProtos$ContentSummaryProto', 'org/apache/hadoop/fs/ContentSummary$Builder' rn stack: 'org/apache/hadoop/hdfs/protocol/proto/HdfsProtos$StorageTypeQuotaInfosProto', 'org/apache/hadoop/fs/ContentSummary$Builder' rn Bytecode:rn 0x0000000: 2ac7 0005 01b0 bb03 4159 b703 424c 2b2arn 0x0000010: b603 43b6 0344 2ab6 0345 b603 462a b603rn 0x0000020: 47b6 0348 2ab6 0349 b603 4a2a b603 4bb6rn 0x0000030: 034c 2ab6 034d b603 4e2a b603 4fb6 0350rn 0x0000040: 2ab6 0351 b603 522a b603 53b6 0354 2ab6rn 0x0000050: 0355 b603 5657 2ab6 0357 9900 0b2a b603rn 0x0000060: 582b b803 592b b603 5ab0 rn Stackmap Table:rn same_frame(@6)rn append_frame(@101,Object[#2149])rn *****rnjava.lang.VerifyError: Bad type on operand stackrn..................................rn2018-07-31 16:53:13,146 ERROR [main] regionserver.HRegionServerCommandLine: Region server exitingrnjava.lang.RuntimeException: HRegionServer Abortedrn at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.start(HRegionServerCommandLine.java:67)rn at org.apache.hadoop.hbase.regionserver.HRegionServerCommandLine.run(HRegionServerCommandLine.java:87)rn at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)rn at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:149)rn at org.apache.hadoop.hbase.regionserver.HRegionServer.main(HRegionServer.java:2968)rnrnrn日志内容太多,没有完全贴出来。有哪位大神来瞅瞅,我这是反了什么低级错误导致的。rn 论坛

hbase启动失败,regionserver.HRegionServer: reportForDuty failed;

11-06

rnrn今天在搭建hadoop2.2+zookeeper+hbase0.96的时候rnrnhadoop和zookeeper都可以起来,但是在起hbase的时候hbase-hadoop-regionserver-Slave1.Hadoop.log报错,错误如下rnrn另HMaster进程已经起来rnrn2014-11-06 22:21:32,402 INFO [regionserver60020] regionserver.HRegionServer: reportForDuty to master=Master.Hadoop,60000,1415304333210 with port=60020, startcode=1415275417857rn2014-11-06 22:21:32,402 WARN [regionserver60020] regionserver.HRegionServer: error telling master we are uprncom.google.protobuf.ServiceException: java.net.SocketException: Invalid argumentrn at org.apache.hadoop.hbase.ipc.RpcClient.callBlockingMethod(RpcClient.java:1675)rn at org.apache.hadoop.hbase.ipc.RpcClient$BlockingRpcChannelImplementation.callBlockingMethod(RpcClient.java:1716)rn at org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos$RegionServerStatusService$BlockingStub.regionServerStartup(RegionServerStatusProtos.java:5402)rn at org.apache.hadoop.hbase.regionserver.HRegionServer.reportForDuty(HRegionServer.java:1953)rn at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:794)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.net.SocketException: Invalid argumentrn at sun.nio.ch.Net.connect0(Native Method)rn at sun.nio.ch.Net.connect(Net.java:465)rn at sun.nio.ch.Net.connect(Net.java:457)rn at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:670)rn at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:192)rn at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:529)rn at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:493)rn at org.apache.hadoop.hbase.ipc.RpcClient$Connection.setupConnection(RpcClient.java:576)rn at org.apache.hadoop.hbase.ipc.RpcClient$Connection.setupIOstreams(RpcClient.java:861)rn at org.apache.hadoop.hbase.ipc.RpcClient.getConnection(RpcClient.java:1540)rn at org.apache.hadoop.hbase.ipc.RpcClient.call(RpcClient.java:1429)rn at org.apache.hadoop.hbase.ipc.RpcClient.callBlockingMethod(RpcClient.java:1658)rn ... 5 morern2014-11-06 22:21:32,403 WARN [regionserver60020] regionserver.HRegionServer: reportForDuty failed; sleeping and then retrying.rnrnrn请大家帮帮忙 论坛

没有更多推荐了,返回首页