Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-4137

NPE in GangliaContext.xdr_string (GangliaContext.java:195)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.18.0, 0.18.1
    • Fix Version/s: None
    • Component/s: metrics
    • Labels:
      None

      Description

      Exception in thread "Timer thread for monitoring dfs" java.lang.NullPointerException
      at org.apache.hadoop.metrics.ganglia.GangliaContext.xdr_string(GangliaContext.java:195)
      at org.apache.hadoop.metrics.ganglia.GangliaContext.emitMetric(GangliaContext.java:138)
      at org.apache.hadoop.metrics.ganglia.GangliaContext.emitRecord(GangliaContext.java:123)
      at org.apache.hadoop.metrics.spi.AbstractMetricsContext.emitRecords(AbstractMetricsContext.java:304)
      at org.apache.hadoop.metrics.spi.AbstractMetricsContext.timerEvent(AbstractMetricsContext.java:290)
      at org.apache.hadoop.metrics.spi.AbstractMetricsContext.access$000(AbstractMetricsContext.java:50)
      at org.apache.hadoop.metrics.spi.AbstractMetricsContext$1.run(AbstractMetricsContext.java:249)
      at java.util.TimerThread.mainLoop(Unknown Source)
      at java.util.TimerThread.run(Unknown Source)

      It looks like this caused the datanode to hang, though I accidentally killed the datanode before I could dump its stack.

        Attachments

        1. hadoop_ganglia_npe-4137.patch
          1 kB
          Brian Bockelman
        2. hadoop_ganglia_npe-4137.patch
          1 kB
          Brian Bockelman

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bien Michael Bieniosek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: