zookeeper启动异常Error: JAVA_HOME is not set and java could not be found in PATH
2022/9/15 14:18:23
本文主要是介绍zookeeper启动异常Error: JAVA_HOME is not set and java could not be found in PATH,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
明明正常配置了JAVA_HOME,仍然报错:
hadoop@hadoop-1:/data/apache-zookeeper-3.7.1-bin/bin$ sh zkServer.sh start
zkServer.sh: 78: /data/apache-zookeeper-3.7.1-bin/bin/zkEnv.sh: [[: not found
-p: not found
java is /data/hadoop/jdk1.8.0_202/bin/java
Error: JAVA_HOME is not set and java could not be found in PATH.
解决办法:
换成./zkServer.sh start
或bash zkServer.sh start
这篇关于zookeeper启动异常Error: JAVA_HOME is not set and java could not be found in PATH的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-22[开源]10.3K+ Star!轻量强大的开源运维平台,超赞!
- 2024-11-21Flutter基础教程:新手入门指南
- 2024-11-21Flutter跨平台教程:新手入门详解
- 2024-11-21Flutter跨平台教程:新手入门与实践指南
- 2024-11-21Flutter列表组件教程:初学者指南
- 2024-11-21Flutter列表组件教程:新手入门指南
- 2024-11-21Flutter入门教程:初学者必看指南
- 2024-11-21Flutter入门教程:从零开始的Flutter开发指南
- 2024-11-21Flutter升级教程:新手必读的升级指南
- 2024-11-21Flutter升级教程:轻松掌握Flutter版本更新