zookeeper Cluster error: Error: JAVA_HOME is not set and java could not be found in PATH.
When learning to build a zookeeper cluster, you will often start and stop the zookeeper service and check the service status. Starting one by one is very troublesome. It is very convenient to start through a shell script
when the problem comes, there is no problem when starting the zookeeper service alone. An error will be reported when starting it through a script:
Solution:
in the bin directory under the zookeeper directory, there is a zkEnv.sh file, add your own path of JAVA_HOME in front of the code.
export JAVA_HOME=/opt/module/jdk1.8.0_261
Read More:
- [Solved] Ubuntu pip Install Error: which is not on PATH
- -bash: sqlplus: command not found [How to Solve]
- Termux setting path environment variable
- How to Solve Mujoco Install Error in Ubuntu (Pycharm Run Error)
- MAC Adb Shell Error: -bash: adb: command not found, adb
- Mgr [error]: library file libdmhs_exec.so not found, error: 0
- [Solved] kubeadm join Cluster Error: error execution phase kubelet-start
- [Solved] RHEL 7 installs Oracle RAC 11.2.0.4, executes root.sh error ohasd: failed to start
- PM2 user defined Log, PID and other Log File Locations
- [Solved] Error in OpenSSL when compiling code locally for raspberry pie
- Docker Startup Error: standard_init_linux.go:211: exec user process caused “no such file or directory”
- [Solved] Jenkins build error: esbuild install failed
- Using JWT of distributed deployment services Error: JWT check failure:
- Install and start the tftp-server server and possible solutions to Redirecting to /bin/systemctl restart xinetd.service problems
- [Solved] Ubuntu Execute uci Error: uci: error while loading shared libraries: lib
- [Solved] Linux Service Start Error: *.service: Main process exited, code=exited, status=203/EXEC
- [Solved] ImportError:lib***.so–cannot open shared object file: No such…(pycharm/clion Error but shell No Error)
- [Solved] Ubuntu pyinstaller Error when packaging executable file: … qt.qpa.plugin: Could not find the Qt platform plugin “xcb“ in “…
- [Solved] Denseflow Install Error: fatal error: opencv2/cudaarithm.hpp: No such file or directory
- AFTER THE GIT SOURCE CODE IS INSTALLED, AN ERROR IS REPORTED /USR/BIN/GIT: NO SUCH FILE OR DIRECTORY