Eclipse connection Remote Hadoop error, caused by:java.io.IOException: The remote host forced the shutdown of an existing connection.

Source: Internet
Author: User

Eclipse connection Remote Hadoop error, caused by:java.io.IOException: The remote host forced the shutdown of an existing connection. All error messages are as follows:

Exception in thread "main" Java.io.IOException:Call to hadoopmaster/192.168.1.180:9000failed on local exception:java.io.IOException: The remote host forced the shutdown of an existing connection. At Org.apache.hadoop.ipc.Client.wrapException (Client.java:1150) at Org.apache.hadoop.ipc.Client.call (Client.java:1118) at Org.apache.hadoop.ipc.rpc$invoker.invoke (Rpc.java:229) at Com.sun.proxy. $Proxy 1.getProtocolVersion (Unknown Source) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (N Ative Method) at Sun.reflect.NativeMethodAccessorImpl.invoke (Nativemethodaccessorimpl.java:57) at Sun.reflect.DelegatingMethodAccessorImpl.invoke (Delegatingmethodaccessorimpl.java:43) at Java.lang.reflect.Method.invoke (Method.java:30S) at Org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod (Retryinvocationhandler.java:85) at Org.apache.hadoop.io.retry.RetryInvocationHandler.invoke (Retryinvocationhandler.java:62) at Com.sun.proxy. $Proxy 1.getProtocolVersion (Unknown Source) at Org.apache.hadoop.ipc.RPC.checkVersion (Rpc.jav A:422) at Org.apache.hadoop.hdfs.DFSClient.createNamenode (Dfsclient.java:183) at org.apache.hadoop.hdfs.DFSClient.<init> (dfsclient.java:281) at org.apache.hadoop.hdfs.DFSClient.<init> (dfsclient.java:245) at Org.apache.hadoop.hdfs.DistributedFileSystem.initialize (Distributedfilesystem.java:100) at Org.apache.hadoop.fs.FileSystem.createFileSystem (Filesystem.java:1446) at org.apache.hadoop.fs.filesystem.access$(filesystem.java:67) at Org.apache.hadoop.fs.filesystem$cache.get (Filesystem.java:1464) at Org.apache.hadoop.fs.FileSystem.get (Filesystem.java:263) at Com.pcitc.hadoop.CreateFile.main (Createfile.java:15) caused by:java.io.IOException: The remote host forced the shutdown of an existing connection. At sun.nio.ch.SocketDispatcher.read0 (Native Method) at Sun.nio.ch.SocketDispatcher.read (Socketdispatcher.java: 43) at Sun.nio.ch.IOUtil.readIntoNativeBuffer (Ioutil.java:223) at Sun.nio.ch.IOUtil.read (Ioutil.java:197) at Sun.nio.ch.SocketChannelImpl.read (Socketchannelimpl.java:379) at Org.apache.hadoop.net.socketinputstream$reader.performio (Socketinputstream.java:55) at Org.apache.hadoop.net.SocketIOWithTimeout.doIO (Socketiowithtimeout.java:142) at Org.apache.hadoop.net.SocketInputStream.read (Socketinputstream.java:155) at Org.apache.hadoop.net.SocketInputStream.read (Socketinputstream.java:128) at Java.io.FilterInputStream.read (Filterinputstream.java:133) at Org.apache.hadoop.ipc.client$connection$pinginputstream.read (Client.java:364) at Java.io.BufferedInputStream.fill (Bufferedinputstream.java:235) at Java.io.BufferedInputStream.read (Bufferedinputstream.java:254) at Java.io.DataInputStream.readInt (Datainputstream.java:387) at Org.apache.hadoop.ipc.client$connection.receiveresponse (Client.java:845) at Org.apache.hadoop.ipc.client$connection.run (Client.java:790)

Analysis of Causes and solutions:

This problem is caused by the inconsistency between the Hadoop version introduced on Eclipse and the version of Hadoop installed on the Linux virtual machine, and the consistency of the versions of the two environments.

Eclipse connection Remote Hadoop error, caused by:java.io.IOException: The remote host forced the shutdown of an existing connection.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.