You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@falcon.apache.org by pe...@apache.org on 2016/04/22 16:30:59 UTC
falcon git commit: FALCON-1925 Add hadoop classpath to falcon client
classpath in falcon-config.sh
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 <ve...@hortonworks.com>
Author: Sowmya Ramesh <so...@apache.org>
Author: Praveen Adlakha <ad...@gmail.com>
Author: bvellanki <bv...@hortonworks.com>
Author: yzheng-hortonworks <yz...@hortonworks.com>
Reviewers: Peeyush<pe...@apache.org>, Sandeep<sa...@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 <ve...@hortonworks.com>
Authored: Fri Apr 22 20:00:30 2016 +0530
Committer: peeyush b <pb...@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)