[
https://issues.apache.org/jira/browse/HADOOP-7438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061959#comment-13061959
]
Ravi Prakash commented on HADOOP-7438:
--------------------------------------
Hi Eric,
Thanks again for your review! :) I'm afraid I'm still trying to understand your
suggestion. Lines 274-280 in hadoop-config.sh define HADOOP_HDFS_HOME relative
to HADOOP_PREFIX when it is not defined
{noformat}
# put hdfs in classpath if present
if [ "$HADOOP_HDFS_HOME" = "" ]; then
if [ -d "${HADOOP_PREFIX}/share/hadoop/hdfs" ]; then
HADOOP_HDFS_HOME=$HADOOP_PREFIX/share/hadoop/hdfs
#echo Found HDFS installed at $HADOOP_HDFS_HOME
fi
fi
{noformat}
So HADOOP_HDFS_HOME would get defined when it is not present. Wouldn't it be
better to define HADOOP_COMMON_HOME, HADOOP_HDFS_HOME and HADOOP_MAPRED_HOME
relative to HADOOP_PREFIX just once in hadoop-config, so that we don't have to
use if-else blocks everywhere else?
> Using the hadoop-deamon.sh script to start nodes leads to a depricated
> warning
> -------------------------------------------------------------------------------
>
> Key: HADOOP-7438
> URL: https://issues.apache.org/jira/browse/HADOOP-7438
> Project: Hadoop Common
> Issue Type: Improvement
> Affects Versions: 0.22.0
> Reporter: Ravi Prakash
> Assignee: Ravi Prakash
> Attachments: HADOOP-7438.1.patch
>
>
> hadoop-daemon.sh calls common/bin/hadoop for hdfs/bin/hdfs tasks and so
> common/bin/hadoop complains its deprecated for those uses.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira