赞
踩
[root@zook_node1 bin]# service zookeeper start
----------zookeeper启动----------
Error: JAVA_HOME is not set and java could not be found in PATH.
在启动zookeeper 会调用到java环境,在zkEnv.sh文件中,有一段代码将检查JAVA_HOME, 配置文件路径和文件zookeeper/bin/zkEnv.sh 环境下进行配置,添加java环境变量:
vi zkEnv.sh
启动查看,成功
[root@zook_node1 bin]# service zookeeper start
----------zookeeper启动----------
ZooKeeper JMX enabled by default
Using config: /home/bigdata/zookeeper/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
查看启动状态
[root@zook_node1 bin]# service zookeeper status
---------- zookeeper 状态------------
ZooKeeper JMX enabled by default
Using config: /home/bigdata/zookeeper/bin/../conf/zoo.cfg
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。