Warning: $HADOOP_HOME is deprecated.解决方法

作者:向着梦想奋斗     分类:云技术     时间:2014-06-06     浏览:51     评论:0 来源:博客园

方式1(不推荐):注释hadoop-config.sh中的

if [ "$HADOOPHOMEWARNSUPPRESS" = "" ] && [ "$HADOOPHOME" != "" ]; then

echo "Warning: \$HADOOPHOME is deprecated." 1>&2

echo 1>&2

fi

方式2::修改环境变量

可以是用当前用户的环境变量也可以是全局环境变量

添加 export HADOOPHOMEWARNSUPPRESS=1

source /etc/profile 立即生效

测试警告消失!

[root@h1 conf]# hadoop fs -help

hadoop fs is the command to execute fs commands. The full syntax is:

hadoop fs [-fs <local | file system URI>] [-conf <configuration file>]

[-D <property=value>] [-ls <path>] [-lsr <path>] [-du <path>]

[-dus <path>] [-mv <src> <dst>] [-cp <src> <dst>] [-rm [-skipTrash] <src>]

[-rmr [-skipTrash] <src>] [-put <localsrc> ... <dst>] [-copyFromLocal <localsrc> ... <dst>]

[-moveFromLocal <localsrc> ... <dst>] [-get [-ignoreCrc] [-crc] <src> <localdst>

[-getmerge <src> <localdst> [addnl]] [-cat <src>]

[-copyToLocal [-ignoreCrc] [-crc] <src> <localdst>] [-moveToLocal <src> <localdst>]

本文转载自:http://www.cnblogs.com/luguoyuanf/p/3594429.html

上一篇:Java从控制台接受输入字符

下一篇:继续寻找app开发的技术方案


0 评论

查看所有评论

给个评论吧