HADOOP-12828. Print user when services are started. (Wei-Chiu Chuang via Yongjun Zhang)

This commit is contained in:
Yongjun Zhang 2016-02-19 09:41:22 -08:00
parent 748b6c07fe
commit a963baba10
3 changed files with 5 additions and 0 deletions

View File

@ -1134,6 +1134,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-11031. Design Document for Credential Provider API.
(Larry McCay via cnauroth)
HADOOP-12828. Print user when services are started.
(Wei-Chiu Chuang via Yongjun Zhang)
OPTIMIZATIONS
HADOOP-11785. Reduce the number of listStatus operation in distcp

View File

@ -687,6 +687,7 @@ static void startupShutdownMessage(Class<?> clazz, String[] args,
LOG.info(
toStartupShutdownString("STARTUP_MSG: ", new String[] {
"Starting " + classname,
" user = " + System.getProperty("user.name"),
" host = " + hostname,
" args = " + Arrays.asList(args),
" version = " + VersionInfo.getVersion(),

View File

@ -124,6 +124,7 @@ public void contextInitialized(ServletContextEvent sce) {
LOG.info("-------------------------------------------------------------");
LOG.info(" Java runtime version : {}", System.getProperty(
"java.runtime.version"));
LOG.info(" User: {}", System.getProperty("user.name"));
LOG.info(" KMS Hadoop Version: " + VersionInfo.getVersion());
LOG.info("-------------------------------------------------------------");