In general, the Java environment only needs to be configured in the system environment variables. In order to prevent errors, you can manually specify the Java environment in the Hadoop startup script.
- Copy the
JAVA_HOMEin the environment variables
- Edit the configuration
- Modify line 25 of the