HADOOP-11052. hadoop_verify_secure_prereq's results aren't checked in bin/hdfs (aw)
This commit is contained in:
parent
71269f7097
commit
7a62515c86
@ -330,6 +330,9 @@ Trunk (Unreleased)
|
|||||||
|
|
||||||
HADOOP-11033. shell scripts ignore JAVA_HOME on OS X. (aw)
|
HADOOP-11033. shell scripts ignore JAVA_HOME on OS X. (aw)
|
||||||
|
|
||||||
|
HADOOP-11052. hadoop_verify_secure_prereq's results aren't checked
|
||||||
|
in bin/hdfs (aw)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-7761. Improve the performance of raw comparisons. (todd)
|
HADOOP-7761. Improve the performance of raw comparisons. (todd)
|
||||||
|
@ -644,9 +644,9 @@ function hadoop_verify_secure_prereq
|
|||||||
# this.
|
# this.
|
||||||
|
|
||||||
# ${EUID} comes from the shell itself!
|
# ${EUID} comes from the shell itself!
|
||||||
if [[ "${EUID}" -ne 0 ]] || [[ -n "${HADOOP_SECURE_COMMAND}" ]]; then
|
if [[ "${EUID}" -ne 0 ]] && [[ -z "${HADOOP_SECURE_COMMAND}" ]]; then
|
||||||
hadoop_error "ERROR: You must be a privileged in order to run a secure serice."
|
hadoop_error "ERROR: You must be a privileged in order to run a secure serice."
|
||||||
return 1
|
exit 1
|
||||||
else
|
else
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
@ -225,14 +225,13 @@ esac
|
|||||||
|
|
||||||
if [[ -n "${secure_service}" ]]; then
|
if [[ -n "${secure_service}" ]]; then
|
||||||
HADOOP_SECURE_USER="${secure_user}"
|
HADOOP_SECURE_USER="${secure_user}"
|
||||||
if hadoop_verify_secure_prereq; then
|
hadoop_verify_secure_prereq
|
||||||
hadoop_setup_secure_service
|
hadoop_setup_secure_service
|
||||||
priv_outfile="${HADOOP_LOG_DIR}/privileged-${HADOOP_IDENT_STRING}-${COMMAND-$HOSTNAME}.out"
|
priv_outfile="${HADOOP_LOG_DIR}/privileged-${HADOOP_IDENT_STRING}-${COMMAND-$HOSTNAME}.out"
|
||||||
priv_errfile="${HADOOP_LOG_DIR}/privileged-${HADOOP_IDENT_STRING}-${COMMAND-$HOSTNAME}.err"
|
priv_errfile="${HADOOP_LOG_DIR}/privileged-${HADOOP_IDENT_STRING}-${COMMAND-$HOSTNAME}.err"
|
||||||
priv_pidfile="${HADOOP_PID_DIR}/privileged-${HADOOP_IDENT_STRING}-${COMMAND-$HOSTNAME}.pid"
|
priv_pidfile="${HADOOP_PID_DIR}/privileged-${HADOOP_IDENT_STRING}-${COMMAND-$HOSTNAME}.pid"
|
||||||
daemon_outfile="${HADOOP_LOG_DIR}/hadoop-${HADOOP_SECURE_USER}-${HADOOP_IDENT_STRING}-${COMMAND}-${HOSTNAME}.out"
|
daemon_outfile="${HADOOP_LOG_DIR}/hadoop-${HADOOP_SECURE_USER}-${HADOOP_IDENT_STRING}-${COMMAND}-${HOSTNAME}.out"
|
||||||
daemon_pidfile="${HADOOP_PID_DIR}/hadoop-${HADOOP_SECURE_USER}-${HADOOP_IDENT_STRING}-${COMMAND}.pid"
|
daemon_pidfile="${HADOOP_PID_DIR}/hadoop-${HADOOP_SECURE_USER}-${HADOOP_IDENT_STRING}-${COMMAND}.pid"
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
daemon_outfile="${HADOOP_LOG_DIR}/hadoop-${HADOOP_IDENT_STRING}-${COMMAND}-${HOSTNAME}.out"
|
daemon_outfile="${HADOOP_LOG_DIR}/hadoop-${HADOOP_IDENT_STRING}-${COMMAND}-${HOSTNAME}.out"
|
||||||
daemon_pidfile="${HADOOP_PID_DIR}/hadoop-${HADOOP_IDENT_STRING}-${COMMAND}.pid"
|
daemon_pidfile="${HADOOP_PID_DIR}/hadoop-${HADOOP_IDENT_STRING}-${COMMAND}.pid"
|
||||||
|
Loading…
Reference in New Issue
Block a user