Sfoglia il codice sorgente

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

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1399009 13f79535-47bb-0310-9956-ffa450edef68
Eli Collins 12 anni fa
parent
commit
47f039b84c
2 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 2 0
      CHANGES.txt
  2. 2 1
      src/core/org/apache/hadoop/util/StringUtils.java

+ 2 - 0
CHANGES.txt

@@ -87,6 +87,8 @@ Release 1.2.0 - unreleased
     MAPREDUCE-3678. The Map tasks logs should have the value of input
     split it processed. (harsh)
 
+    HADOOP-8931. Add Java version to startup message. (eli)
+
   OPTIMIZATIONS
 
     HDFS-2533. Backport: Remove needless synchronization on some FSDataSet

+ 2 - 1
src/core/org/apache/hadoop/util/StringUtils.java

@@ -550,7 +550,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") }
         )
       );