Skip to content

Commit

Permalink
FLUME-270: bin/flume should respect HADOOP_CONF_DIR and use core and …
Browse files Browse the repository at this point in the history
…hdfs settings from there
  • Loading branch information
Jonathan Hsieh committed Oct 19, 2010
1 parent fa851e6 commit 5731ef1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/flume
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,17 @@ if [ "$cygwin" == false ] ; then
CLASSPATH+=":${FLUME_CLASSPATH}"
fi

# put hadoop conf dir in classpath to include Hadoop
# core-site.xml/hdfs-site.xml
if [ -n "${HADOOP_CONF_DIR}" ]; then
CLASSPATH+=":${HADOOP_CONF_DIR}"
elif [ -n "${HADOOP_HOME}" ] ; then
CLASSPATH+=":${HADOOP_HOME}/conf"
elif [ -e "/usr/lib/hadoop/conf" ] ; then
# if neither is present see if the CDH dir exists
CLASSPATH+=":/usr/lib/hadoop-0.20/conf";
fi # otherwise give up

# try to load the hadoop core jars
HADOOP_CORE_FOUND=false
while true; do
Expand Down

0 comments on commit 5731ef1

Please sign in to comment.