zookeeper启动时正常,查看状态时出错
处理,通过
./zkServer.sh status
报错Error contacting service. It is probably not running.
./zkServer.sh start-foreground
发现是jdk环境变量出错./zkServer.sh: line 149: /usr/java/jdk1.7.0.67-cloudera/bin/java: 没有那个文件或目录
处理设置环境变量
vim /etc/profile
生效/etc/profile