How to remove the warning message from the startup process of Hadoop
1. Because the warning occurs when you execute start-all.sh to start Hadoop, you should review start-all.sh and do more start-all.sh
You can see the following code:
If [-E ' $bin/: /libexec/hadoop-config.sh "]; Then
. "$bin"/.. /libexec/hadoop-config.sh
Else
. "$bin/hadoop-config.sh"
Fi
According to this code, you can judge that hadoop-config.sh should be viewed and executed more hadoop-config.sh
You can look at the following code:
If ["$HADOOP _home_warn_suppress" = ""] && ["$HADOOP _home"! = ""]; Then
echo "Warning: \ $HADOOP _home is deprecated." 1>&2
Echo 1>&2
If
According to this code can be judged hadoop_home_warn_suppress cannot be empty, all need to set in/etc/profile hadoop_home_warn_suppress
is not empty, it is feasible to execute vim/etc/profile, and then add Hadoop_home_warn_suppress=1 or other non-null values at the end of the profile file, and finally
To set up a refresh operation, execute source/etc/profile.
Remove the warning message from the startup process of Hadoop