Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2470

Receiving NPE occasionally on RunningJob.getCounters() call

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.21.0
    • 0.23.0
    • client
    • None
    • FreeBSD, Java6, Hadoop r0.21.0

    • Reviewed

    Description

      This is running in a Java daemon that is used as an interface (Thrift) to get information and data from MR Jobs. Using JobClient.getJob(JobID) I successfully get a RunningJob object (I'm checking for NULL), and then rarely I get an NPE when I do RunningJob.getCounters(). This seems to occur after the daemon has been up and running for a while, and in the event of an Exception, I close the JobClient, set it to NULL, and a new one should then be created on the next request for data. Yet, I still seem to be unable to fetch the Counters. Below is the stack trace.

      java.lang.NullPointerException
      at org.apache.hadoop.mapred.Counters.downgrade(Counters.java:77)
      at org.apache.hadoop.mapred.JobClient$NetworkedJob.getCounters(JobClient.java:381)
      at com.telescope.HadoopThrift.service.ServiceImpl.getReportResults(ServiceImpl.java:350)
      at com.telescope.HadoopThrift.gen.HadoopThrift$Processor$getReportResults.process(HadoopThrift.java:545)
      at com.telescope.HadoopThrift.gen.HadoopThrift$Processor.process(HadoopThrift.java:421)
      at org.apache.thrift.server.TNonblockingServer$FrameBuffer.invoke(TNonblockingServer.java:697)
      at org.apache.thrift.server.THsHaServer$Invocation.run(THsHaServer.java:317)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

      Attachments

        1. MAPREDUCE-2470-v3.patch
          7 kB
          Robert Joseph Evans
        2. MAPREDUCE-2470-v2.patch
          5 kB
          Robert Joseph Evans
        3. MAPREDUCE-2470-v1.patch
          2 kB
          Robert Joseph Evans
        4. counters_null_data.pcap
          1.0 kB
          Aaron Baff

        Activity

          People

            revans2 Robert Joseph Evans
            drizzt321 Aaron Baff
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: