$HADOOP_HOME is deprecated

2020-02-08 07:28发布

问题:

I started a hadoop cluster.
I get this warning message: $HADOOP_HOME is deprecated

I already add export HADOOP_HOME_WARN_SUPPRESS="TRUE" into hadoop-env.sh
When I started the cluster, I do not see any more warning message.
However, When I run hadoop dfsadmin -report, It shows again.

回答1:

in your .bashrc file, replace the "HADOOP_HOME" variable with "HADOOP_PREFIX" variable, and you should be good.



回答2:

A was opened for such issue and was fixed on version 0.20.204.0. However a similar issue was opened on 0.20.205.0 and was fixed on 1.0. Please check your version to see if the fix is included.



回答3:

And now, HADOOP_PREFIX is being deprecated, HADOOP_HOME is returning.



回答4:

Replace HADOOP_HOME with HADOOP_PREFIX variable in the file where u have declared all the variables.



回答5:

My teacher tell me to use HADOOP_INSTALL instead of HADOOP_HOME.