$HADOOP_HOME 已弃用
我启动了一个 hadoop 集群。
我收到此警告消息:$HADOOP_HOME is deprecated
我已经将 export HADOOP_HOME_WARN_SUPPRESS="TRUE"
添加到 hadoop-env.sh
当我启动集群时,我没有看到任何更多警告消息。
但是,当我运行 hadoop dfsadmin -report
时,它再次显示。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
在 .bashrc 文件中,将“HADOOP_HOME”变量替换为“HADOOP_PREFIX”变量,这样就可以了。
in your .bashrc file, replace the "HADOOP_HOME" variable with "HADOOP_PREFIX" variable, and you should be good.
针对此类问题开了一个A,并在0.20.204.0版本上修复。然而,类似的 问题 在 0.20.205.0 上出现,并在 1.0 上修复。请检查您的版本以查看是否包含修复程序。
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.
现在,
HADOOP_PREFIX
正在弃用,HADOOP_HOME 正在返回。And now,
HADOOP_PREFIX
is being deprecated, HADOOP_HOME is returning.在声明所有变量的文件中将 HADOOP_HOME 替换为 HADOOP_PREFIX 变量。
Replace HADOOP_HOME with HADOOP_PREFIX variable in the file where u have declared all the variables.
我的老师告诉我使用
HADOOP_INSTALL
而不是HADOOP_HOME
。My teacher tell me to use
HADOOP_INSTALL
instead ofHADOOP_HOME
.