<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: ERROR util.ProcfsBasedProcessTree: java.io.IOException:  in MapReduce program in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106503#M29993</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/10632/atulnet.html" nodeid="10632"&gt;@atul kumar&lt;/A&gt;&lt;P&gt; If you run the job it will give you job_id. If the job_id is something like job_&amp;lt;12312324233242&amp;gt; then assume that oyur job is running in HDFS mode. If the job_id is job_local** then its local mode.&lt;/P&gt;</description>
    <pubDate>Sat, 28 May 2016 22:49:11 GMT</pubDate>
    <dc:creator>sshimpi</dc:creator>
    <dc:date>2016-05-28T22:49:11Z</dc:date>
    <item>
      <title>ERROR util.ProcfsBasedProcessTree: java.io.IOException:  in MapReduce program</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106499#M29989</link>
      <description>&lt;P&gt;I am trying to run mapreduce program and getting following errors&lt;/P&gt;&lt;PRE&gt;ERROR util.ProcfsBasedProcessTree: java.io.IOException: Cannot run program "getconf": error=2, No such file or directory
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
   at org.apache.hadoop.util.Shell.runCommand(Shell.java:200)
   at org.apache.hadoop.util.Shell.run(Shell.java:182)
   at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:375)
   at org.apache.hadoop.util.ProcfsBasedProcessTree.&amp;lt;clinit&amp;gt;(ProcfsBasedProcessTree.java:61)
   at org.apache.hadoop.util.LinuxResourceCalculatorPlugin.&amp;lt;init&amp;gt;(LinuxResourceCalculatorPlugin.java:106)
   at org.apache.hadoop.util.ResourceCalculatorPlugin.getResourceCalculatorPlugin(ResourceCalculatorPlugin.java:149)
   at org.apache.hadoop.mapred.Task.initialize(Task.java:532)
   at org.apache.hadoop.mapred.MapTask.run(MapTask.java:347)
   at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:223)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: error=2, No such file or directory
   at java.lang.UNIXProcess.forkAndExec(Native Method)
   at java.lang.UNIXProcess.&amp;lt;init&amp;gt;(UNIXProcess.java:186)
   at java.lang.ProcessImpl.start(ProcessImpl.java:130)
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
   ... 14 more
16/05/28 19:21:50 ERROR util.ProcfsBasedProcessTree: java.io.IOException: Cannot run program "getconf": error=2, No such file or directory
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
   at org.apache.hadoop.util.Shell.runCommand(Shell.java:200)
   at org.apache.hadoop.util.Shell.run(Shell.java:182)
   at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:375)
   at org.apache.hadoop.util.ProcfsBasedProcessTree.&amp;lt;clinit&amp;gt;(ProcfsBasedProcessTree.java:75)
   at org.apache.hadoop.util.LinuxResourceCalculatorPlugin.&amp;lt;init&amp;gt;(LinuxResourceCalculatorPlugin.java:106)
   at org.apache.hadoop.util.ResourceCalculatorPlugin.getResourceCalculatorPlugin(ResourceCalculatorPlugin.java:149)
   at org.apache.hadoop.mapred.Task.initialize(Task.java:532)
   at org.apache.hadoop.mapred.MapTask.run(MapTask.java:347)
   at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:223)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: error=2, No such file or directory
   at java.lang.UNIXProcess.forkAndExec(Native Method)
   at java.lang.UNIXProcess.&amp;lt;init&amp;gt;(UNIXProcess.java:186)
   at java.lang.ProcessImpl.start(ProcessImpl.java:130)
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
   ... 14 more
16/05/28 19:21:50 INFO mapred.Task:  Using ResourceCalculatorPlugin : org.apache.hadoop.util.LinuxResourceCalculatorPlugin@4036afc5
16/05/28 19:21:50 INFO mapred.MapTask: Processing split: file:/home/hadoop/Documents/sampledata:0+344
16/05/28 19:21:50 INFO mapred.MapTask: numReduceTasks: 1
16/05/28 19:21:50 INFO mapred.MapTask: io.sort.mb = 100
16/05/28 19:21:50 INFO mapred.MapTask: data buffer = 79691776/99614720
16/05/28 19:21:50 INFO mapred.MapTask: record buffer = 262144/327680
16/05/28 19:21:50 INFO mapred.LocalJobRunner: Map task executor complete.
16/05/28 19:21:50 WARN mapred.LocalJobRunner: job_local884096935_0001
java.lang.Exception: java.lang.NumberFormatException: null
   at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:354)
Caused by: java.lang.NumberFormatException: null
   at java.lang.Integer.parseInt(Integer.java:454)
   at java.lang.Integer.parseInt(Integer.java:527)
   at hadoop.ProcessUnits$E_EMapper.map(ProcessUnits.java:46)
   at hadoop.ProcessUnits$E_EMapper.map(ProcessUnits.java:1)
   at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50)
   at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:430)
   at org.apache.hadoop.mapred.MapTask.run(MapTask.java:366)
   at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:223)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
   at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)
Exception in thread "Thread-1" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
   at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:437)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpMethod
   at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
   ... 1 more
16/05/28 19:21:51 INFO mapred.JobClient:  map 0% reduce 0%
16/05/28 19:21:51 INFO mapred.JobClient: Job complete: job_local884096935_0001
16/05/28 19:21:51 INFO mapred.JobClient: Counters: 0
16/05/28 19:21:51 INFO mapred.JobClient: Job Failed: NA
Exception in thread "main" java.io.IOException: Job failed!
   at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1357)
   at hadoop.ProcessUnits.main(ProcessUnits.java:95)&lt;/PRE&gt;&lt;P&gt;Any idea? Thanks!!&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 20:52:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106499#M29989</guid>
      <dc:creator>atul_net</dc:creator>
      <dc:date>2016-05-28T20:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR util.ProcfsBasedProcessTree: java.io.IOException:  in MapReduce program</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106500#M29990</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10632/atulnet.html" nodeid="10632"&gt;@atul kumar&lt;/A&gt;&lt;P&gt;Are you running Mapreduce in local mode?&lt;/P&gt;&lt;P&gt;Seems like either you don't have commons-httpclient-&amp;lt;version&amp;gt;.jar file in class path or probably multiple versions of same jar conflicting. Please cross check.&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 21:03:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106500#M29990</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-28T21:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR util.ProcfsBasedProcessTree: java.io.IOException:  in MapReduce program</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106501#M29991</link>
      <description>&lt;P&gt;commons-httpclient is already added with only one version. Can you guide me how to run Mapreduce in HDFS mode? I am using Java in eclipse.&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 21:57:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106501#M29991</guid>
      <dc:creator>atul_net</dc:creator>
      <dc:date>2016-05-28T21:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR util.ProcfsBasedProcessTree: java.io.IOException:  in MapReduce program</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106502#M29992</link>
      <description>&lt;P&gt;Thanks! &lt;/P&gt;&lt;P&gt;How can I know that if it is running in local mode or HDFS mode?&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 22:31:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106502#M29992</guid>
      <dc:creator>atul_net</dc:creator>
      <dc:date>2016-05-28T22:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR util.ProcfsBasedProcessTree: java.io.IOException:  in MapReduce program</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106503#M29993</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10632/atulnet.html" nodeid="10632"&gt;@atul kumar&lt;/A&gt;&lt;P&gt; If you run the job it will give you job_id. If the job_id is something like job_&amp;lt;12312324233242&amp;gt; then assume that oyur job is running in HDFS mode. If the job_id is job_local** then its local mode.&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 22:49:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106503#M29993</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-05-28T22:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR util.ProcfsBasedProcessTree: java.io.IOException:  in MapReduce program</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106504#M29994</link>
      <description>&lt;P&gt;How are you running this map reduce job? can you share the command or the scenario.?&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2016 22:49:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106504#M29994</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-28T22:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR util.ProcfsBasedProcessTree: java.io.IOException:  in MapReduce program</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106505#M29995</link>
      <description>&lt;P&gt;Yes it is in local mode. My job Id is: &lt;STRONG&gt;job_local295133331_0001.&lt;/STRONG&gt; What should I do to resolve this issue?&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2016 02:34:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106505#M29995</guid>
      <dc:creator>atul_net</dc:creator>
      <dc:date>2016-05-29T02:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR util.ProcfsBasedProcessTree: java.io.IOException:  in MapReduce program</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106506#M29996</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10632/atulnet.html" nodeid="10632"&gt;@atul kumar&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Looks like jar wasn't  imported into the project while creating, can you please follow below doc and see if that resolve your issue?&lt;/P&gt;&lt;P&gt;&lt;A href="https://acadgild.com/blog/running-mapreduce-in-local-mode-2/" target="_blank"&gt;https://acadgild.com/blog/running-mapreduce-in-local-mode-2/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2016 02:53:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106506#M29996</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-29T02:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR util.ProcfsBasedProcessTree: java.io.IOException:  in MapReduce program</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106507#M29997</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528"&gt;Thanks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528"&gt;@Jitendra Yadav&lt;/A&gt; for addressing this issue. I created a new project and imported all jars from Hadoop/common/lib directory. Earlier I have just set the path to hadoop directory jars which was not working. This issue seems resolved for now. &lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2016 04:21:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ERROR-util-ProcfsBasedProcessTree-java-io-IOException-in/m-p/106507#M29997</guid>
      <dc:creator>atul_net</dc:creator>
      <dc:date>2016-05-29T04:21:45Z</dc:date>
    </item>
  </channel>
</rss>

