falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject falcon git commit: FALCON-2065 Falcon CLI failing with missing KerberosAuthenticator class
Date Fri, 08 Jul 2016 16:12:05 GMT
Repository: falcon
Updated Branches:
  refs/heads/0.10 c9e93162a -> 93cf7cc2d


FALCON-2065 Falcon CLI failing with missing KerberosAuthenticator class

Pull request for Falcon 0.10.

Author: peeyush b <pbishnoi@hortonworks.com>

Reviewers: "Balu <balu@apache.org>"

Closes #219 from peeyushb/FALCON-2065_0.10


Project: http://git-wip-us.apache.org/repos/asf/falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/falcon/commit/93cf7cc2
Tree: http://git-wip-us.apache.org/repos/asf/falcon/tree/93cf7cc2
Diff: http://git-wip-us.apache.org/repos/asf/falcon/diff/93cf7cc2

Branch: refs/heads/0.10
Commit: 93cf7cc2d5aed9c674dfc927768ceb6485102c00
Parents: c9e9316
Author: peeyush b <pbishnoi@hortonworks.com>
Authored: Fri Jul 8 09:11:54 2016 -0700
Committer: bvellanki <bvellanki@hortonworks.com>
Committed: Fri Jul 8 09:11:54 2016 -0700

----------------------------------------------------------------------
 src/bin/falcon-config.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/falcon/blob/93cf7cc2/src/bin/falcon-config.sh
----------------------------------------------------------------------
diff --git a/src/bin/falcon-config.sh b/src/bin/falcon-config.sh
index 20f04af..ecac65e 100644
--- a/src/bin/falcon-config.sh
+++ b/src/bin/falcon-config.sh
@@ -68,6 +68,18 @@ case $type in
     for i in `ls ${BASEDIR}/server/webapp`; do
       FALCONCPPATH="${FALCONCPPATH}:${i}/WEB-INF/lib/*"
     done
+    # In future we should refactor the CP directories between server and client
+    HADOOPDIR=`which hadoop`
+    if [ "$HADOOP_HOME" != "" ]; then
+      echo "Hadoop home is set, adding libraries from '${HADOOP_HOME}/bin/hadoop classpath'
into falcon classpath"
+      FALCONCPPATH="${FALCONCPPATH}:`${HADOOP_HOME}/bin/hadoop classpath`"
+    elif [ "$HADOOPDIR" != "" ]; then
+      echo "Hadoop is installed, adding hadoop classpath to falcon classpath"
+      FALCONCPPATH="${FALCONCPPATH}:`hadoop classpath`"
+    else
+      echo "Could not find installed hadoop and HADOOP_HOME is not set."
+      echo "Please make sure either HADOOP_HOME is set or hadoop is in the PATH"
+    fi
     FALCON_OPTS="$FALCON_OPTS $FALCON_CLIENT_OPTS $FALCON_CLIENT_HEAP"
   ;;
   server)


Mime
View raw message