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 2017/02/17 09:59:14 UTC

[04/50] [abbrv] ignite git commit: IGNITE-3966: Hadoop: add Hadoop native library to Java arguments automatically. This closes #1320.

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/ac92bdb4
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/ac92bdb4
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/ac92bdb4

Branch: refs/heads/ignite-1.9
Commit: ac92bdb44ed0fb02893c1e7e9df4443a0a26d331
Parents: 494cf88
Author: Ivan Veselovskiy <iv...@gridgain.com>
Authored: Mon Dec 19 11:57:00 2016 +0300
Committer: devozerov <vo...@gridgain.com>
Committed: Thu Jan 5 12:38:51 2017 +0300

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


http://git-wip-us.apache.org/repos/asf/ignite/blob/ac92bdb4/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