hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amareshwari Sriramadasu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-5198) NPE in Shell.runCommand()
Date Mon, 09 Feb 2009 10:56:59 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-5198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671803#action_12671803
] 

Amareshwari Sriramadasu commented on HADOOP-5198:
-------------------------------------------------

corresponding TaskTracker logs :
{noformat}
2009-02-09 10:32:54,062 INFO org.apache.hadoop.mapred.TaskTracker: LaunchTaskAction (registerTask):
attempt_200902090818_0001_m_009589_1 task's state:KILLED_UNCLEAN
2009-02-09 10:32:54,062 INFO org.apache.hadoop.mapred.TaskTracker: Trying to launch : attempt_200902090818_0001_m_009589_1
2009-02-09 10:32:54,062 INFO org.apache.hadoop.mapred.TaskTracker: In TaskLauncher, current
free slots : 1 and trying to launch attempt_200902090818_0001_m_009589_1
2009-02-09 10:32:54,281 INFO org.apache.hadoop.mapred.JvmManager: In JvmRunner constructed
JVM ID: jvm_200902090818_0001_m_-1842952603
2009-02-09 10:32:54,281 INFO org.apache.hadoop.mapred.JvmManager: JVM Runner jvm_200902090818_0001_m_-1842952603
spawned.                                    
2009-02-09 10:32:56,119 INFO org.apache.hadoop.mapred.TaskTracker: JVM with ID: jvm_200902090818_0001_m_-1842952603
given task: attempt_200902090818_0001_m_009589_1
2009-02-09 10:32:57,031 INFO org.apache.hadoop.mapred.TaskTracker: attempt_200902090818_0001_m_009589_1
0.0%
2009-02-09 10:32:57,048 INFO org.apache.hadoop.mapred.TaskTracker: attempt_200902090818_0001_m_009589_1
0.0% cleanup
2009-02-09 10:32:57,050 INFO org.apache.hadoop.mapred.TaskTracker: Task attempt_200902090818_0001_m_009589_1
is done.
2009-02-09 10:32:57,050 INFO org.apache.hadoop.mapred.TaskTracker: reported output size for
attempt_200902090818_0001_m_009589_1  was 0
2009-02-09 10:32:57,052 INFO org.apache.hadoop.mapred.TaskRunner: attempt_200902090818_0001_m_009589_1
done; removing files.
2009-02-09 10:32:57,055 INFO org.apache.hadoop.mapred.TaskTracker: addFreeSlot : current free
slots : 1
2009-02-09 10:32:57,070 INFO org.apache.hadoop.mapred.TaskTracker: LaunchTaskAction (registerTask):
attempt_200902090818_0001_m_009910_1 task's state:UNASSIGNED
2009-02-09 10:32:57,070 INFO org.apache.hadoop.mapred.TaskTracker: Trying to launch : attempt_200902090818_0001_m_009910_1
2009-02-09 10:32:57,070 INFO org.apache.hadoop.mapred.TaskTracker: In TaskLauncher, current
free slots : 1 and trying to launch attempt_200902090818_0001_m_009910_1
2009-02-09 10:32:57,200 INFO org.apache.hadoop.mapred.JvmManager: Killing JVM: jvm_200902090818_0001_m_-1842952603
2009-02-09 10:32:57,251 WARN org.apache.hadoop.util.ProcessTree: Error executing shell command
org.apache.hadoop.util.Shell$ExitCodeException: kill: can't find process "-null"
2009-02-09 10:32:57,251 INFO org.apache.hadoop.util.ProcessTree: Killing all processes in
the process group null with SIGTERM. Exit code 1
2009-02-09 10:32:57,252 INFO org.apache.hadoop.mapred.JvmManager: JVM : jvm_200902090818_0001_m_-1842952603
exited. Number of tasks it ran: 1
2009-02-09 10:32:57,256 WARN org.apache.hadoop.mapred.TaskRunner: attempt_200902090818_0001_m_009910_1
Child Error
java.lang.NullPointerException        
at java.lang.ProcessBuilder.start(ProcessBuilder.java:441)
at org.apache.hadoop.util.Shell.runCommand(Shell.java:149)        
at org.apache.hadoop.util.Shell.run(Shell.java:134)
at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:286)        
at org.apache.hadoop.util.ProcessTree.isAlive(ProcessTree.java:244)
at org.apache.hadoop.util.ProcessTree.sigKillInCurrentThread(ProcessTree.java:67)        
at org.apache.hadoop.util.ProcessTree.sigKill(ProcessTree.java:115)
at org.apache.hadoop.util.ProcessTree.destroyProcessGroup(ProcessTree.java:164)        
at org.apache.hadoop.util.ProcessTree.destroy(ProcessTree.java:180)
at org.apache.hadoop.mapred.JvmManager$JvmManagerForType$JvmRunner.kill(JvmManager.java:377)
       
at org.apache.hadoop.mapred.JvmManager$JvmManagerForType.reapJvm(JvmManager.java:249)
at org.apache.hadoop.mapred.JvmManager$JvmManagerForType.access$000(JvmManager.java:113) 
      
at org.apache.hadoop.mapred.JvmManager.launchJvm(JvmManager.java:76)
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:411)                          
                                                           
{noformat}

> NPE in Shell.runCommand()
> -------------------------
>
>                 Key: HADOOP-5198
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5198
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: mapred, util
>    Affects Versions: 0.21.0
>            Reporter: Amareshwari Sriramadasu
>             Fix For: 0.21.0
>
>
> I have seen one of the task failures with following exception:
> java.lang.NullPointerException
> 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:441)
> 	at org.apache.hadoop.util.Shell.runCommand(Shell.java:149)
> 	at org.apache.hadoop.util.Shell.run(Shell.java:134)
> 	at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:286)
> 	at org.apache.hadoop.util.ProcessTree.isAlive(ProcessTree.java:244)
> 	at org.apache.hadoop.util.ProcessTree.sigKillInCurrentThread(ProcessTree.java:67)
> 	at org.apache.hadoop.util.ProcessTree.sigKill(ProcessTree.java:115)
> 	at org.apache.hadoop.util.ProcessTree.destroyProcessGroup(ProcessTree.java:164)
> 	at org.apache.hadoop.util.ProcessTree.destroy(ProcessTree.java:180)
> 	at org.apache.hadoop.mapred.JvmManager$JvmManagerForType$JvmRunner.kill(JvmManager.java:377)
> 	at org.apache.hadoop.mapred.JvmManager$JvmManagerForType.reapJvm(JvmManager.java:249)
> 	at org.apache.hadoop.mapred.JvmManager$JvmManagerForType.access$000(JvmManager.java:113)
> 	at org.apache.hadoop.mapred.JvmManager.launchJvm(JvmManager.java:76)
> 	at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:411)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message