HDFS-8800. hdfs --daemon stop namenode corrupts logs (John Smith via aw)
This commit is contained in:
parent
29cf887b22
commit
c9507fe6c1
|
@ -343,6 +343,8 @@ Trunk (Unreleased)
|
||||||
|
|
||||||
HDFS-8657. Update docs for mSNN. (Jesse Yates via atm)
|
HDFS-8657. Update docs for mSNN. (Jesse Yates via atm)
|
||||||
|
|
||||||
|
HDFS-8800. hdfs --daemon stop namenode corrupts logs (John Smith via aw)
|
||||||
|
|
||||||
Release 2.8.0 - UNRELEASED
|
Release 2.8.0 - UNRELEASED
|
||||||
|
|
||||||
NEW FEATURES
|
NEW FEATURES
|
||||||
|
|
|
@ -274,14 +274,6 @@ fi
|
||||||
hadoop_finalize
|
hadoop_finalize
|
||||||
|
|
||||||
if [[ -n "${supportdaemonization}" ]]; then
|
if [[ -n "${supportdaemonization}" ]]; then
|
||||||
if [[ "${COMMAND}" == "namenode" ]] &&
|
|
||||||
[[ "${HADOOP_DAEMON_MODE}" == "stop" ]]; then
|
|
||||||
hadoop_debug "Do checkpoint if necessary before stopping NameNode"
|
|
||||||
export CLASSPATH
|
|
||||||
"${JAVA}" "-Dproc_dfsadmin" ${HADOOP_OPTS} "org.apache.hadoop.hdfs.tools.DFSAdmin" "-safemode" "enter"
|
|
||||||
"${JAVA}" "-Dproc_dfsadmin" ${HADOOP_OPTS} "org.apache.hadoop.hdfs.tools.DFSAdmin" "-saveNamespace" "-beforeShutdown"
|
|
||||||
"${JAVA}" "-Dproc_dfsadmin" ${HADOOP_OPTS} "org.apache.hadoop.hdfs.tools.DFSAdmin" "-safemode" "leave"
|
|
||||||
fi
|
|
||||||
if [[ -n "${secure_service}" ]]; then
|
if [[ -n "${secure_service}" ]]; then
|
||||||
hadoop_secure_daemon_handler \
|
hadoop_secure_daemon_handler \
|
||||||
"${HADOOP_DAEMON_MODE}" "${COMMAND}" "${CLASS}"\
|
"${HADOOP_DAEMON_MODE}" "${COMMAND}" "${CLASS}"\
|
||||||
|
|
Loading…
Reference in New Issue