protected void doSecureLogin(Configuration conf) throws IOException {
        InetSocketAddress socAddr = getBindAddress(conf);
        SecurityUtil.login(
                conf,
                HboxConfiguration.HBOX_HISTORY_KEYTAB,
                HboxConfiguration.HBOX_HISTORY_PRINCIPAL,
                socAddr.getHostName());
    }
Priority of the JobHistoryServer shutdown hook.
history-server/src/main/java/net/qihoo/hbox/jobhistory/JobHistoryServer.java