HBase安装笔记一Zookeeper
下载
wget http://archive.apache.org/dist/hadoop/zookeeper/zookeeper-3.3.2/zookeeper-3.3.2.tar.gz -P /usr/local/src tar zxvf zookeeper-3.3.2.tar.gz mv zookeeper-3.3.2 /usr/local/zookeeper cd /usr/local/zookeeper/conf cp zoo_sample.cfg zoo.cfg
编辑配置文件zoo.cfg
# 修改dataDir、clientPort为以下值 dataDir=/usr/local/zookeeper/data clientPort=30200 # 添加以下段落 server.1=192.168.40.151:30201:30301 server.2=192.168.40.152:30202:30302 server.3=192.168.40.153:30203:30303
启动
/usr/local/zookeeper/bin/zkServer.sh start
验证
/usr/local/zookeeper/bin/zkCli.sh -server 192.168.40.151:30200
zookeeper无法查看status,yum install nc装下就行了。
/usr/local/zookeeper/bin/zkServer.sh status JMX enabled by default Using config: /usr/local/zookeeper/bin/../conf/zoo.cfg Error contacting service. It is probably not running.