FAQ
Hi all

I have started hadoop and its running

am getting following error when i try to execute a simple map reduce program

root@cjb3f-69:/home/media/Desktop# hadoop-0.20 jar HadoopSample.jar
HadoopSample input output
10/10/22 14:41:58 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 0 time(s).
10/10/22 14:41:59 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 1 time(s).
10/10/22 14:42:00 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 2 time(s).
10/10/22 14:42:01 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 3 time(s).
10/10/22 14:42:02 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 4 time(s).
10/10/22 14:42:03 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 5 time(s).
10/10/22 14:42:04 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 6 time(s).
10/10/22 14:42:05 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 7 time(s).
10/10/22 14:42:06 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 8 time(s).
10/10/22 14:42:07 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:8020. Already tried 9 time(s).
Exception in thread "main" java.lang.RuntimeException:
java.net.ConnectException: Call to localhost/127.0.0.1:8020 failed on
connection exception: java.net.ConnectException: Connection refused
at
org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:370)
at
org.apache.hadoop.mapred.FileOutputFormat.setOutputPath(FileOutputFormat.java:125)
at HadoopSample.main(HadoopSample.java:55)
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:156)
Caused by: java.net.ConnectException: Call to
localhost/127.0.0.1:8020failed on connection exception:
java.net.ConnectException: Connection
refused
at org.apache.hadoop.ipc.Client.wrapException(Client.java:845)
at org.apache.hadoop.ipc.Client.call(Client.java:821)
at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:221)
at $Proxy0.getProtocolVersion(Unknown Source)
at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:363)
at
org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:110)
at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:174)
at
org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:82)
at
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:1448)
at org.apache.hadoop.fs.FileSystem.access$300(FileSystem.java:67)
at
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:1476)
at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:1464)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:197)
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:96)
at
org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:366)
... 7 more
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
at
org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:407)
at
org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:332)
at org.apache.hadoop.ipc.Client$Connection.access$2000(Client.java:202)
at org.apache.hadoop.ipc.Client.getConnection(Client.java:944)
at org.apache.hadoop.ipc.Client.call(Client.java:789)

can any one help.

I am using cloudera hadoop on Ubuntu

Thanks
Biju

Search Discussions

  • Harsh J at Oct 22, 2010 at 9:55 am

    On Fri, Oct 22, 2010 at 2:45 PM, Biju .B wrote:
    Hi all

    I have started hadoop and its running

    am getting following error when i try to execute a simple map reduce program

    root@cjb3f-69:/home/media/Desktop# hadoop-0.20 jar HadoopSample.jar
    HadoopSample input output
    10/10/22 14:41:58 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 0 time(s).
    10/10/22 14:41:59 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 1 time(s).
    10/10/22 14:42:00 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 2 time(s).
    10/10/22 14:42:01 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 3 time(s).
    10/10/22 14:42:02 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 4 time(s).
    10/10/22 14:42:03 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 5 time(s).
    10/10/22 14:42:04 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 6 time(s).
    10/10/22 14:42:05 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 7 time(s).
    10/10/22 14:42:06 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 8 time(s).
    10/10/22 14:42:07 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 9 time(s).
    Exception in thread "main" java.lang.RuntimeException:
    java.net.ConnectException: Call to localhost/127.0.0.1:8020 failed on
    connection exception: java.net.ConnectException: Connection refused
    at
    org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:370)
    at
    org.apache.hadoop.mapred.FileOutputFormat.setOutputPath(FileOutputFormat.java:125)
    at HadoopSample.main(HadoopSample.java:55)
    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:156)
    Caused by: java.net.ConnectException: Call to
    localhost/127.0.0.1:8020failed on connection exception:
    java.net.ConnectException: Connection
    refused
    at org.apache.hadoop.ipc.Client.wrapException(Client.java:845)
    at org.apache.hadoop.ipc.Client.call(Client.java:821)
    at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:221)
    at $Proxy0.getProtocolVersion(Unknown Source)
    at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:363)
    at
    org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:110)
    Is your NameNode configured to listen on the localhost interface (lo)?
    Is it up, if so? Check jps output and the namenode logs in
    $HADOOP_HOME/logs directory.
    can any one help.

    I am using cloudera hadoop on Ubuntu
    There is a CDH specific mailing list also available at
    https://groups.google.com/a/cloudera.org/group/cdh-user/topics for CDH
    Users.


    --
    Harsh J
    www.harshj.com
  • Biju .B at Oct 22, 2010 at 2:10 pm
    thnx this solved my issue
    On Fri, Oct 22, 2010 at 3:24 PM, Harsh J wrote:
    On Fri, Oct 22, 2010 at 2:45 PM, Biju .B wrote:
    Hi all

    I have started hadoop and its running

    am getting following error when i try to execute a simple map reduce program
    root@cjb3f-69:/home/media/Desktop# hadoop-0.20 jar HadoopSample.jar
    HadoopSample input output
    10/10/22 14:41:58 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 0 time(s).
    10/10/22 14:41:59 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 1 time(s).
    10/10/22 14:42:00 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 2 time(s).
    10/10/22 14:42:01 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 3 time(s).
    10/10/22 14:42:02 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 4 time(s).
    10/10/22 14:42:03 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 5 time(s).
    10/10/22 14:42:04 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 6 time(s).
    10/10/22 14:42:05 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 7 time(s).
    10/10/22 14:42:06 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 8 time(s).
    10/10/22 14:42:07 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 9 time(s).
    Exception in thread "main" java.lang.RuntimeException:
    java.net.ConnectException: Call to localhost/127.0.0.1:8020 failed on
    connection exception: java.net.ConnectException: Connection refused
    at
    org.apache.hadoop.mapred.JobConf.getWorkingDirectory(JobConf.java:370)
    at
    org.apache.hadoop.mapred.FileOutputFormat.setOutputPath(FileOutputFormat.java:125)
    at HadoopSample.main(HadoopSample.java:55)
    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:156)
    Caused by: java.net.ConnectException: Call to
    localhost/127.0.0.1:8020failed on connection exception:
    java.net.ConnectException: Connection
    refused
    at org.apache.hadoop.ipc.Client.wrapException(Client.java:845)
    at org.apache.hadoop.ipc.Client.call(Client.java:821)
    at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:221)
    at $Proxy0.getProtocolVersion(Unknown Source)
    at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:363)
    at
    org.apache.hadoop.hdfs.DFSClient.createRPCNamenode(DFSClient.java:110)
    Is your NameNode configured to listen on the localhost interface (lo)?
    Is it up, if so? Check jps output and the namenode logs in
    $HADOOP_HOME/logs directory.
    can any one help.

    I am using cloudera hadoop on Ubuntu
    There is a CDH specific mailing list also available at
    https://groups.google.com/a/cloudera.org/group/cdh-user/topics for CDH
    Users.


    --
    Harsh J
    www.harshj.com
  • Steve Loughran at Oct 22, 2010 at 11:50 am

    On 22/10/10 10:15, Biju .B wrote:
    Hi all

    I have started hadoop and its running

    am getting following error when i try to execute a simple map reduce program

    root@cjb3f-69:/home/media/Desktop# hadoop-0.20 jar HadoopSample.jar
    HadoopSample input output
    10/10/22 14:41:58 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 0 time(s).
    10/10/22 14:41:59 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 1 time(s).
    10/10/22 14:42:00 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 2 time(s).
    10/10/22 14:42:01 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 3 time(s).
    10/10/22 14:42:02 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 4 time(s).
    10/10/22 14:42:03 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 5 time(s).
    10/10/22 14:42:04 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 6 time(s).
    10/10/22 14:42:05 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 7 time(s).
    10/10/22 14:42:06 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 8 time(s).
    10/10/22 14:42:07 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 9 time(s).
    Exception in thread "main" java.lang.RuntimeException:
    java.net.ConnectException: Call to localhost/127.0.0.1:8020 failed on
    connection exception: java.net.ConnectException: Connection refused

    http://wiki.apache.org/hadoop/ConnectionRefused
  • Harsh J at Oct 22, 2010 at 12:34 pm

    On Fri, Oct 22, 2010 at 5:20 PM, Steve Loughran wrote:
    http://wiki.apache.org/hadoop/ConnectionRefused
    Nice, I didn't know a wiki was written for this common issue!
    /me adds it to his refer-this-first-list.

    --
    Harsh J
    www.harshj.com

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-user @
categorieshadoop
postedOct 22, '10 at 9:16a
activeOct 22, '10 at 2:10p
posts5
users3
websitehadoop.apache.org...
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase