[ 
https://issues.apache.org/jira/browse/HADOOP-4675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667685#action_12667685
 ] 

Steve Loughran commented on HADOOP-4675:
----------------------------------------

# does this break ganglia 3.0?
# The code works out its hostname in a static constructor

{code}
+        InetAddress localMachine = InetAddress.getLocalHost();
+        hostName = localMachine.getHostName();
{code}
For 0.20 and onwards, this patch should use the code in 
org.apache.hadoop.net.DNS, rather than try and do this itself. The DNS class 
has caching and fallback for machines that don't know who they are.

> Current Ganglia metrics implementation is incompatible with Ganglia 3.1
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-4675
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4675
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: metrics
>    Affects Versions: 0.18.2
>            Reporter: Brian Bockelman
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hadoop-4675-2.patch, hadoop-4675-3.patch, 
> HADOOP-4675-4.patch, hadoop-4675.patch
>
>
> Ganglia changed its wire protocol in the 3.1.x series; the current 
> implementation only works for 3.0.x.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to