Eclipse running Hadoop program error: Connection refused:no further information

Source: Internet
Author: User
Tags log4j

Eclipse running Hadoop program error: Connection refused:no further information

Log4j:warn No appenders could be found forLogger (org.apache.hadoop.conf.Configuration.deprecation). Log4j:warn Please initialize the log4j system Properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.Exception in thread "main" Java.net.ConnectException:Call from lenovo-pc/169.254.33.12 to hadoopmaster:9000 failed on con Nection exception:java.net.ConnectException:
Connection Refused:no further information; For more details See:http://wiki.apache.org/hadoop/connectionrefusedAt Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at sun.reflect.NativeConstructorAcces Sorimpl.newinstance (Nativeconstructoraccessorimpl.java:57) at Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (Delegatingconstructoraccessorimpl.java:45) at Java.lang.reflect.Constructor.newInstance (Constructor.java:526) at Org.apache.hadoop.net.NetUtils.wrapWithMessage (Netutils.java:783) at Org.apache.hadoop.net.NetUtils.wrapException (Netutils.java:730) at Org.apache.hadoop.ipc.Client.call (Client.java:1415) at Org.apache.hadoop.ipc.Client.call (Client.java:1364) at Org.apache.hadoop.ipc.protobufrpcengine$invoker.invoke (Protobufrpcengine.java:206) at Com.sun.proxy. $Proxy 14.getFileInfo (Unknown Source) at Org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProt Ocoltranslatorpb.getfileinfo (Clientnamenodeprotocoltranslatorpb.java:744) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native 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:187) at Org.apache.hadoop.io.retry.RetryInvocationHandler.invoke (Retryinvocationhandler.java:102) at Com.sun.proxy. $Proxy 15.getFileInfo (Unknown Source) at Org.apache.hadoop.hdfs.DFSClient.getFileInfo (Dfsclie Nt.java:1921) at org.apache.hadoop.hdfs.distributedfilesystem$17.doCall (distributedfilesystem.java:1089) at org.apache.hadoop.hdfs.distributedfilesystem$17.doCall (distributedfilesystem.java:1085) at Org.apache.hadoop.fs.FileSystemLinkResolver.resolve (Filesystemlinkresolver.java:81) at Org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus (Distributedfilesystem.java:1085) at Com.pcitc.hadoop.GetTime.main (Gettime.java:24) caused by:java.net.ConnectException:Connection refused:no further information at SUN.NIO.CH.SOCKETCHANNELIMPL.C Heckconnect (Native Method) at Sun.nio.ch.SocketChannelImpl.finishConnect (Socketchannelimpl.java:739) at Org.apache.hadoop.net.SocketIOWithTimeout.connect (Socketiowithtimeout.java:206) at Org.apache.hadoop.net.NetUtils.connect (Netutils.java:529) at Org.apache.hadoop.net.NetUtils.connect (Netutils.java:493) at Org.apache.hadoop.ipc.client$connection.setupconnection (Client.java:30S) at Org.apache.hadoop.ipc.client$connection.setupiostreams (Client.java:700) at org.apache.hadoop.ipc.client$connection.access$2800 (client.java:367) at Org.apache.hadoop.ipc.Client.getConnection (Client.java:1463) at Org.apache.hadoop.ipc.Client.call (Client.java:1382) ... More

The simple reason is that the request link is rejected. First, see if the service starts normally, and then see if the environment variable is configured correctly.

Eclipse running Hadoop program error: Connection refused:no further information

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.