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

WindowsResourceCalculatorPlugin has NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1-win
    • None
    • None
    • Reviewed

    Description

      When Shell command execution is interrupted then WindowsResourceCalculatorPlugin has NPE.
      code}
      2012-08-31 13:01:00,140 ERROR [Thread-771] util.WindowsResourceCalculatorPlugin(69): java.io.IOException: java.lang.InterruptedException^M
      at org.apache.hadoop.util.Shell.runCommand(Shell.java:424)^M
      at org.apache.hadoop.util.Shell.run(Shell.java:336)^M
      at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:540)^M
      at org.apache.hadoop.util.WindowsResourceCalculatorPlugin.getSystemInfoInfoFromShell(WindowsResourceCalculatorPlugin.java:66)^M
      at org.apache.hadoop.util.WindowsResourceCalculatorPlugin.refreshIfNeeded(WindowsResourceCalculatorPlugin.java:81)^M
      at org.apache.hadoop.util.WindowsResourceCalculatorPlugin.getAvailableVirtualMemorySize(WindowsResourceCalculatorPlugin.java:126)^M
      at org.apache.hadoop.mapred.TaskTracker.getAvailableVirtualMemoryOnTT(TaskTracker.java:1933)^M
      at org.apache.hadoop.mapred.TaskTracker.transmitHeartBeat(TaskTracker.java:1834)^M
      at org.apache.hadoop.mapred.TaskTracker.offerService(TaskTracker.java:1664)^M
      at org.apache.hadoop.mapred.TaskTracker.run(TaskTracker.java:2516)^M
      at org.apache.hadoop.mapred.MiniMRCluster$TaskTrackerRunner.run(MiniMRCluster.java:217)^M
      at java.lang.Thread.run(Thread.java:662)^M
      ^M
      2012-08-31 13:01:00,140 ERROR [Thread-771] mapred.TaskTracker(1766): Caught exception: java.lang.NullPointerException^M
      at org.apache.hadoop.util.WindowsResourceCalculatorPlugin.refreshIfNeeded(WindowsResourceCalculatorPlugin.java:83)^M
      at org.apache.hadoop.util.WindowsResourceCalculatorPlugin.getAvailableVirtualMemorySize(WindowsResourceCalculatorPlugin.java:126)^M
      at org.apache.hadoop.mapred.TaskTracker.getAvailableVirtualMemoryOnTT(TaskTracker.java:1933)^M
      at org.apache.hadoop.mapred.TaskTracker.transmitHeartBeat(TaskTracker.java:1834)^M
      at org.apache.hadoop.mapred.TaskTracker.offerService(TaskTracker.java:1664)^M
      at org.apache.hadoop.mapred.TaskTracker.run(TaskTracker.java:2516)^M
      at org.apache.hadoop.mapred.MiniMRCluster$TaskTrackerRunner.run(MiniMRCluster.java:217)^M
      at java.lang.Thread.run(Thread.java:662)^M

      
      

      Attachments

        1. MAPREDUCE-4657.branch-1-win.2.patch
          3 kB
          Bikas Saha
        2. MAPREDUCE-4657.branch-1-win.1.patch
          3 kB
          Bikas Saha

        Issue Links

          Activity

            People

              bikassaha Bikas Saha
              bikassaha Bikas Saha
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: