java.io.IOException: Failed on local exception: java.io.IOException: Couldn't set up IO streams; Host Details : local host is: "cp3/222.29.134.3"; destination host is: "cp139":35791;

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via oracle.com by Unknown author

An easy way to solve OutOfMemoryError in java is to increase the maximum heap size by using JVM options -Xmx512M, this will immediately solve your OutOfMemoryError.

,
via Stack Overflow by Eugene Yokota

In Eclipse : go to Run --> Run Configurations --> then select the project under maven build --> then select the tab "JRE" --> then enter -Xmx1024m

This should increase the memory heap for all the builds/projects. The above memory size is 1 GB

Solutions on the web

via Stack Overflow by suiyuan2009
, 10 months ago
Failed on local exception: java.io.IOException: Couldn't set up IO streams; Host Details : local host is: "cp3/222.29.134.3"; destination host is: "cp139":35791;
via hadoop-yarn-issues by Tibor Kiss (JIRA), 1 year ago
Failed on local exception: java.net.SocketException: Invalid argument; Host Details : local host is: "7f514291a8de/172.17.0.2"; destination host is: "1234":0;
via apache.org by Unknown author, 9 months ago
Failed on local exception: java.io.IOException: Connection reset by peer; Host Details : local host is: "slave-02.adcd.infra.corp.gq1.yahoo.com/69.147.96.229"; destination host is: "127.0.0.1":12345;
via Stack Overflow by Manoj Verma
, 1 year ago
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=/10.0.37.145:49054 remote=platform-demo/10.0.37.145:60487]; Host Details : local host is: "platform-demo/10.0.37.145"; destination host is: "platform-demo":60487;
via grokbase.com by Unknown author, 1 year ago
Failed on local exception: java.net.SocketException: Too many open files; Host Details : local host is: "HOST-XX.XX.XX.XX/XX.XX.XX.XX"; destination host is: "HOST-XX.XX.XX.XX":8020;
via Stack Overflow by Serban Stoenescu
, 1 year ago
Failed on local exception: java.io.IOException: java.lang.IllegalArgumentException: Failed to specify server's Kerberos principal name; Host Details : local host is: "Serbans-MacBook-Pro.local/1.2.3.4"; destination host is: "10.0.3.33":8020;
java.io.IOException: Failed on local exception: java.io.IOException: Couldn't set up IO streams; Host Details : local host is: "cp3/222.29.134.3"; destination host is: "cp139":35791;
at java.util.Arrays.copyOf(Arrays.java:3236)
at java.lang.StringCoding.safeTrim(StringCoding.java:79)
at java.lang.StringCoding.access$300(StringCoding.java:50)
at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:305)
at java.lang.StringCoding.encode(StringCoding.java:344)
at java.lang.String.getBytes(String.java:918)
at com.sun.security.sasl.digest.DigestMD5Client.generateClientResponse(DigestMD5Client.java:585)
at org.apache.hadoop.security.SaslRpcClient.saslConnect(SaslRpcClient.java:413)
at org.apache.hadoop.ipc.Client$Connection.setupSaslConnection(Client.java:560)
at org.apache.hadoop.ipc.Client$Connection.access$1900(Client.java:375)
at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1698)
at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:724)
at org.apache.hadoop.ipc.Client$Connection.access$2900(Client.java:375)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:1528)
at org.apache.hadoop.ipc.Client.call(Client.java:1451)
at org.apache.hadoop.ipc.Client.call(Client.java:1412)
at com.sun.proxy.$Proxy81.startContainers(Unknown Source)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:191)
at com.sun.proxy.$Proxy82.startContainers(Unknown Source)
at org.apache.hadoop.mapreduce.v2.app.launcher.ContainerLauncherImpl$Container.launch(ContainerLauncherImpl.java:151)

Users with the same issue

22 times, 5 days ago
Once, 1 week ago
Once, 3 weeks ago
2 times, 1 month ago
Once, 2 months ago
53 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.