30

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.

chnet
  • 1,993
  • 9
  • 36
  • 51

5 Answers5

53

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

2

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

Emre Sevinç
  • 8,211
  • 14
  • 64
  • 105
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.

michaelliu
  • 1,667
  • 2
  • 13
  • 13
0

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

Baban Gaigole
  • 351
  • 1
  • 8
0

My teacher tell me to use HADOOP_INSTALL instead of HADOOP_HOME.

MWiesner
  • 8,868
  • 11
  • 36
  • 70
hellozjf
  • 169
  • 5
  • 16