1. First enter $JAVA_HOME in the shell. If it is not installed, you need to configure the Java environment variables with export first
2. Modify the JAVA_HOME in etc/hadoop/hadoop-env.sh
1. First enter $JAVA_HOME in the shell. If it is not installed, you need to configure the Java environment variables with export first
2. Modify the JAVA_HOME in etc/hadoop/hadoop-env.sh