HADOOP-11966. Variable cygwin is undefined in hadoop-config.sh when executed through hadoop-daemon.sh. Contributed by Chris Nauroth.
This commit is contained in:
parent
2e9392c157
commit
ddc4afeff2
|
@ -244,6 +244,9 @@ Release 2.7.1 - UNRELEASED
|
|||
HADOOP-11663. Remove description about Java 6 from docs.
|
||||
(Masatake Iwasaki via aajisaka)
|
||||
|
||||
HADOOP-11966. Variable cygwin is undefined in hadoop-config.sh when executed
|
||||
through hadoop-daemon.sh. (cnauroth)
|
||||
|
||||
Release 2.7.0 - 2015-04-20
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -23,11 +23,6 @@ bin=`cd "$bin"; pwd`
|
|||
|
||||
DEFAULT_LIBEXEC_DIR="$bin"/../libexec
|
||||
|
||||
cygwin=false
|
||||
case "$(uname)" in
|
||||
CYGWIN*) cygwin=true;;
|
||||
esac
|
||||
|
||||
HADOOP_LIBEXEC_DIR=${HADOOP_LIBEXEC_DIR:-$DEFAULT_LIBEXEC_DIR}
|
||||
. $HADOOP_LIBEXEC_DIR/hadoop-config.sh
|
||||
|
||||
|
|
|
@ -145,6 +145,11 @@ if [ -f "${HADOOP_CONF_DIR}/hadoop-env.sh" ]; then
|
|||
. "${HADOOP_CONF_DIR}/hadoop-env.sh"
|
||||
fi
|
||||
|
||||
cygwin=false
|
||||
case "$(uname)" in
|
||||
CYGWIN*) cygwin=true;;
|
||||
esac
|
||||
|
||||
# check if net.ipv6.bindv6only is set to 1
|
||||
bindv6only=$(/sbin/sysctl -n net.ipv6.bindv6only 2> /dev/null)
|
||||
if [ -n "$bindv6only" ] && [ "$bindv6only" -eq "1" ] && [ "$HADOOP_ALLOW_IPV6" != "yes" ]
|
||||
|
|
|
@ -31,11 +31,6 @@ bin=`cd "$bin" > /dev/null; pwd`
|
|||
|
||||
DEFAULT_LIBEXEC_DIR="$bin"/../libexec
|
||||
|
||||
cygwin=false
|
||||
case "$(uname)" in
|
||||
CYGWIN*) cygwin=true;;
|
||||
esac
|
||||
|
||||
HADOOP_LIBEXEC_DIR=${HADOOP_LIBEXEC_DIR:-$DEFAULT_LIBEXEC_DIR}
|
||||
. $HADOOP_LIBEXEC_DIR/hdfs-config.sh
|
||||
|
||||
|
|
|
@ -21,11 +21,6 @@ bin=`cd "$bin"; pwd`
|
|||
|
||||
DEFAULT_LIBEXEC_DIR="$bin"/../libexec
|
||||
|
||||
cygwin=false
|
||||
case "$(uname)" in
|
||||
CYGWIN*) cygwin=true;;
|
||||
esac
|
||||
|
||||
HADOOP_LIBEXEC_DIR=${HADOOP_LIBEXEC_DIR:-$DEFAULT_LIBEXEC_DIR}
|
||||
if [ -e ${HADOOP_LIBEXEC_DIR}/mapred-config.sh ]; then
|
||||
. ${HADOOP_LIBEXEC_DIR}/mapred-config.sh
|
||||
|
|
|
@ -56,11 +56,6 @@ bin=`cd "$bin"; pwd`
|
|||
|
||||
DEFAULT_LIBEXEC_DIR="$bin"/../libexec
|
||||
|
||||
cygwin=false
|
||||
case "$(uname)" in
|
||||
CYGWIN*) cygwin=true;;
|
||||
esac
|
||||
|
||||
HADOOP_LIBEXEC_DIR=${HADOOP_LIBEXEC_DIR:-$DEFAULT_LIBEXEC_DIR}
|
||||
. $HADOOP_LIBEXEC_DIR/yarn-config.sh
|
||||
|
||||
|
|
Loading…
Reference in New Issue