falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peeyu...@apache.org
Subject falcon git commit: FALCON-1925 Add hadoop classpath to falcon client classpath in falcon-config.sh
Date Fri, 22 Apr 2016 14:30:59 GMT
Repository: falcon
Updated Branches:
  refs/heads/master a36946101 -> 897aa5fd1


FALCON-1925 Add hadoop classpath to falcon client classpath in falcon-config.sh

This is for recipe submission in a secure cluster

Author: Venkat Ranganathan <venkat@hortonworks.com>
Author: Sowmya Ramesh <sowmya_kr@apache.org>
Author: Praveen Adlakha <adlakha.praveen@gmail.com>
Author: bvellanki <bvellanki@hortonworks.com>
Author: yzheng-hortonworks <yzheng@hortonworks.com>

Reviewers: Peeyush<peeyushb@apache.org>, Sandeep<sandysmdl@gmail.com>

Closes #112 from vrangan/master and squashes the following commits:

66907d8 [Venkat Ranganathan] Merge remote-tracking branch 'upstream/master'
4025644 [Venkat Ranganathan] FALCON-1925: Add hadoop classpath to falcon client classpath
in falcon-config.sh
608efeb [bvellanki] FALCON-1861 Support HDFS Snapshot based replication in Falcon
9f7fa4b [Sowmya Ramesh] FALCON-1105 REST API support for Server side extensions artifact repository
management
ac6dd92 [yzheng-hortonworks] FALCON-1790 CLI support for instance search
4c50d8d [Praveen Adlakha] FALCON-1749 Instance status does not show instances if entity is
deleā€¦
157a4f7 [Venkat Ranganathan] Fix for allowing RM principal to be specified in cluster entity
5edcc8f [Venkat Ranganathan] Merge remote-tracking branch 'upstream/master'
bc5a458 [Venkat Ranganathan] Falcon webUI returns 413 (Full head - Request entity too large)
error when TLS is enabled in a secure cluster with AD integration


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

Branch: refs/heads/master
Commit: 897aa5fd1518e07b90598f5e7097f03bec877a2e
Parents: a369461
Author: Venkat Ranganathan <venkat@hortonworks.com>
Authored: Fri Apr 22 20:00:30 2016 +0530
Committer: peeyush b <pbishnoi@hortonworks.com>
Committed: Fri Apr 22 20:00:30 2016 +0530

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


http://git-wip-us.apache.org/repos/asf/falcon/blob/897aa5fd/src/bin/falcon-config.sh
----------------------------------------------------------------------
diff --git a/src/bin/falcon-config.sh b/src/bin/falcon-config.sh
index e87add2..b3be280 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