记录一次zookeeper集群其中一节点在hbase web页面中显示Connection rese

集群环境:
nn1,view和dn1三节点部署的zookeeper集群,gezookeeper进程均已启动
hbase web页面显示zk_dump信息如下

日志输出信息如下:

shell> tail -f /var/log/zookeeper/zookeeper.log
2018-04-16 09:56:20,000 [myid:3] - INFO  [ProcessThread(sid:3 cport:-1)::[email protected]] - Processed session termination for sessionid: 0x362b792537017ff
2018-04-16 09:56:37,190 [myid:3] - INFO  [ProcessThread(sid:3 cport:-1)::[email protected]] - Processed session termination for sessionid: 0x262b7925b1b1858
2018-04-16 09:56:50,000 [myid:3] - INFO  [SessionTracker:[email protected]] - Expiring session 0x162b792533f1848, timeout of 40000ms exceeded
2018-04-16 09:56:50,001 [myid:3] - INFO  [ProcessThread(sid:3 cport:-1)::[email protected]] - Processed session termination for sessionid: 0x162b792533f1848
2018-04-16 09:57:05,929 [myid:3] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - Accepted socket connection from /10.211.191.139:47524
2018-04-16 09:57:05,929 [myid:3] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - Client attempting to establish new session at /10.211.191.139:47524
2018-04-16 09:57:05,930 [myid:3] - INFO  [CommitProcessor:3:[email protected]] - Established session 0x362b79253701802 with negotiated timeout 40000 for client /10.211.191.139:47524
2018-04-16 09:57:06,310 [myid:3] - INFO  [ProcessThread(sid:3 cport:-1)::[email protected]] - Processed session termination for sessionid: 0x362b79253701802
2018-04-16 09:57:06,311 [myid:3] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - Closed socket connection for client /10.211.191.139:47524 which had sessionid 0x362b79253701802
2018-04-16 09:57:18,000 [myid:3] - INFO  [SessionTracker:[email protected]] - Expiring session 0x262b7925b1b1857, timeout of 40000ms exceeded
2018-04-16 09:57:18,000 [myid:3] - INFO  [ProcessThread(sid:3 cport:-1)::[email protected]] - Processed session termination for sessionid: 0x262b7925b1b1857
2018-04-16 09:57:20,039 [myid:3] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - Accepted socket connection from /10.211.191.139:47529
2018-04-16 09:57:20,041 [myid:3] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - Client attempting to establish new session at /10.211.191.139:47529
2018-04-16 09:57:20,042 [myid:3] - INFO  [CommitProcessor:3:[email protected]] - Established session 0x362b79253701803 with negotiated timeout 40000 for client /10.211.191.139:47529
2018-04-16 09:57:37,020 [myid:3] - INFO  [ProcessThread(sid:3 cport:-1)::[email protected]] - Processed session termination for sessionid: 0x262b7925b1b185a
2018-04-16 09:57:37,361 [myid:3] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x362b79253701803, likely client has closed socket
        at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:220)
        at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
        at java.lang.Thread.run(Thread.java:744)
2018-04-16 09:57:37,361 [myid:3] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - Closed socket connection for client /10.211.191.139:47529 which had sessionid 0x362b79253701803
2018-04-16 09:57:48,000 [myid:3] - INFO  [SessionTracker:[email protected]] - Expiring session 0x262b7925b1b1859, timeout of 40000ms exceeded
2018-04-16 09:57:48,000 [myid:3] - INFO  [ProcessThread(sid:3 cport:-1)::[email protected]] - Processed session termination for sessionid: 0x262b7925b1b1859
2018-04-16 09:58:06,982 [myid:3] - INFO  [ProcessThread(sid:3 cport:-1)::[email protected]] - Processed session termination for sessionid: 0x262b7925b1b185c
2018-04-16 09:58:11,418 [myid:3] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x362b792537017a5, likely client has closed socket
        at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:220)
        at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
        at java.lang.Thread.run(Thread.java:744)
2018-04-16 09:58:11,419 [myid:3] - INFO  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:[email protected]] - Closed socket connection for client /10.211.191.134:47136 which had sessionid 0x362b792537017a5
2018-04-16 09:58:18,002 [myid:3] - INFO  [SessionTracker:[email protected]] - Expiring session 0x362b79253701803, timeout of 40000ms exceeded

状态检查:

显示正常,在hbase web监控端查看zk dump每次刷新都有时正常有时提示,错误,现在不影响业务,先将就着用吧。。。哪位哥哥有解决方法了,给小弟留个言也可以的。

原文地址:http://blog.51cto.com/maoxiaoxiong/2103918

时间: 2024-11-13 14:45:59

记录一次zookeeper集群其中一节点在hbase web页面中显示Connection rese的相关文章

【Zookeeper】Zookeeper集群单节点提供服务

以下只在特殊情况下使用,不要用在生产环境. 一.问题背景 公司的产品使用Zookeeper做为集群支持,但是客户在验收的时候提出了一个很为难人的要求,那就是3台集群服务,停止2台以后,还要求我们的应用能提供服务,这就有点难为人了. 因为用过Zookeeper的人都知道,Zookeeper的leader的选举需要大多数同意,也就是说三台机器的Zookeeper集群那么选举leader就需要两台,如果只剩下一台Zookeeper那么是无法完成leader选举的,也就是说Zookeeper将不能对外提

ZooKeeper 02 - ZooKeeper集群的节点为什么是奇数个

目录 1 关于节点个数的说明 2 ZooKeeper集群的容错数 3 ZooKeeper集群可用的标准 4 为什么不能是偶数个节点 4.1 防止由脑裂造成的集群不可用 4.2 奇数个节点更省资源 4.3 偶数个节点遇到的其他问题 1 关于节点个数的说明 ZooKeeper的单机服务 (也就是单节点, 或着单进程) 虽然便于开发与测试, 但并不适合在生产环境使用 -- 生产环境中为了服务的高可用以及容错性, 建议使用ZooKeeper集群模式. ZooKeeper的集群中, 建议部署奇数个ZooK

kafka环境搭建2-broker集群+zookeeper集群(转)

原文地址:http://www.jianshu.com/p/dc4770fc34b6 zookeeper集群搭建 kafka是通过zookeeper来管理集群.kafka软件包内虽然包括了一个简版的zookeeper,但是感觉功能有限.在生产环境下,建议还是直接下载官方zookeeper软件. 下载 最新版的zookeeper软件 wget http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.4.8/zookeeper-3.4.8.tar.g

面试题:说说你对ZooKeeper集群与Leader选举的理解?

ZooKeeper是一个开源分布式协调服务.分布式数据一致性解决方案.可基于ZooKeeper实现命名服务.集群管理.Master选举.分布式锁等功能. 高可用 为了保证ZooKeeper的可用性,在生产环境中我们使用ZooKeeper集群模式对外提供服务,并且集群规模至少由3个ZooKeeper节点组成. ? 集群至少由3个节点组成?? ZooKeeper其实2个节点也可以组成集群并对外提供服务,但我们使用集群主要目的是为了高可用.如果2个节点组成集群,其中1个节点挂了,另外ZooKeeper

kafka 、 zookeeper 集群(一)

一.入门 1.简介 Kafka is a distributed,partitioned,replicated commit logservice.它提供了类似于JMS的特性,但是在设计实现上完全不同,此外它并不是JMS规范的实现.kafka对消息保存时根据Topic进行归类,发送消息者成为Producer,消息接受者成为Consumer,此外kafka集群有多个kafka实例组成,每个实例(server)成为broker.无论是kafka集群,还是producer和consumer都依赖于zo

Zookeeper集群安装(HBase集群已安装好)

HBase集群已安装好,在使用了其内置的zookeeper集群出现问题无法解决后改用自己安装的zookeeper集群,HBase集群可成功启动. 1.在/home/instal目录下,解压zookeeper-3.4.6到该目录下 tar  -zxvf  zookeeper-3.4.6.tar.gz  -C /home/instal 2.复制zookeeper-3.4.6/conf下的zoo_sample.cfg,并且重命名为zoo.cfg cp  zoo_sample.cfg  zoo.cfg

如何搭建Zookeeper集群

 ZooKeeper是一个分布式的,开放源码的分布式应用程序协调服务,是Google的Chubby一个开源的实现,是Hadoop和Hbase的重要组件.它是一个为分布式应用提供一致性服务的软件,提供的功能包括:配置维护.域名服务.分布式同步.组服务等.其部署方式有单机部署和集群部署,单机部署意义不大,下面主要介绍集群部署. 因硬件环境的限制,本次搭建Zookeeper集群是在Windows且是单机的环境下搭建的,也就是伪集群:不过伪集群跟集群区别不大,往下看就知道啦. 一.去Zookeeper官

Zookeeper集群"脑裂"问题 - 运维总结

关于集群中的"脑裂"问题,之前已经在这里详细介绍过,下面重点说下Zookeeper脑裂问题的处理办法.ooKeeper是用来协调(同步)分布式进程的服务,提供了一个简单高性能的协调内核,用户可以在此之上构建更多复杂的分布式协调功能.脑裂通常会出现在集群环境中,比如ElasticSearch.Zookeeper集群,而这些集群环境有一个统一的特点,就是它们有一个大脑,比如ElasticSearch集群中有Master节点,Zookeeper集群中有Leader节点. 一. Zookeep

[转]ZooKeeper 集群环境搭建 (本机3个节点)

ZooKeeper 集群环境搭建 (本机3个节点) 是一个简单的分布式同步数据库(或者是小文件系统) --------------------------------------------------------1.建立目录server1server1/dataDirserver1/dataLogDirserver1/logsserver1/zookeeper3.4.6 server2server2/dataDirserver2/dataLogDirserver2/logsserver2/zo