zookeeper-3.4.5安装

ganliang@ganliang-laptop:/home/zookeeper-3.4.5$ sudo bin/zkServer.sh start
JMX enabled by default
Using config: /home/zookeeper-3.4.5/bin/../conf/zoo.cfg
grep: /home/zookeeper-3.4.5/bin/../conf/zoo.cfg: No such file or directory
mkdir: cannot create directory `': No such file or directory
Starting zookeeper ... STARTED

 

原因是zookeeper-3.4.5必须把zoo-samples.cfg 改成zoo.cfg

 

 

--复制一份zoo.cfg

cp $zookeeper/conf/zoo-sample.cfg  $zookeeper/conf/zoo.cfg

 

---配置zoo.cfg

dataDir=/home/zookeeper_data

 

---------执行结果

ganliang@ganliang-laptop:/home/zookeeper-3.4.5$ ./bin/zkServer.sh status
ganliang@ganliang-laptop:/home/zookeeper-3.4.5$ ./bin/zkServer.sh status
JMX enabled by default
Using config: /home/zookeeper-3.4.5/bin/../conf/zoo.cfg
Mode: standalone

 

你可能感兴趣的:(hadoop,hbase,zookeeper安装)