You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by "leiwangouc@gmail.com" <le...@gmail.com> on 2014/02/27 04:26:50 UTC

hadoop Exception: java.io.IOException: Couldn't set up IO streams


Hi all, 

I write a pig script and run it on hadoop cluster.  Sometimes there will be this exception and sometimes not.

java.io.IOException: Failed on local exception: java.io.IOException: Couldn't set up IO streams; Host Details : local host is: "l-hadoop13.prod.cn2.corp.agrant.cn/10.2.1.45"; destination host is: "l-hadoop2.prod.cn2.corp.agrant.cn":8020; 
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:763)
        at org.apache.hadoop.ipc.Client.call(Client.java:1235)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:202)
        at com.sun.proxy.$Proxy9.delete(Unknown Source)
        at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.delete(ClientNamenodeProtocolTranslatorPB.java:408)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:164)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:83)
        at com.sun.proxy.$Proxy10.delete(Unknown Source)
        at org.apache.hadoop.hdfs.DFSClient.delete(DFSClient.java:1487)
        at org.apache.hadoop.hdfs.DistributedFileSystem.delete(DistributedFileSystem.java:354)
        at org.apache.pig.backend.hadoop.datastorage.HPath.delete(HPath.java:118)
        at org.apache.pig.impl.io.FileLocalizer.deleteTempFiles(FileLocalizer.java:491)
        at org.apache.pig.Main.run(Main.java:642)
        at org.apache.pig.Main.main(Main.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
Caused by: java.io.IOException: Couldn't set up IO streams
        at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:663)
        at org.apache.hadoop.ipc.Client$Connection.access$2100(Client.java:243)
        at org.apache.hadoop.ipc.Client.getConnection(Client.java:1284)
        at org.apache.hadoop.ipc.Client.call(Client.java:1202)
        ... 21 more
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(Thread.java:640)
        at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:656)
 
       ... 24 mor
 Hadoop verion: Hadoop 2.0.0-cdh4.3.1.

Any insight on this? How could i fix it? Why this error occurs occasionally?

Thanks,
Lei



leiwangouc@gmail.com

Re: Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by shashwat shriparv <dw...@gmail.com>.
Great ...


* Warm Regards_**∞_*
* Shashwat Shriparv*
 [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image:
https://twitter.com/shriparv] <https://twitter.com/shriparv>[image:
https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image:
http://google.com/+ShashwatShriparv]
<http://google.com/+ShashwatShriparv>[image:
http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image:
http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <sh...@yahoo.com>



On Fri, Feb 28, 2014 at 7:33 AM, leiwangouc@gmail.com
<le...@gmail.com>wrote:

>
> Thanks, it works after increase the ulimit number.
> ------------------------------
>   leiwangouc@gmail.com
>
>  *From:* shashwat shriparv <dw...@gmail.com>
> *Date:* 2014-02-27 12:43
> *To:* user <us...@hadoop.apache.org>
> *CC:* leiwangouc <le...@gmail.com>
> *Subject:* Re: hadoop Exception: java.io.IOException: Couldn't set up IO
> streams
>   ​Try to increase ulimit for the machine and the user under which
> process runs.
> ​
>
> On Thu, Feb 27, 2014 at 9:35 AM, sudhakara st <su...@gmail.com>wrote:
>
>> Caused by: java.lang.OutOfMemoryError: unable to create new native thread"
>
>
> ​​
>
>
>
> *Warm Regards_**∞_*
> *Shashwat Shriparv*
>  [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image:
> https://twitter.com/shriparv] <https://twitter.com/shriparv>[image:
> https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image:
> http://google.com/+ShashwatShriparv] <http://google.com/+ShashwatShriparv>[image:
> http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image:
> http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <sh...@yahoo.com>
>
>

Re: Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by shashwat shriparv <dw...@gmail.com>.
Great ...


* Warm Regards_**∞_*
* Shashwat Shriparv*
 [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image:
https://twitter.com/shriparv] <https://twitter.com/shriparv>[image:
https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image:
http://google.com/+ShashwatShriparv]
<http://google.com/+ShashwatShriparv>[image:
http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image:
http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <sh...@yahoo.com>



On Fri, Feb 28, 2014 at 7:33 AM, leiwangouc@gmail.com
<le...@gmail.com>wrote:

>
> Thanks, it works after increase the ulimit number.
> ------------------------------
>   leiwangouc@gmail.com
>
>  *From:* shashwat shriparv <dw...@gmail.com>
> *Date:* 2014-02-27 12:43
> *To:* user <us...@hadoop.apache.org>
> *CC:* leiwangouc <le...@gmail.com>
> *Subject:* Re: hadoop Exception: java.io.IOException: Couldn't set up IO
> streams
>   ​Try to increase ulimit for the machine and the user under which
> process runs.
> ​
>
> On Thu, Feb 27, 2014 at 9:35 AM, sudhakara st <su...@gmail.com>wrote:
>
>> Caused by: java.lang.OutOfMemoryError: unable to create new native thread"
>
>
> ​​
>
>
>
> *Warm Regards_**∞_*
> *Shashwat Shriparv*
>  [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image:
> https://twitter.com/shriparv] <https://twitter.com/shriparv>[image:
> https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image:
> http://google.com/+ShashwatShriparv] <http://google.com/+ShashwatShriparv>[image:
> http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image:
> http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <sh...@yahoo.com>
>
>

Re: Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by shashwat shriparv <dw...@gmail.com>.
Great ...


* Warm Regards_**∞_*
* Shashwat Shriparv*
 [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image:
https://twitter.com/shriparv] <https://twitter.com/shriparv>[image:
https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image:
http://google.com/+ShashwatShriparv]
<http://google.com/+ShashwatShriparv>[image:
http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image:
http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <sh...@yahoo.com>



On Fri, Feb 28, 2014 at 7:33 AM, leiwangouc@gmail.com
<le...@gmail.com>wrote:

>
> Thanks, it works after increase the ulimit number.
> ------------------------------
>   leiwangouc@gmail.com
>
>  *From:* shashwat shriparv <dw...@gmail.com>
> *Date:* 2014-02-27 12:43
> *To:* user <us...@hadoop.apache.org>
> *CC:* leiwangouc <le...@gmail.com>
> *Subject:* Re: hadoop Exception: java.io.IOException: Couldn't set up IO
> streams
>   ​Try to increase ulimit for the machine and the user under which
> process runs.
> ​
>
> On Thu, Feb 27, 2014 at 9:35 AM, sudhakara st <su...@gmail.com>wrote:
>
>> Caused by: java.lang.OutOfMemoryError: unable to create new native thread"
>
>
> ​​
>
>
>
> *Warm Regards_**∞_*
> *Shashwat Shriparv*
>  [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image:
> https://twitter.com/shriparv] <https://twitter.com/shriparv>[image:
> https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image:
> http://google.com/+ShashwatShriparv] <http://google.com/+ShashwatShriparv>[image:
> http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image:
> http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <sh...@yahoo.com>
>
>

Re: Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by shashwat shriparv <dw...@gmail.com>.
Great ...


* Warm Regards_**∞_*
* Shashwat Shriparv*
 [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image:
https://twitter.com/shriparv] <https://twitter.com/shriparv>[image:
https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image:
http://google.com/+ShashwatShriparv]
<http://google.com/+ShashwatShriparv>[image:
http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image:
http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <sh...@yahoo.com>



On Fri, Feb 28, 2014 at 7:33 AM, leiwangouc@gmail.com
<le...@gmail.com>wrote:

>
> Thanks, it works after increase the ulimit number.
> ------------------------------
>   leiwangouc@gmail.com
>
>  *From:* shashwat shriparv <dw...@gmail.com>
> *Date:* 2014-02-27 12:43
> *To:* user <us...@hadoop.apache.org>
> *CC:* leiwangouc <le...@gmail.com>
> *Subject:* Re: hadoop Exception: java.io.IOException: Couldn't set up IO
> streams
>   ​Try to increase ulimit for the machine and the user under which
> process runs.
> ​
>
> On Thu, Feb 27, 2014 at 9:35 AM, sudhakara st <su...@gmail.com>wrote:
>
>> Caused by: java.lang.OutOfMemoryError: unable to create new native thread"
>
>
> ​​
>
>
>
> *Warm Regards_**∞_*
> *Shashwat Shriparv*
>  [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image:
> https://twitter.com/shriparv] <https://twitter.com/shriparv>[image:
> https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image:
> http://google.com/+ShashwatShriparv] <http://google.com/+ShashwatShriparv>[image:
> http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image:
> http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <sh...@yahoo.com>
>
>

Re: Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by "leiwangouc@gmail.com" <le...@gmail.com>.
Thanks, it works after increase the ulimit number. 


leiwangouc@gmail.com

From: shashwat shriparv
Date: 2014-02-27 12:43
To: user
CC: leiwangouc
Subject: Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams
​Try to increase ulimit for the machine and the user under which process runs.

​


On Thu, Feb 27, 2014 at 9:35 AM, sudhakara st <su...@gmail.com> wrote:

Caused by: java.lang.OutOfMemoryError: unable to create new native thread"


​​




Warm Regards_∞_
Shashwat Shriparv

Re: Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by "leiwangouc@gmail.com" <le...@gmail.com>.
Thanks, it works after increase the ulimit number. 


leiwangouc@gmail.com

From: shashwat shriparv
Date: 2014-02-27 12:43
To: user
CC: leiwangouc
Subject: Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams
​Try to increase ulimit for the machine and the user under which process runs.

​


On Thu, Feb 27, 2014 at 9:35 AM, sudhakara st <su...@gmail.com> wrote:

Caused by: java.lang.OutOfMemoryError: unable to create new native thread"


​​




Warm Regards_∞_
Shashwat Shriparv

Re: Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by "leiwangouc@gmail.com" <le...@gmail.com>.
Thanks, it works after increase the ulimit number. 


leiwangouc@gmail.com

From: shashwat shriparv
Date: 2014-02-27 12:43
To: user
CC: leiwangouc
Subject: Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams
​Try to increase ulimit for the machine and the user under which process runs.

​


On Thu, Feb 27, 2014 at 9:35 AM, sudhakara st <su...@gmail.com> wrote:

Caused by: java.lang.OutOfMemoryError: unable to create new native thread"


​​




Warm Regards_∞_
Shashwat Shriparv

Re: Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by "leiwangouc@gmail.com" <le...@gmail.com>.
Thanks, it works after increase the ulimit number. 


leiwangouc@gmail.com

From: shashwat shriparv
Date: 2014-02-27 12:43
To: user
CC: leiwangouc
Subject: Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams
​Try to increase ulimit for the machine and the user under which process runs.

​


On Thu, Feb 27, 2014 at 9:35 AM, sudhakara st <su...@gmail.com> wrote:

Caused by: java.lang.OutOfMemoryError: unable to create new native thread"


​​




Warm Regards_∞_
Shashwat Shriparv

Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by shashwat shriparv <dw...@gmail.com>.
​Try to increase ulimit for the machine and the user under which process
runs.
​

On Thu, Feb 27, 2014 at 9:35 AM, sudhakara st <su...@gmail.com>wrote:

> Caused by: java.lang.OutOfMemoryError: unable to create new native thread"


​​



* Warm Regards_**∞_*
* Shashwat Shriparv*
 [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image:
https://twitter.com/shriparv] <https://twitter.com/shriparv>[image:
https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image:
http://google.com/+ShashwatShriparv]
<http://google.com/+ShashwatShriparv>[image:
http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image:
http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <sh...@yahoo.com>

Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by shashwat shriparv <dw...@gmail.com>.
​Try to increase ulimit for the machine and the user under which process
runs.
​

On Thu, Feb 27, 2014 at 9:35 AM, sudhakara st <su...@gmail.com>wrote:

> Caused by: java.lang.OutOfMemoryError: unable to create new native thread"


​​



* Warm Regards_**∞_*
* Shashwat Shriparv*
 [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image:
https://twitter.com/shriparv] <https://twitter.com/shriparv>[image:
https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image:
http://google.com/+ShashwatShriparv]
<http://google.com/+ShashwatShriparv>[image:
http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image:
http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <sh...@yahoo.com>

Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by shashwat shriparv <dw...@gmail.com>.
​Try to increase ulimit for the machine and the user under which process
runs.
​

On Thu, Feb 27, 2014 at 9:35 AM, sudhakara st <su...@gmail.com>wrote:

> Caused by: java.lang.OutOfMemoryError: unable to create new native thread"


​​



* Warm Regards_**∞_*
* Shashwat Shriparv*
 [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image:
https://twitter.com/shriparv] <https://twitter.com/shriparv>[image:
https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image:
http://google.com/+ShashwatShriparv]
<http://google.com/+ShashwatShriparv>[image:
http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image:
http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <sh...@yahoo.com>

Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by shashwat shriparv <dw...@gmail.com>.
​Try to increase ulimit for the machine and the user under which process
runs.
​

On Thu, Feb 27, 2014 at 9:35 AM, sudhakara st <su...@gmail.com>wrote:

> Caused by: java.lang.OutOfMemoryError: unable to create new native thread"


​​



* Warm Regards_**∞_*
* Shashwat Shriparv*
 [image: http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9]<http://www.linkedin.com/pub/shashwat-shriparv/19/214/2a9>[image:
https://twitter.com/shriparv] <https://twitter.com/shriparv>[image:
https://www.facebook.com/shriparv] <https://www.facebook.com/shriparv>[image:
http://google.com/+ShashwatShriparv]
<http://google.com/+ShashwatShriparv>[image:
http://www.youtube.com/user/sShriparv/videos]<http://www.youtube.com/user/sShriparv/videos>[image:
http://profile.yahoo.com/SWXSTW3DVSDTF2HHSRM47AV6DI/] <sh...@yahoo.com>

Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by sudhakara st <su...@gmail.com>.
*"Caused by: java.lang.OutOfMemoryError: unable to create new native
thread"* this lines shows out memory error in the destination host is: "
l-hadoop2.prod.cn2.corp.agrant.cn",
The destination host throw error it unable process RPC request. Check with
memory allocations for java processes


On Thu, Feb 27, 2014 at 8:56 AM, leiwangouc@gmail.com
<le...@gmail.com>wrote:

>
>
> Hi all,
>
> I write a pig script and run it on hadoop cluster.  Sometimes there will
> be this exception and sometimes not.
>
>  java.io.IOException: Failed on local exception: java.io.IOException:
> Couldn't set up IO streams; Host Details : local host is: "
> l-hadoop13.prod.cn2.corp.agrant.cn/10.2.1.45"; destination host is: "
> l-hadoop2.prod.cn2.corp.agrant.cn":8020;
>         at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:763)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1235)
>         at
> org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:202)
>         at com.sun.proxy.$Proxy9.delete(Unknown Source)
>         at
> org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.delete(ClientNamenodeProtocolTranslatorPB.java:408)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:164)
>         at
> org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:83)
>         at com.sun.proxy.$Proxy10.delete(Unknown Source)
>         at org.apache.hadoop.hdfs.DFSClient.delete(DFSClient.java:1487)
>         at
> org.apache.hadoop.hdfs.DistributedFileSystem.delete(DistributedFileSystem.java:354)
>         at
> org.apache.pig.backend.hadoop.datastorage.HPath.delete(HPath.java:118)
>         at
> org.apache.pig.impl.io.FileLocalizer.deleteTempFiles(FileLocalizer.java:491)
>         at org.apache.pig.Main.run(Main.java:642)
>         at org.apache.pig.Main.main(Main.java:157)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
> Caused by: java.io.IOException: Couldn't set up IO streams
>         at
> org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:663)
>         at
> org.apache.hadoop.ipc.Client$Connection.access$2100(Client.java:243)
>         at org.apache.hadoop.ipc.Client.getConnection(Client.java:1284)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1202)
>         ... 21 more
> Caused by: java.lang.OutOfMemoryError: unable to create new native thread
>         at java.lang.Thread.start0(Native Method)
>         at java.lang.Thread.start(Thread.java:640)
>         at
> org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:656)
>
>        ... 24 mor
>  Hadoop verion: Hadoop 2.0.0-cdh4.3.1.
>
> Any insight on this? How could i fix it? Why this error occurs
> occasionally?
>
> Thanks,
> Lei
> ------------------------------
>  leiwangouc@gmail.com
>



-- 

Regards,
...sudhakara

Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by sudhakara st <su...@gmail.com>.
*"Caused by: java.lang.OutOfMemoryError: unable to create new native
thread"* this lines shows out memory error in the destination host is: "
l-hadoop2.prod.cn2.corp.agrant.cn",
The destination host throw error it unable process RPC request. Check with
memory allocations for java processes


On Thu, Feb 27, 2014 at 8:56 AM, leiwangouc@gmail.com
<le...@gmail.com>wrote:

>
>
> Hi all,
>
> I write a pig script and run it on hadoop cluster.  Sometimes there will
> be this exception and sometimes not.
>
>  java.io.IOException: Failed on local exception: java.io.IOException:
> Couldn't set up IO streams; Host Details : local host is: "
> l-hadoop13.prod.cn2.corp.agrant.cn/10.2.1.45"; destination host is: "
> l-hadoop2.prod.cn2.corp.agrant.cn":8020;
>         at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:763)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1235)
>         at
> org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:202)
>         at com.sun.proxy.$Proxy9.delete(Unknown Source)
>         at
> org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.delete(ClientNamenodeProtocolTranslatorPB.java:408)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:164)
>         at
> org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:83)
>         at com.sun.proxy.$Proxy10.delete(Unknown Source)
>         at org.apache.hadoop.hdfs.DFSClient.delete(DFSClient.java:1487)
>         at
> org.apache.hadoop.hdfs.DistributedFileSystem.delete(DistributedFileSystem.java:354)
>         at
> org.apache.pig.backend.hadoop.datastorage.HPath.delete(HPath.java:118)
>         at
> org.apache.pig.impl.io.FileLocalizer.deleteTempFiles(FileLocalizer.java:491)
>         at org.apache.pig.Main.run(Main.java:642)
>         at org.apache.pig.Main.main(Main.java:157)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
> Caused by: java.io.IOException: Couldn't set up IO streams
>         at
> org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:663)
>         at
> org.apache.hadoop.ipc.Client$Connection.access$2100(Client.java:243)
>         at org.apache.hadoop.ipc.Client.getConnection(Client.java:1284)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1202)
>         ... 21 more
> Caused by: java.lang.OutOfMemoryError: unable to create new native thread
>         at java.lang.Thread.start0(Native Method)
>         at java.lang.Thread.start(Thread.java:640)
>         at
> org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:656)
>
>        ... 24 mor
>  Hadoop verion: Hadoop 2.0.0-cdh4.3.1.
>
> Any insight on this? How could i fix it? Why this error occurs
> occasionally?
>
> Thanks,
> Lei
> ------------------------------
>  leiwangouc@gmail.com
>



-- 

Regards,
...sudhakara

Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by sudhakara st <su...@gmail.com>.
*"Caused by: java.lang.OutOfMemoryError: unable to create new native
thread"* this lines shows out memory error in the destination host is: "
l-hadoop2.prod.cn2.corp.agrant.cn",
The destination host throw error it unable process RPC request. Check with
memory allocations for java processes


On Thu, Feb 27, 2014 at 8:56 AM, leiwangouc@gmail.com
<le...@gmail.com>wrote:

>
>
> Hi all,
>
> I write a pig script and run it on hadoop cluster.  Sometimes there will
> be this exception and sometimes not.
>
>  java.io.IOException: Failed on local exception: java.io.IOException:
> Couldn't set up IO streams; Host Details : local host is: "
> l-hadoop13.prod.cn2.corp.agrant.cn/10.2.1.45"; destination host is: "
> l-hadoop2.prod.cn2.corp.agrant.cn":8020;
>         at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:763)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1235)
>         at
> org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:202)
>         at com.sun.proxy.$Proxy9.delete(Unknown Source)
>         at
> org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.delete(ClientNamenodeProtocolTranslatorPB.java:408)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:164)
>         at
> org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:83)
>         at com.sun.proxy.$Proxy10.delete(Unknown Source)
>         at org.apache.hadoop.hdfs.DFSClient.delete(DFSClient.java:1487)
>         at
> org.apache.hadoop.hdfs.DistributedFileSystem.delete(DistributedFileSystem.java:354)
>         at
> org.apache.pig.backend.hadoop.datastorage.HPath.delete(HPath.java:118)
>         at
> org.apache.pig.impl.io.FileLocalizer.deleteTempFiles(FileLocalizer.java:491)
>         at org.apache.pig.Main.run(Main.java:642)
>         at org.apache.pig.Main.main(Main.java:157)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
> Caused by: java.io.IOException: Couldn't set up IO streams
>         at
> org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:663)
>         at
> org.apache.hadoop.ipc.Client$Connection.access$2100(Client.java:243)
>         at org.apache.hadoop.ipc.Client.getConnection(Client.java:1284)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1202)
>         ... 21 more
> Caused by: java.lang.OutOfMemoryError: unable to create new native thread
>         at java.lang.Thread.start0(Native Method)
>         at java.lang.Thread.start(Thread.java:640)
>         at
> org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:656)
>
>        ... 24 mor
>  Hadoop verion: Hadoop 2.0.0-cdh4.3.1.
>
> Any insight on this? How could i fix it? Why this error occurs
> occasionally?
>
> Thanks,
> Lei
> ------------------------------
>  leiwangouc@gmail.com
>



-- 

Regards,
...sudhakara

Re: hadoop Exception: java.io.IOException: Couldn't set up IO streams

Posted by sudhakara st <su...@gmail.com>.
*"Caused by: java.lang.OutOfMemoryError: unable to create new native
thread"* this lines shows out memory error in the destination host is: "
l-hadoop2.prod.cn2.corp.agrant.cn",
The destination host throw error it unable process RPC request. Check with
memory allocations for java processes


On Thu, Feb 27, 2014 at 8:56 AM, leiwangouc@gmail.com
<le...@gmail.com>wrote:

>
>
> Hi all,
>
> I write a pig script and run it on hadoop cluster.  Sometimes there will
> be this exception and sometimes not.
>
>  java.io.IOException: Failed on local exception: java.io.IOException:
> Couldn't set up IO streams; Host Details : local host is: "
> l-hadoop13.prod.cn2.corp.agrant.cn/10.2.1.45"; destination host is: "
> l-hadoop2.prod.cn2.corp.agrant.cn":8020;
>         at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:763)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1235)
>         at
> org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:202)
>         at com.sun.proxy.$Proxy9.delete(Unknown Source)
>         at
> org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.delete(ClientNamenodeProtocolTranslatorPB.java:408)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:164)
>         at
> org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:83)
>         at com.sun.proxy.$Proxy10.delete(Unknown Source)
>         at org.apache.hadoop.hdfs.DFSClient.delete(DFSClient.java:1487)
>         at
> org.apache.hadoop.hdfs.DistributedFileSystem.delete(DistributedFileSystem.java:354)
>         at
> org.apache.pig.backend.hadoop.datastorage.HPath.delete(HPath.java:118)
>         at
> org.apache.pig.impl.io.FileLocalizer.deleteTempFiles(FileLocalizer.java:491)
>         at org.apache.pig.Main.run(Main.java:642)
>         at org.apache.pig.Main.main(Main.java:157)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
> Caused by: java.io.IOException: Couldn't set up IO streams
>         at
> org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:663)
>         at
> org.apache.hadoop.ipc.Client$Connection.access$2100(Client.java:243)
>         at org.apache.hadoop.ipc.Client.getConnection(Client.java:1284)
>         at org.apache.hadoop.ipc.Client.call(Client.java:1202)
>         ... 21 more
> Caused by: java.lang.OutOfMemoryError: unable to create new native thread
>         at java.lang.Thread.start0(Native Method)
>         at java.lang.Thread.start(Thread.java:640)
>         at
> org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:656)
>
>        ... 24 mor
>  Hadoop verion: Hadoop 2.0.0-cdh4.3.1.
>
> Any insight on this? How could i fix it? Why this error occurs
> occasionally?
>
> Thanks,
> Lei
> ------------------------------
>  leiwangouc@gmail.com
>



-- 

Regards,
...sudhakara