分享

hbase 0.96整合到hadoop2.2三个节点全分布式安装高可靠文档

pig2 2014-5-16 16:33:48 发表于 实操演练 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 39 139067
小小布衣 发表于 2014-7-21 23:48:20
hyj 发表于 2014-7-21 12:58
把zookeeper里面的/hbase文件夹给删掉

hao,我再试试
回复

使用道具 举报

小鱼 发表于 2014-8-19 18:23:41
我现在启动出现这个错误
2014-08-19 18:15:57,230 INFO  [main-SendThread(slave1:2181)] zookeeper.ClientCnxn: Opening socket connection to server slave1/10.1.1.219:2181. Will not attempt to authenticate u
sing SASL (unknown error)
2014-08-19 18:15:58,471 WARN  [main-SendThread(slave1:2181)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconn
ect
java.net.ConnectException: 拒绝连接        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:712)        at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
2014-08-19 18:15:58,832 WARN  [main] zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper, quorum=slave1:2181, exception=org.apache.zookeeper.KeeperException$ConnectionL
ossException: KeeperErrorCode = ConnectionLoss for /hbase
2014-08-19 18:15:58,832 INFO  [main] util.RetryCounter: Sleeping 1000ms before retry #0...
2014-08-19 18:15:59,824 INFO  [main-SendThread(slave1:2181)] zookeeper.ClientCnxn: Opening socket connection to server slave1/10.1.1.219:2181. Will not attempt to authenticate u
sing SASL (unknown error)
2014-08-19 18:15:59,825 WARN  [main-SendThread(slave1:2181)] zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconn
ect
主服务:
[hadoop@master logs]$ jps
1682 SecondaryNameNode
2355 HMaster
2506 Jps
1515 NameNode
1819 ResourceManager
从:
[hadoop@slave1 logs]$ jps
1891 Jps
1690 HQuorumPeer
1435 DataNode
1534 NodeManager
1758 HRegionServer
会是什么问题呢?
回复

使用道具 举报

awen 发表于 2014-8-30 16:52:05
2014-08-30 15:47:03,327 INFO  [RpcServer.handler=28,port=60000] ipc.RpcServer: RpcServer.handler=28,port=60000: starting
2014-08-30 15:47:03,329 INFO  [RpcServer.handler=29,port=60000] ipc.RpcServer: RpcServer.handler=29,port=60000: starting
2014-08-30 15:47:03,337 INFO  [Replication.RpcServer.handler=0,port=60000] ipc.RpcServer: Replication.RpcServer.handler=0,port=60000: starting
2014-08-30 15:47:03,342 INFO  [Replication.RpcServer.handler=1,port=60000] ipc.RpcServer: Replication.RpcServer.handler=1,port=60000: starting
2014-08-30 15:47:03,406 INFO  [Replication.RpcServer.handler=2,port=60000] ipc.RpcServer: Replication.RpcServer.handler=2,port=60000: starting
2014-08-30 15:47:03,793 INFO  [master:master:60000] mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
2014-08-30 15:47:03,994 INFO  [master:master:60000] http.HttpServer: Added global filter 'safety' (class=org.apache.hadoop.http.HttpServer$QuotingInputFilter)
2014-08-30 15:47:04,001 INFO  [master:master:60000] http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context master
2014-08-30 15:47:04,002 INFO  [master:master:60000] http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context static
2014-08-30 15:47:04,034 INFO  [master:master:60000] http.HttpServer: Jetty bound to port 60010
2014-08-30 15:47:04,034 INFO  [master:master:60000] mortbay.log: jetty-6.1.26
2014-08-30 15:47:06,186 INFO  [master:master:60000] mortbay.log: Started SelectChannelConnector@0.0.0.0:60010
2014-08-30 15:47:06,850 DEBUG [main-EventThread] master.ActiveMasterManager: A master is now available
2014-08-30 15:47:06,857 INFO  [master:master:60000] master.ActiveMasterManager: Registered Active Master=master,60000,1409384812539
2014-08-30 15:47:06,922 INFO  [master:master:60000] Configuration.deprecation: fs.default.name is deprecated. Instead, use fs.defaultFS
2014-08-30 15:47:07,374 FATAL [master:master:60000] master.HMaster: Unhandled exception. Starting shutdown.
java.net.ConnectException: Call From master/192.168.3.75 to master:8020 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:783)
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:730)
        at org.apache.hadoop.ipc.Client.call(Client.java:1414)
        at org.apache.hadoop.ipc.Client.call(Client.java:1363)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)
        at com.sun.proxy.$Proxy17.setSafeMode(Unknown Source)
        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.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:190)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:103)
        at com.sun.proxy.$Proxy17.setSafeMode(Unknown Source)
        at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.setSafeMode(ClientNamenodeProtocolTranslatorPB.java:594)
        at org.apache.hadoop.hdfs.DFSClient.setSafeMode(DFSClient.java:2230)
        at org.apache.hadoop.hdfs.DistributedFileSystem.setSafeMode(DistributedFileSystem.java:993)
        at org.apache.hadoop.hdfs.DistributedFileSystem.setSafeMode(DistributedFileSystem.java:977)
        at org.apache.hadoop.hbase.util.FSUtils.isInSafeMode(FSUtils.java:432)
        at org.apache.hadoop.hbase.util.FSUtils.waitOnSafeMode(FSUtils.java:851)
        at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:435)
        at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:146)
        at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:127)
        at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:790)
        at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:607)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: 拒绝连接
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
        at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:529)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:493)
        at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:604)
        at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:699)
        at org.apache.hadoop.ipc.Client$Connection.access$2800(Client.java:367)
        at org.apache.hadoop.ipc.Client.getConnection(Client.java:1462)
        at org.apache.hadoop.ipc.Client.call(Client.java:1381)
        ... 22 more
2014-08-30 15:47:07,387 INFO  [master:master:60000] master.HMaster: Aborting
2014-08-30 15:47:07,387 DEBUG [master:master:60000] master.HMaster: Stopping service threads
2014-08-30 15:47:07,391 INFO  [master:master:60000] ipc.RpcServer: Stopping server on 60000
回复

使用道具 举报

lianglab 发表于 2014-8-30 23:22:23
支持一下,好文章
回复

使用道具 举报

awen 发表于 2014-8-31 20:59:01
回复

使用道具 举报

轩辕依梦Q 发表于 2014-11-1 21:21:56
版主,你好,请教一个问题,就是配置hbase的时候,如果使用hbase管理zookeeper,是不是zookeepr就不需要自己配置安装了?如果还是需要自己安装的zookeeper,那么在hbase-site.xml里面怎么配置呢?我在Master机器上配置了两个zookeeper,在salve机器上配置了一个,并且使用的不是默认的zoo.cfg配置文件名。
回复

使用道具 举报

strivecheng 发表于 2014-11-14 16:23:21
必须顶一下!
回复

使用道具 举报

etgyd 发表于 2014-11-25 16:32:44
必须顶一下!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条