[ https://issues.apache.org/jira/browse/HADOOP-10181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14303136#comment-14303136 ]
Hudson commented on HADOOP-10181: --------------------------------- SUCCESS: Integrated in Hadoop-Yarn-trunk #827 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/827/]) HADOOP-10181. GangliaContext does not work with multicast ganglia setup. Contributed by Andrew Johnson. (cnauroth: rev 8004a002307940176cc188657c68e85171a5b5a8) * hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/metrics2/sink/ganglia/TestGangliaSink.java * hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics/ganglia/GangliaContext.java * hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics/ganglia/package.html * hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/ganglia/AbstractGangliaSink.java * hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/metrics/ganglia/TestGangliaContext.java * hadoop-common-project/hadoop-common/CHANGES.txt > GangliaContext does not work with multicast ganglia setup > --------------------------------------------------------- > > Key: HADOOP-10181 > URL: https://issues.apache.org/jira/browse/HADOOP-10181 > Project: Hadoop Common > Issue Type: Bug > Components: metrics > Affects Versions: 2.6.0 > Reporter: Andrew Otto > Assignee: Andrew Johnson > Priority: Minor > Labels: ganglia, hadoop, metrics, multicast > Fix For: 2.7.0 > > Attachments: HADOOP-10181.001.patch, HADOOP-10181.002.patch, > HADOOP-10181.003.patch > > > The GangliaContext class which is used to send Hadoop metrics to Ganglia uses > a DatagramSocket to send these metrics. This works fine for Ganglia > multicast setups that are all on the same VLAN. However, when working with > multiple VLANs, a packet sent via DatagramSocket to a multicast address will > end up with a TTL of 1. Multicast TTL indicates the number of network hops > for which a particular multicast packet is valid. The packets sent by > GangliaContext do not make it to ganglia aggregrators on the same multicast > group, but in different VLANs. > To fix, we'd need a configuration property that specifies that multicast is > to be used, and another that allows setting of the multicast packet TTL. > With these set, we could then use MulticastSocket setTimeToLive() instead of > just plain ol' DatagramSocket. -- This message was sent by Atlassian JIRA (v6.3.4#6332)