hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r483594 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/net/DNS.java
Date Thu, 07 Dec 2006 18:28:27 GMT
Author: cutting
Date: Thu Dec  7 10:28:26 2006
New Revision: 483594

URL: http://svn.apache.org/viewvc?view=rev&rev=483594
Log:
HADOOP-777.  Use fully-qualified hostnames for tasktrackers and datanodes.  Contributed by
Mahadev.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/net/DNS.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=483594&r1=483593&r2=483594
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Thu Dec  7 10:28:26 2006
@@ -11,6 +11,9 @@
  3. HADOOP-763. Change DFS namenode benchmark to not use MapReduce.
     (Nigel Daley via cutting)
 
+ 4. HADOOP-777. Use fully-qualified hostnames for tasktrackers and
+    datanodes.  (Mahadev Konar via cutting)
+
 
 Release 0.9.0 - 2006-12-01
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/net/DNS.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/net/DNS.java?view=diff&rev=483594&r1=483593&r2=483594
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/net/DNS.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/net/DNS.java Thu Dec  7 10:28:26 2006
@@ -128,7 +128,7 @@
       }
 
     if (hosts.size() == 0)
-      return new String[] { InetAddress.getLocalHost().getHostName() };
+      return new String[] { InetAddress.getLocalHost().getCanonicalHostName() };
     else
       return (String[]) hosts.toArray(new String[] {});
   }
@@ -166,7 +166,7 @@
   public static String getDefaultHost(String strInterface, String nameserver)
     throws UnknownHostException {
     if (strInterface.equals("default")) 
-      return InetAddress.getLocalHost().getHostName();
+      return InetAddress.getLocalHost().getCanonicalHostName();
 
     if (nameserver.equals("default"))
       return getDefaultHost(strInterface);



Mime
View raw message