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/07/01 12:10:49 UTC
[06/27] ignite git commit: IGNITE-3184: correction to read
/etc/default/hadoop
IGNITE-3184: correction to read /etc/default/hadoop
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/69101268
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/69101268
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/69101268
Branch: refs/heads/ignite-3185
Commit: 691012680e4d9e2b3002764d29b1096f93bb7aad
Parents: d27924c
Author: iveselovskiy <iv...@gridgain.com>
Authored: Tue Jun 21 15:44:33 2016 +0300
Committer: iveselovskiy <iv...@gridgain.com>
Committed: Tue Jun 21 15:44:33 2016 +0300
----------------------------------------------------------------------
bin/include/setenv.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/69101268/bin/include/setenv.sh
----------------------------------------------------------------------
diff --git a/bin/include/setenv.sh b/bin/include/setenv.sh
index 1f51b59..a85cba3 100755
--- a/bin/include/setenv.sh
+++ b/bin/include/setenv.sh
@@ -72,6 +72,18 @@ if [ "${USER_LIBS}" != "" ]; then
fi
if [ "${HADOOP_EDITION}" == "1" ]; then
+ # Resolve constants.
+ HADOOP_DEFAULTS="/etc/default/hadoop"
+
+ #
+ # Resolve the rest of Hadoop environment variables.
+ #
+ if [[ -z "${HADOOP_COMMON_HOME}" || -z "${HADOOP_HDFS_HOME}" || -z "${HADOOP_MAPRED_HOME}" ]]; then
+ if [ -f "$HADOOP_DEFAULTS" ]; then
+ source "$HADOOP_DEFAULTS"
+ fi
+ fi
+
IGNITE_HADOOP_CLASSPATH=$( "$JAVA" -cp "${IGNITE_HOME}"/libs/ignite-hadoop/'*' \
org.apache.ignite.internal.processors.hadoop.HadoopClasspathMain ":" )