<?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 Yarn jar mapreduce-examples.jar pi 5 10 fails with socket timeout exception in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Yarn-jar-mapreduce-examples-jar-pi-5-10-fails-with-socket/m-p/127895#M90599</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am running below command from the map reduce examples for PI, it is failing and I can see socket timeout exception in the logs.&lt;/P&gt;&lt;P&gt;I am not able to find a solution anywhere till now, would be glad if someone can help.&lt;/P&gt;&lt;P&gt;Command: yarn jar hadoop-mapreduce-examples.jar pi 5 10&lt;/P&gt;&lt;P&gt;(From the directory: /usr/hdp/2.3.0.0-2557/hadoop-mapreduce)&lt;/P&gt;&lt;P&gt;Below is the log trace:&lt;/P&gt;&lt;PRE&gt;2016-04-20 06:12:48,333 WARN [RMCommunicator Allocator] org.apache.hadoop.ipc.Client: Exception encountered while connecting to the server : java.net.SocketTimeoutException: 60000 millis timeout while waiting for channel to be ready for read. ch : java.nio.channels.SocketChannel[connected local=/172.17.0.2:53751 remote=node1/172.17.0.2:8030]
2016-04-20 06:12:51,884 ERROR [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator: ERROR IN CONTACTING RM. 
java.io.IOException: Failed on local exception: java.io.IOException: java.net.SocketTimeoutException: 60000 millis timeout while waiting for channel to be ready for read. ch : java.nio.channels.SocketChannel[connected local=/172.17.0.2:53751 remote=node1/172.17.0.2:8030]; Host Details : local host is: "node1/172.17.0.2"; destination host is: "node1":8030; 
	at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:773&lt;/PRE&gt;&lt;P&gt;I can see the property in advances yarn site -- yarn.resourcemanager.scheduler.address  node1:8030&lt;/P&gt;&lt;P&gt;Hosts file entry:&lt;/P&gt;&lt;P&gt;[root@node1 ~]# cat /etc/hosts
172.17.0.2   node1&lt;/P&gt;&lt;P&gt;127.0.0.1   localhost
::1     localhost ip6-localhost ip6-loopback
fe00::0     ip6-localnet
ff00::0     ip6-mcastprefix
ff02::1     ip6-allnodes
ff02::2     ip6-allrouters
[root@node1 ~]# &lt;/P&gt;&lt;P&gt;Not sure what is the problem. I can ping localhost / node1/127.0.0.1 from node1 terminal.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinay MP&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2016 19:52:40 GMT</pubDate>
    <dc:creator>Vinay_Prakash</dc:creator>
    <dc:date>2016-05-03T19:52:40Z</dc:date>
    <item>
      <title>Yarn jar mapreduce-examples.jar pi 5 10 fails with socket timeout exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-jar-mapreduce-examples-jar-pi-5-10-fails-with-socket/m-p/127895#M90599</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am running below command from the map reduce examples for PI, it is failing and I can see socket timeout exception in the logs.&lt;/P&gt;&lt;P&gt;I am not able to find a solution anywhere till now, would be glad if someone can help.&lt;/P&gt;&lt;P&gt;Command: yarn jar hadoop-mapreduce-examples.jar pi 5 10&lt;/P&gt;&lt;P&gt;(From the directory: /usr/hdp/2.3.0.0-2557/hadoop-mapreduce)&lt;/P&gt;&lt;P&gt;Below is the log trace:&lt;/P&gt;&lt;PRE&gt;2016-04-20 06:12:48,333 WARN [RMCommunicator Allocator] org.apache.hadoop.ipc.Client: Exception encountered while connecting to the server : java.net.SocketTimeoutException: 60000 millis timeout while waiting for channel to be ready for read. ch : java.nio.channels.SocketChannel[connected local=/172.17.0.2:53751 remote=node1/172.17.0.2:8030]
2016-04-20 06:12:51,884 ERROR [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator: ERROR IN CONTACTING RM. 
java.io.IOException: Failed on local exception: java.io.IOException: java.net.SocketTimeoutException: 60000 millis timeout while waiting for channel to be ready for read. ch : java.nio.channels.SocketChannel[connected local=/172.17.0.2:53751 remote=node1/172.17.0.2:8030]; Host Details : local host is: "node1/172.17.0.2"; destination host is: "node1":8030; 
	at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:773&lt;/PRE&gt;&lt;P&gt;I can see the property in advances yarn site -- yarn.resourcemanager.scheduler.address  node1:8030&lt;/P&gt;&lt;P&gt;Hosts file entry:&lt;/P&gt;&lt;P&gt;[root@node1 ~]# cat /etc/hosts
172.17.0.2   node1&lt;/P&gt;&lt;P&gt;127.0.0.1   localhost
::1     localhost ip6-localhost ip6-loopback
fe00::0     ip6-localnet
ff00::0     ip6-mcastprefix
ff02::1     ip6-allnodes
ff02::2     ip6-allrouters
[root@node1 ~]# &lt;/P&gt;&lt;P&gt;Not sure what is the problem. I can ping localhost / node1/127.0.0.1 from node1 terminal.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinay MP&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 19:52:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-jar-mapreduce-examples-jar-pi-5-10-fails-with-socket/m-p/127895#M90599</guid>
      <dc:creator>Vinay_Prakash</dc:creator>
      <dc:date>2016-05-03T19:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn jar mapreduce-examples.jar pi 5 10 fails with socket timeout exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-jar-mapreduce-examples-jar-pi-5-10-fails-with-socket/m-p/127896#M90600</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10202/vinayprakash.html" nodeid="10202"&gt;@Vinay MP&lt;/A&gt; , It seems  you are not able to contact the ResourceManager.  What port is RM listening on?  You should be able to do a ps -ef | grep resourcemanager and then do a netstat -tulpn | grep &amp;lt;PID&amp;gt; to find out.  &lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 20:01:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-jar-mapreduce-examples-jar-pi-5-10-fails-with-socket/m-p/127896#M90600</guid>
      <dc:creator>iroberts</dc:creator>
      <dc:date>2016-05-03T20:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn jar mapreduce-examples.jar pi 5 10 fails with socket timeout exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-jar-mapreduce-examples-jar-pi-5-10-fails-with-socket/m-p/127897#M90601</link>
      <description>&lt;P&gt;In your /etc/hosts, move the line "172.17.0.2 node1" from the top to line number 2:&lt;/P&gt;&lt;PRE&gt;127.0.0.1	localhost
172.17.0.2	node1&lt;/PRE&gt;&lt;P&gt;Then, run "hostname", it should be "node1", if not run "hostname node1". Also check your hostname in /etc/sysconfig/network file. And finally, as Ian suggested check whether RM is up and running and listening on ports 8030 and 8050 (and a few other ones).&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 20:46:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-jar-mapreduce-examples-jar-pi-5-10-fails-with-socket/m-p/127897#M90601</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-05-03T20:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn jar mapreduce-examples.jar pi 5 10 fails with socket timeout exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-jar-mapreduce-examples-jar-pi-5-10-fails-with-socket/m-p/127898#M90602</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/349/iroberts.html" nodeid="349"&gt;@Ian Roberts&lt;/A&gt; , &lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestions. I will try them and update.&lt;/P&gt;&lt;P&gt;As per now I checked netstat and I was able to see resourcemanager was up and listening on 8030, 8050 and few more ports.&lt;/P&gt;&lt;P&gt;All of a sudden I am not able to open terminal session to Node1 (one of the host in my VM). I will fix that and verify the mapreduce example.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinay MP&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 14:26:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-jar-mapreduce-examples-jar-pi-5-10-fails-with-socket/m-p/127898#M90602</guid>
      <dc:creator>Vinay_Prakash</dc:creator>
      <dc:date>2016-05-04T14:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Yarn jar mapreduce-examples.jar pi 5 10 fails with socket timeout exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Yarn-jar-mapreduce-examples-jar-pi-5-10-fails-with-socket/m-p/127899#M90603</link>
      <description>&lt;P&gt;Finally I managed to get a new 16GB machine where I can run the VM with good performance.&lt;/P&gt;&lt;P&gt;As an initial practice I was using a 8GB machine. &lt;/P&gt;&lt;P&gt;I used the same VM, the command went through fine in 16GB machine and it failed in 8GB machine.&lt;/P&gt;&lt;P&gt;Not exactly sure whether memory wasn't sufficient (i didn't see any OOM / related exceptions in 8GB machine) to run these tests in 8GB machine but I am glad the problem is solved.&lt;/P&gt;&lt;P&gt;@Ian Roberts, &lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt; Thanks for taking time to reply.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinay MP&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 13:49:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Yarn-jar-mapreduce-examples-jar-pi-5-10-fails-with-socket/m-p/127899#M90603</guid>
      <dc:creator>Vinay_Prakash</dc:creator>
      <dc:date>2016-06-03T13:49:18Z</dc:date>
    </item>
  </channel>
</rss>

