You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flume.apache.org by mp...@apache.org on 2012/09/17 08:35:28 UTC
git commit: FLUME-1582. flume-ng script should set LD_LIBRARY_PATH
Updated Branches:
refs/heads/trunk 30293ea1e -> a78fc2663
FLUME-1582. flume-ng script should set LD_LIBRARY_PATH
(Hari Shreedharan via Mike Percy)
Project: http://git-wip-us.apache.org/repos/asf/flume/repo
Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/a78fc266
Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/a78fc266
Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/a78fc266
Branch: refs/heads/trunk
Commit: a78fc2663d705b28e6956b12e131f2df8a791359
Parents: 30293ea
Author: Mike Percy <mp...@apache.org>
Authored: Sun Sep 16 23:34:39 2012 -0700
Committer: Mike Percy <mp...@apache.org>
Committed: Sun Sep 16 23:34:39 2012 -0700
----------------------------------------------------------------------
bin/flume-ng | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flume/blob/a78fc266/bin/flume-ng
----------------------------------------------------------------------
diff --git a/bin/flume-ng b/bin/flume-ng
index 121adf3..37b446b 100755
--- a/bin/flume-ng
+++ b/bin/flume-ng
@@ -160,6 +160,14 @@ add_HBASE_paths() {
fi
}
+set_LD_LIBRARY_PATH(){
+#Append the FLUME_JAVA_LIBRARY_PATH to whatever the user may have specified in
+#flume-env.sh
+ if [ -n "${FLUME_JAVA_LIBRARY_PATH}" ]; then
+ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${FLUME_JAVA_LIBRARY_PATH}"
+ fi
+}
+
display_help() {
cat <<EOF
Usage: $0 <command> [options]...
@@ -219,6 +227,7 @@ run_flume() {
FLUME_CLASSPATH=""
FLUME_JAVA_LIBRARY_PATH=""
JAVA_OPTS="-Xmx20m"
+LD_LIBRARY_PATH=""
opt_conf=""
opt_classpath=""
@@ -350,6 +359,7 @@ if [ -n "$opt_conf" ]; then
FLUME_CLASSPATH="$opt_conf:$FLUME_CLASSPATH"
fi
+set_LD_LIBRARY_PATH
# allow dryrun
EXEC="exec"
if [ -n "${opt_dryrun}" ]; then