赞
踩
./zkServer.sh status /home/wenyuancheng/zks/zkconf/conf/zoo1.cfg
5:集群中ip与域名的映射
最好添加上这样一个配置(日志文件的输出):
dataLogDir=xxx/zookeeper/server1/dataLogzk客户端查看节点信息
chmod +x zkCli.sh
./zkCli.sh -server 192.168.18.37:2181
[wenyuancheng@fengkong37 zk1]$ more /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.18.76 nameTest
192.168.18.84 zookeeper04 node4
192.168.18.83 zookeeper03 node3
192.168.18.82 zookeeper02 node2
192.168.18.76 zookeeper01 node1
192.168.18.37 fengkong37
192.168.10.170 bigdata0.nw.com bigdata0
192.168.10.171 bigdata1.nw.com bigdata1
192.168.10.172 bigdata2.nw.com bigdata2
192.168.18.76 hadoop1
192.168.18.82 hadoop2
192.168.18.83 hadoop3
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。