HBase 启动异常
本人是HBase新手,还望高手不吝解答,提前谢过
1,从hbase官网下载的hbase-0.94.19.tar
2,按照官网的quick start部署,只修改了hbase-env.sh中的JDK版本和hbase-site.xml没做修改
3,/etc/hosts文件中内容如下:
4,启动Hbase,一开四Hmaster进程存在,很快进程消失,报错信息如下:
问题如下:
为什么Hbase总要去连接HDFS的默认端口8020,如果我启动Hadoop(HDFS使用默认8020端口),HBase运行正常,如果不起,Hbase就会报这个错误,官网的quick start没有说需要启动HDFS啊,难道是我哪里配错了么
1,从hbase官网下载的hbase-0.94.19.tar
2,按照官网的quick start部署,只修改了hbase-env.sh中的JDK版本和hbase-site.xml没做修改
3,/etc/hosts文件中内容如下:
127.0.0.1 localhost.localdomain localhost
192.168.211.129 fedora1 fedora1
::1 localhost6.localdomain6 localhost6
4,启动Hbase,一开四Hmaster进程存在,很快进程消失,报错信息如下:
2014-05-29 09:22:07,328 DEBUG org.apache.hadoop.hbase.master.HMaster: Started service threads
2014-05-29 09:22:07,328 INFO org.apache.hadoop.hbase.master.ServerManager: Waiting for region servers count to settle; currently checked in 0, slept for 0 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms.
2014-05-29 09:22:08,128 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: fedora1/192.168.211.129:8020. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-05-29 09:22:08,845 INFO org.apache.hadoop.hbase.master.ServerManager: Waiting for region servers count to settle; currently checked in 0, slept for 1516 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms.
2014-05-29 09:22:09,130 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: fedora1/192.168.211.129:8020. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-05-29 09:22:10,132 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: fedora1/192.168.211.129:8020. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-05-29 09:22:10,360 INFO org.apache.hadoop.hbase.master.ServerManager: Waiting for region servers count to settle; currently checked in 0, slept for 3032 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms.
2014-05-29 09:22:11,134 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: fedora1/192.168.211.129:8020. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-05-29 09:22:11,877 INFO org.apache.hadoop.hbase.master.ServerManager: Waiting for region servers count to settle; currently checked in 0, slept for 4549 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms.
2014-05-29 09:22:12,136 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: fedora1/192.168.211.129:8020. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-05-29 09:22:13,137 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: fedora1/192.168.211.129:8020. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-05-29 09:22:13,390 INFO org.apache.hadoop.hbase.master.ServerManager: Waiting for region servers count to settle; currently checked in 0, slept for 6062 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms.
2014-05-29 09:22:14,139 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: fedora1/192.168.211.129:8020. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-05-29 09:22:14,908 INFO org.apache.hadoop.hbase.master.ServerManager: Waiting for region servers count to settle; currently checked in 0, slept for 7580 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms.
2014-05-29 09:22:15,142 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: fedora1/192.168.211.129:8020. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-05-29 09:22:16,145 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: fedora1/192.168.211.129:8020. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-05-29 09:22:16,452 INFO org.apache.hadoop.hbase.master.ServerManager: Waiting for region servers count to settle; currently checked in 0, slept for 9124 ms, expecting minimum of 1, maximum of 2147483647, timeout of 4500 ms, interval of 1500 ms.
2014-05-29 09:22:17,147 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: fedora1/192.168.211.129:8020. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2014-05-29 09:22:17,152 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start master
java.net.ConnectException: Call to fedora1/192.168.211.129:8020 failed on connection exception: java.net.ConnectException: Connection refused
at org.apache.hadoop.ipc.Client.wrapException(Client.java:1142)
at org.apache.hadoop.ipc.Client.call(Client.java:1118)
at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:229)
at com.sun.proxy.$Proxy11.getProtocolVersion(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:85)
at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:62)
at com.sun.proxy.$Proxy11.getProtocolVersion(Unknown Source)
at org.apache.hadoop.ipc.RPC.checkVersion(RPC.java:422)
at org.apache.hadoop.hdfs.DFSClient.createNamenode(DFSClient.java:183)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:281)
at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:245)
at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:100)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1446)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:67)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1464)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:263)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:124)
at org.apache.hadoop.hbase.util.JVMClusterUtil.startup(JVMClusterUtil.java:191)
at org.apache.hadoop.hbase.LocalHBaseCluster.startup(LocalHBaseCluster.java:422)
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:149)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:104)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2129)
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:511)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:481)
at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:457)
at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:583)
at org.apache.hadoop.ipc.Client$Connection.access$2200(Client.java:205)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1249)
at org.apache.hadoop.ipc.Client.call(Client.java:1093)
... 26 more
问题如下:
为什么Hbase总要去连接HDFS的默认端口8020,如果我启动Hadoop(HDFS使用默认8020端口),HBase运行正常,如果不起,Hbase就会报这个错误,官网的quick start没有说需要启动HDFS啊,难道是我哪里配错了么
...全文
相关推荐
hbase zk异常启动不了.docx
两者之间的协作确保了HBase的稳定运行。当遇到“hbase zk异常启动不了”的问题时,通常意味着HBase依赖的ZooKeeper服务出现了故障,这可能是由多种原因导致的。
windows中安装Hadoop与Hbase
然后格式化HDFS文件系统,启动HDFS,并在启动过程中检查是否有异常情况出现,以及异常的解决方案。5.
Hbase的安装过程及基本操作
**启动与测试**: 使用`start-hbase.sh`命令启动Hbase,然后运行`jps`命令查看进程列表。
hbase安装和使用
**启动HBase**:执行`start-hbase.sh`命令启动HBase集群,使用`jps`确认HMaster和HRegionServer等进程已启动。6.
08 安装配置hbase0.94.9
**启动顺序**: - 启动时,Hadoop和Zookeeper的启动顺序不固定,但HBase必须在它们之后启动。


