Do not set -Xmx in HADOOP_NAMENODE_OPTS/HADOOP_JOBTRACKER_OPTS, so as to avoid conflict with HADOOP_HEAPSIZE
hmonitor service should be stopped before namenode/jobtracker service is restarted/stopped, and be started after namenode/jobtracker is restarted/started