HADOOP-11058. Missing HADOOP_CONF_DIR generates strange results (Masatake Iwasaki via aw)
This commit is contained in:
parent
4cd66f7fb2
commit
cd7d78914c
|
@ -143,6 +143,9 @@ Trunk (Unreleased)
|
|||
|
||||
HADOOP-10788. Rewrite kms to use new shell framework (John Smith via aw)
|
||||
|
||||
HADOOP-11058. Missing HADOOP_CONF_DIR generates strange results
|
||||
(Masatake Iwasaki via aw)
|
||||
|
||||
BUG FIXES
|
||||
|
||||
HADOOP-9451. Fault single-layer config if node group topology is enabled.
|
||||
|
|
|
@ -169,6 +169,7 @@ hadoop_exec_userfuncs
|
|||
#
|
||||
|
||||
hadoop_exec_hadooprc
|
||||
hadoop_verify_confdir
|
||||
|
||||
# do all the OS-specific startup bits here
|
||||
# this allows us to get a decent JAVA_HOME,
|
||||
|
|
|
@ -92,6 +92,15 @@ function hadoop_find_confdir
|
|||
hadoop_debug "HADOOP_CONF_DIR=${HADOOP_CONF_DIR}"
|
||||
}
|
||||
|
||||
function hadoop_verify_confdir
|
||||
{
|
||||
# Check only log4j.properties by default.
|
||||
# --loglevel does not work without logger settings in log4j.log4j.properties.
|
||||
if [[ ! -f "${HADOOP_CONF_DIR}/log4j.properties" ]]; then
|
||||
hadoop_error "WARNING: log4j.properties is not found. HADOOP_CONF_DIR may be incomplete."
|
||||
fi
|
||||
}
|
||||
|
||||
function hadoop_exec_hadoopenv
|
||||
{
|
||||
# NOTE: This function is not user replaceable.
|
||||
|
|
Loading…
Reference in New Issue