This is a follow-up jira of HDFS-6353. HDFS-6353 adds the functionality to check if saving namespace is necessary before stopping namenode. As kihwal pointed out in this comment, in a secured cluster this new functionality requires the user to be kinit'ed.