Browse Source

HADOOP-8931. Add Java version to startup message. Contributed by Eli Collins

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1398998 13f79535-47bb-0310-9956-ffa450edef68
Eli Collins 12 years ago
parent
commit
be2b9d0236

+ 2 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -323,6 +323,8 @@ Release 2.0.3-alpha - Unreleased
     HADOOP-8922. Provide alternate JSONP output for JMXJsonServlet to allow
     javascript in browser dashboard (Damien Hardy via bobby)
 
+    HADOOP-8931. Add Java version to startup message. (eli)
+
   OPTIMIZATIONS
 
     HADOOP-8866. SampleQuantiles#query is O(N^2) instead of O(N). (Andrew Wang

+ 2 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java

@@ -608,7 +608,8 @@ public class StringUtils {
             "  build = " + VersionInfo.getUrl() + " -r "
                          + VersionInfo.getRevision()  
                          + "; compiled by '" + VersionInfo.getUser()
-                         + "' on " + VersionInfo.getDate()}
+                         + "' on " + VersionInfo.getDate(),
+            "  java = " + System.getProperty("java.version") }
         )
       );