You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2016/12/19 08:57:07 UTC

ignite git commit: IGNITE-3966: Hadoop: add Hadoop native library to Java arguments automatically. This closes #1320.

Repository: ignite
Updated Branches:
  refs/heads/master 1e97d78c9 -> fcf5d9ac7


IGNITE-3966: Hadoop: add Hadoop native library to Java arguments automatically. This closes #1320.


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

Branch: refs/heads/master
Commit: fcf5d9ac714df93c615f97fdc306913bf7ed7e50
Parents: 1e97d78
Author: Ivan Veselovskiy <iv...@gridgain.com>
Authored: Mon Dec 19 11:57:00 2016 +0300
Committer: devozerov <vo...@gridgain.com>
Committed: Mon Dec 19 11:57:00 2016 +0300

----------------------------------------------------------------------
 bin/ignite.sh | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/fcf5d9ac/bin/ignite.sh
----------------------------------------------------------------------
diff --git a/bin/ignite.sh b/bin/ignite.sh
index 05d2d5f..efa3715 100755
--- a/bin/ignite.sh
+++ b/bin/ignite.sh
@@ -128,6 +128,15 @@ if [ "${ENABLE_ASSERTIONS}" = "1" ]; then
 fi
 
 #
+# If this is a Hadoop edition, and HADOOP_HOME set, add the native library location:
+#
+if [ -d "${IGNITE_HOME}/libs/ignite-hadoop/" ] && [ -n "${HADOOP_HOME}" ] && [ -d "${HADOOP_HOME}/lib/native/" ]; then
+   if [[ "${JVM_OPTS}${JVM_XOPTS}" != *-Djava.library.path=* ]]; then
+      JVM_OPTS="${JVM_OPTS} -Djava.library.path=${HADOOP_HOME}/lib/native/"
+   fi
+fi
+
+#
 # Set main class to start service (grid node by default).
 #
 if [ "${MAIN_CLASS}" = "" ]; then