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

NPE occured when run MapredTestDriver's testcase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 3.0.0-alpha4
    • None
    • test
    • Patch

    Description

      When runing the timelineperformance test from MapredTestDriver without input parameter, an NPE was throwed:

      ./hadoop org.apache.hadoop.test.MapredTestDriver timelineperformance
      ...
      2017-06-08 09:32:13,194 ERROR mapreduce.SimpleEntityWriterV1: writing to the timeline service failed
      java.lang.NullPointerException
      at org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl.putEntities(TimelineClientImpl.java:178)
      at org.apache.hadoop.mapreduce.SimpleEntityWriterV1.map(SimpleEntityWriterV1.java:82)
      at org.apache.hadoop.mapreduce.SimpleEntityWriterV1.map(SimpleEntityWriterV1.java:41)
      at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:146)
      at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:793)
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
      at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:271)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      That's better to add a protection of NULL pointer check.

      Attachments

        1. MAPREDUCE-6903.001.patch
          9 kB
          LiXin Ge
        2. MAPREDUCE-6903.002.patch
          2 kB
          LiXin Ge
        3. MAPREDUCE-6903.003.patch
          5 kB
          LiXin Ge
        4. MAPREDUCE-6903.004.patch
          5 kB
          LiXin Ge

        Activity

          People

            GeLiXin LiXin Ge
            GeLiXin LiXin Ge
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: