【错误】The node /hbase is not in ZooKeeper,Hbase端口占用无法正常启动
2017-11-17 12:44
621 查看
本人在启动zookeeper后,又启动HDFS,最后启动Hbase的时候,发现JPS进程中不显示HMaster进程,如下:
[hadoop@hadoop000 bin]$ jps
3936 NameNode
4241 SecondaryNameNode
6561 Jps
4041 DataNode
3418 QuorumPeerMain
然后./hbase shell,发现出现下面的错误:
这是我之前的hbase-site.xml配置文件:
另外,我的hbase-env.sh中export HBASE_MANAGES_ZK=true 设置已经更改成了false,java路径也设置对了,下面是zookeeper中的zoo.cfg:
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/home/hadoop/app/tmp/zk
# the port at which the clients will connect
clientPort=2181
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance #
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1 查找不到原因,然后查看hbase/log中的log文件,发现了这条错误信息:
2017-11-17 12:01:24,469 INFO [main] server.ZooKeeperServer: Server environment:user.dir=/home/hadoop/app/hbase-1.2.0-cdh5.7.0/bin
2017-11-17 12:01:24,477 INFO [main] server.ZooKeeperServer: Created server with tickTime 2000 minSessionTimeout 4000 maxSessionTimeout 40000 datadir /tmp/hbase-hadoop/zookeeper/zookeeper_0/version-2 snapdir /tmp/hbase-hadoop/zookeeper/zookeeper_0/version-2
2017-11-17 12:01:24,485 INFO [main] server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2181
2017-11-17 12:01:24,486 INFO [main] server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2182
2017-11-17 12:01:24,490 INFO [main] persistence.FileSnap: Reading snapshot /tmp/hbase-hadoop/zookeeper/zookeeper_0/version-2/snapshot.96
2017-11-17 12:01:24,501 INFO [main] persistence.FileTxnSnapLog: Snapshotting: 0x96 to /tmp/hbase-hadoop/zookeeper/zookeeper_0/version-2/snapshot.96
2017-11-17 12:01:24,558 INFO [NIOServerCxn.Factory:0.0.0.0
a887
/0.0.0.0:2182] server.NIOServerCnxnFactory: Accepted socket connection from /127.0.0.1:57611
2017-11-17 12:01:24,562 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2182] server.NIOServerCnxn: Processing stat command from /127.0.0.1:57611
2017-11-17 12:01:24,564 INFO [Thread-2] server.NIOServerCnxn: Stat command output
2017-11-17 12:01:24,564 INFO [main] zookeeper.MiniZooKeeperCluster: Started MiniZooKeeperCluster and ran successful 'stat' on client port=2182
2017-11-17 12:01:24,565 ERROR [main] master.HMasterCommandLine: Master exiting
java.io.IOException: Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting as clients (e.g. shell) will not be able to find this ZK quorum.
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:213)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:138)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2446)
2017-11-17 12:01:24,566 INFO [Thread-2] server.NIOServerCnxn: Closed socket connection for client /127.0.0.1:57611 (no session established for client)
由于之前启动的zookeeper已经占用了2181端口,我不敢kill掉这个进程,但看提示是hbase需要在这个端口启动,我开始以为是hbase开启了自带的zookeeper与我外置打开的zookeeper冲突,在网上也找了很多方法,改了各种hbase-site.xml配置文件,但是还是不行, ZK was started at port: 2182,跟据这提示,我最后把hbase-site.xml中的2181端口改成了2182,成功启动了HMaster进程。./hbase shell命令也能正常使用。运行结果如下:
[hadoop@hadoop000 bin]$ jps
3936 NameNode
4241 SecondaryNameNode
6561 Jps
4041 DataNode
3418 QuorumPeerMain
然后./hbase shell,发现出现下面的错误:
这是我之前的hbase-site.xml配置文件:
另外,我的hbase-env.sh中export HBASE_MANAGES_ZK=true 设置已经更改成了false,java路径也设置对了,下面是zookeeper中的zoo.cfg:
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
dataDir=/home/hadoop/app/tmp/zk
# the port at which the clients will connect
clientPort=2181
#
# Be sure to read the maintenance section of the
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance #
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1 查找不到原因,然后查看hbase/log中的log文件,发现了这条错误信息:
2017-11-17 12:01:24,469 INFO [main] server.ZooKeeperServer: Server environment:user.dir=/home/hadoop/app/hbase-1.2.0-cdh5.7.0/bin
2017-11-17 12:01:24,477 INFO [main] server.ZooKeeperServer: Created server with tickTime 2000 minSessionTimeout 4000 maxSessionTimeout 40000 datadir /tmp/hbase-hadoop/zookeeper/zookeeper_0/version-2 snapdir /tmp/hbase-hadoop/zookeeper/zookeeper_0/version-2
2017-11-17 12:01:24,485 INFO [main] server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2181
2017-11-17 12:01:24,486 INFO [main] server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2182
2017-11-17 12:01:24,490 INFO [main] persistence.FileSnap: Reading snapshot /tmp/hbase-hadoop/zookeeper/zookeeper_0/version-2/snapshot.96
2017-11-17 12:01:24,501 INFO [main] persistence.FileTxnSnapLog: Snapshotting: 0x96 to /tmp/hbase-hadoop/zookeeper/zookeeper_0/version-2/snapshot.96
2017-11-17 12:01:24,558 INFO [NIOServerCxn.Factory:0.0.0.0
a887
/0.0.0.0:2182] server.NIOServerCnxnFactory: Accepted socket connection from /127.0.0.1:57611
2017-11-17 12:01:24,562 INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2182] server.NIOServerCnxn: Processing stat command from /127.0.0.1:57611
2017-11-17 12:01:24,564 INFO [Thread-2] server.NIOServerCnxn: Stat command output
2017-11-17 12:01:24,564 INFO [main] zookeeper.MiniZooKeeperCluster: Started MiniZooKeeperCluster and ran successful 'stat' on client port=2182
2017-11-17 12:01:24,565 ERROR [main] master.HMasterCommandLine: Master exiting
java.io.IOException: Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting as clients (e.g. shell) will not be able to find this ZK quorum.
at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:213)
at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:138)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2446)
2017-11-17 12:01:24,566 INFO [Thread-2] server.NIOServerCnxn: Closed socket connection for client /127.0.0.1:57611 (no session established for client)
由于之前启动的zookeeper已经占用了2181端口,我不敢kill掉这个进程,但看提示是hbase需要在这个端口启动,我开始以为是hbase开启了自带的zookeeper与我外置打开的zookeeper冲突,在网上也找了很多方法,改了各种hbase-site.xml配置文件,但是还是不行, ZK was started at port: 2182,跟据这提示,我最后把hbase-site.xml中的2181端口改成了2182,成功启动了HMaster进程。./hbase shell命令也能正常使用。运行结果如下:
相关文章推荐
- hbase无法启动,The node /hbase is not in ZooKeeper和Can't get master address from ZooKeeper;
- hbase无法启动,The node /hbase is not in ZooKeeper
- The node /hbase-unsecure is not in ZooKeeper.
- ERROR: The node /hbase is not in ZooKeeper. It should have been written by the master. Check the val
- 使用外置安装的zookeeper后hbase出错;ERROR: The node /hbase is not in ZooKeeper
- Silverlight无法启动调试,错误“Unable to start debugging. The Silverlight Developer Runtime is not installed. Please install a matching version.” 解决办法
- WAMPserver无法正常启动,localhost 无法访问 测试80端口提示 your port 80 is not actually used
- MAMP无法正常启动,错误提示The built-in Apache is active
- 安装hbase后重启服务,发现zookeeper在某台机器上无法正常启动
- 错误 the type "xxxx" is defined in an assembly that is not refernced.You must add a reference to assem
- 端口被其他进程占用导致hadoop namenode,datanode,jobTracker,taskTracker,secondnamenode无法启动
- 解决hadoop启动时的dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.错误
- 【Linux学习】Linux报“xxx is not in the sudoers file.This incident will be reported” 错误解决方法
- 启动hadoop时,namenode无法启动,log中出现:java.io.IOException: NameNode is not formatted
- .net邮件错误 :The specified string is not in the form required for a subject.
- C++中关于assign 0 to _debugger_hook_dummy so that the function is not folded in retail的错误
- 由于空格引起的xml错误之The processing instruction target matching "[xX][mM][lL]" is not allowed以及the markup in the document prec
- Agile PLM: 启动时匪夷所思的的Node (18387 , 2490533) does not exist in the cache
- vmware-hostd.exe 占用443端口导致Apache无法正常启动?
- HBase 启动错误,HBase管理zookeeper ,无法定位登录配置