Like others, I am experiencing the Hadoop common not found" error when starting hadoop using start-dfs.sh under Hadoop v0.21.
I have found this link that shows how to edit hdfs-config.sh and mapred-config.sh: https://issues.apache.org/jira/browse/HADOOP-6953 But it's still not working for me. I've added the code from that link to both files to no effect. To start with the most obvious: Could it be that I've pasted the code in the wrong place in the files? (I basically plopped the code at the beginning of the file.) Here's what my hdsf-config.sh looks like: this="${BASH_SOURCE-$0}" while [ -h "$this" ]; do ls=`ls -ld "$this"` link=`expr "$ls" : '.-> (.)$'` if expr "$link" : './.' > /dev/null; then this="$link" else this=`dirname "$this"`/"$link" fi done # convert relative path to absolute path common_bin=`dirname "$this"` script=`basename "$this"` common_bin=`cd "$common_bin"; pwd` this="$common_bin/$script" # the root of the Hadoop installation #TODO: change the env variable when dir structure is changed export HADOOP_HOME=`dirname "$this"`/.. export HADOOP_COMMON_HOME="${HADOOP_HOME}" bin=`dirname "$0"` bin=`cd "$bin"; pwd` export HADOOP_HDFS_HOME="${HADOOP_HDFS_HOME:-$bin/..}" if [ -d "${HADOOP_COMMON_HOME}" ]; then . "$HADOOP_COMMON_HOME"/bin/hadoop-config.sh elif [ -d "${HADOOP_HOME}" ]; then . "$HADOOP_HOME"/bin/hadoop-config.sh else echo "Hadoop common not found." exit fi ________________________________ Zecco.com is a financial portal of Zecco Holdings, Inc. Zecco Holdings, Inc. is not a securities broker/dealer. Securities offered through Zecco Trading, Inc. The content of this message and its attachments is intended only for the use of the intended recipient and may contain confidential and privileged information. If you are not the intended recipient, any dissemination, distribution, or copying of this message or its attachments is prohibited. If you received this message in error, please notify the sender by replying to this email immediately and delete this message and its attachments from your computer.
