安装zookeeper出现java.net.NoRouteToHostException: 没有到主机的路由
来源:互联网 发布:淘宝宝贝标题可以改吗 编辑:程序博客网 时间:2024/06/05 11:19
我采用的是CentOS7操作系统安装zookeeper,我的配置没有问题,三个节点启动后(./zkServer.sh start),用jps查看进程,QuorumPeerMain进程都正常启动
但是
zkServer.sh status 查看状态时,显示的是Error contacting service. It is probably not running.
查看了配置文件和myid,仍然看不出啥问题,后面想着看日志,可是不知道日志在哪里看。
网上看到一篇zookeeper环境搭建中的几个坑[Error contacting service. It is probably not running]的分析及解决
这篇博文提到可以通过
以start-foreground方式启动,会看到启动日志
故采用此命令执行 ./zkServer.sh start-foreground
然后终端就输出以下提示错误:
2017-06-20 10:54:57,691 [myid:1] - WARN [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumCnxManager@588] - Cannot open channel to 2 at election address centos06/192.168.3.9:3888
java.net.NoRouteToHostException: 没有到主机的路由
百度了下,说可能是linux系统的防火前没有关闭,所以我就把三个节点的防火墙关闭了
以下是centos关闭防火墙的正确方式:
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
关闭防火墙之后,我的zookeeper就正常了
[yellow@centos05 bin]$ ./zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /home/yellow/app/zookeeper-3.4.10/bin/../conf/zoo.cfg
Mode: follower
[yellow@centos05 bin]$
ZooKeeper JMX enabled by default
Using config: /home/yellow/app/zookeeper-3.4.10/bin/../conf/zoo.cfg
Mode: leader
[yellow@centos06 bin]$
[yellow@centos07 bin]$ ./zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /home/yellow/app/zookeeper-3.4.10/bin/../conf/zoo.cfg
Mode: follower
- 安装zookeeper出现java.net.NoRouteToHostException: 没有到主机的路由
- hadoop java.net.NoRouteToHostException: 没有到主机的路由
- hive 报:java.net.NoRouteToHostException: 没有到主机的路由
- hadoop java.net.NoRouteToHostException: 没有到主机的路由
- hadoop问题之java.net.NoRouteToHostException: 没有到主机的路由
- HADOOP 启动NodeManager闪退,logs信息:java.net.NoRouteToHostException: 没有到主机的路由
- Hadoop重启服务器后报错Caused by: java.net.NoRouteToHostException: 没有到主机的路由
- hadoop 报错,java.net.NoRouteToHostException: 没有到主机的路由
- com.microsoft.sqlserver.jdbc.SQLServerException: 到主机 的 TCP/IP 连接失败。 java.net.NoRouteToHostException
- 没有到主机的路由
- Hadoop1.x安装:关于错误没有到主机的路由
- centos7 没有到主机的路由
- hadoop搭建,上传文件时出现错误,没有到主机的路由
- zookeeper集群搭建没有找到主机路由
- 解决ftp登录遇到connect:没有到主机的路由
- svn: 无法连接主机“x.x.x.x”: 没有到主机的路由
- svn: 无法连接主机“x.x.x.x”: 没有到主机的路由
- java.net.NoRouteToHostException:No route to host
- Ubuntu 16.04 用户登录界面死循环问题的解决
- 【调试】jieba结巴分词功能在python 3上运行代码
- 人际关系的本质
- mysqldump导出数据库
- kotlin初接触
- 安装zookeeper出现java.net.NoRouteToHostException: 没有到主机的路由
- Navicat for MySQL注册教程
- 设计模式之MVC模式
- python中使用selenium的一些注意点
- SQLAutoCode
- Gerrit历史记录查询
- 微软人工智能公开课中文版视频一,微软人工智能概览
- centos7下安装配置FMS5.0
- Leetcode——21. Merge Two Sorted Lists