FAQ
Hi,

I am using CDH4 on a single machine as both client and server node. Telnet
works perfectly fine. The DATANODE doesn't start.

I am unable to upload sample table for analysis onto Hadoop using the
command: hadoop fs -put <filename>
The following error appears:

12/08/21 01:46:50 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:8020. Already tried 0 time(s).
12/08/21 01:46:51 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:8020. Already tried 1 time(s).
12/08/21 01:46:52 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:8020. Already tried 2 time(s).
12/08/21 01:46:53 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:8020. Already tried 3 time(s).
12/08/21 01:46:54 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:8020. Already tried 4 time(s).
12/08/21 01:46:55 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:8020. Already tried 5 time(s).
12/08/21 01:46:56 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:8020. Already tried 6 time(s).
12/08/21 01:46:57 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:8020. Already tried 7 time(s).
12/08/21 01:46:58 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:8020. Already tried 8 time(s).
12/08/21 01:46:59 INFO ipc.Client: Retrying connect to server:
localhost/127.0.0.1:8020. Already tried 9 time(s).
put: Call From <myhostname>/127.0.1.1 to localhost:8020 failed on
connection exception: java.net.ConnectException: Connection refused; For
more details see: http://wiki.apache.org/hadoop/ConnectionRefused

Please help.

Search Discussions

  • Joey Echeverria at Aug 20, 2012 at 8:36 pm
    Can you please post your /etc/hosts file. I suspect that your host
    name settings are not configured correctly.

    -Joey
    On Mon, Aug 20, 2012 at 4:20 PM, Debashis Ghosh wrote:
    Hi,

    I am using CDH4 on a single machine as both client and server node. Telnet
    works perfectly fine. The DATANODE doesn't start.

    I am unable to upload sample table for analysis onto Hadoop using the
    command: hadoop fs -put <filename>
    The following error appears:

    12/08/21 01:46:50 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 0 time(s).
    12/08/21 01:46:51 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 1 time(s).
    12/08/21 01:46:52 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 2 time(s).
    12/08/21 01:46:53 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 3 time(s).
    12/08/21 01:46:54 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 4 time(s).
    12/08/21 01:46:55 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 5 time(s).
    12/08/21 01:46:56 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 6 time(s).
    12/08/21 01:46:57 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 7 time(s).
    12/08/21 01:46:58 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 8 time(s).
    12/08/21 01:46:59 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 9 time(s).
    put: Call From <myhostname>/127.0.1.1 to localhost:8020 failed on connection
    exception: java.net.ConnectException: Connection refused; For more details
    see: http://wiki.apache.org/hadoop/ConnectionRefused

    Please help.


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.
  • Joey Echeverria at Aug 20, 2012 at 8:53 pm
    That is the problem.

    Your namenode is almost certainly listening on <myhostname>:8020
    rather than localhost:8020.

    I'm assuming that this machine has no external network connectivity?
    If I'm right, than I"d configure /etc/hosts like this:

    127.0.0.1 <myhostname> localhost

    if you do have an external network, then I'd do it like this:

    127.0.0.1 localhost
    <external ip> <myhostname>.<my fully qualified domain name> <myhostname>

    and I'd make sure that <myhostname>.<my fully qualified domain name>
    was used everywhere in the config files.

    -Joey
    On Mon, Aug 20, 2012 at 4:47 PM, Debashis Ghosh wrote:
    I checked the /etc/hosts file, Joey.
    It has the following entries:

    127.0.0.1 localhost
    127.0.1.1 <myhostname>

    So, it doesnt seem to be an issue with the hosts file.

    On Tue, Aug 21, 2012 at 2:06 AM, Joey Echeverria wrote:

    Can you please post your /etc/hosts file. I suspect that your host
    name settings are not configured correctly.

    -Joey

    On Mon, Aug 20, 2012 at 4:20 PM, Debashis Ghosh <debashis80@gmail.com>
    wrote:
    Hi,

    I am using CDH4 on a single machine as both client and server node.
    Telnet
    works perfectly fine. The DATANODE doesn't start.

    I am unable to upload sample table for analysis onto Hadoop using the
    command: hadoop fs -put <filename>
    The following error appears:

    12/08/21 01:46:50 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 0 time(s).
    12/08/21 01:46:51 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 1 time(s).
    12/08/21 01:46:52 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 2 time(s).
    12/08/21 01:46:53 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 3 time(s).
    12/08/21 01:46:54 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 4 time(s).
    12/08/21 01:46:55 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 5 time(s).
    12/08/21 01:46:56 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 6 time(s).
    12/08/21 01:46:57 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 7 time(s).
    12/08/21 01:46:58 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 8 time(s).
    12/08/21 01:46:59 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 9 time(s).
    put: Call From <myhostname>/127.0.1.1 to localhost:8020 failed on
    connection
    exception: java.net.ConnectException: Connection refused; For more
    details
    see: http://wiki.apache.org/hadoop/ConnectionRefused

    Please help.


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.



    --
    Thanks and regards,
    Debashis


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.
  • Ram Srinivasan at May 15, 2013 at 8:47 pm
    Joey:

    I have a similar problem and need help. On an Amazon EC2 Ubuntu machine, I
    was installing CDH4 and trying MRV1 test from this link.
    http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.0/CDH4-Quick-Start/cdh4qs_topic_3_2.html

    My error is a ConnectException on localhost:8080. My hosts file on the
    machine looks like this
    http://screencast.com/t/V9ebSewnEP

    The error from running the example Hadoop job is
    here http://screencast.com/t/kpx6aoNHG

    What is wrong? Is the hosts file looking right?

    Thank you.
    On Monday, August 20, 2012 1:53:26 PM UTC-7, Joey Echeverria wrote:

    That is the problem.

    Your namenode is almost certainly listening on <myhostname>:8020
    rather than localhost:8020.

    I'm assuming that this machine has no external network connectivity?
    If I'm right, than I"d configure /etc/hosts like this:

    127.0.0.1 <myhostname> localhost

    if you do have an external network, then I'd do it like this:

    127.0.0.1 localhost
    <external ip> <myhostname>.<my fully qualified domain name> <myhostname>

    and I'd make sure that <myhostname>.<my fully qualified domain name>
    was used everywhere in the config files.

    -Joey
    On Mon, Aug 20, 2012 at 4:47 PM, Debashis Ghosh wrote:
    I checked the /etc/hosts file, Joey.
    It has the following entries:

    127.0.0.1 localhost
    127.0.1.1 <myhostname>

    So, it doesnt seem to be an issue with the hosts file.

    On Tue, Aug 21, 2012 at 2:06 AM, Joey Echeverria wrote:

    Can you please post your /etc/hosts file. I suspect that your host
    name settings are not configured correctly.

    -Joey

    On Mon, Aug 20, 2012 at 4:20 PM, Debashis Ghosh <debas...@gmail.com<javascript:>>
    wrote:
    Hi,

    I am using CDH4 on a single machine as both client and server node.
    Telnet
    works perfectly fine. The DATANODE doesn't start.

    I am unable to upload sample table for analysis onto Hadoop using the
    command: hadoop fs -put <filename>
    The following error appears:

    12/08/21 01:46:50 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 0 time(s).
    12/08/21 01:46:51 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 1 time(s).
    12/08/21 01:46:52 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 2 time(s).
    12/08/21 01:46:53 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 3 time(s).
    12/08/21 01:46:54 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 4 time(s).
    12/08/21 01:46:55 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 5 time(s).
    12/08/21 01:46:56 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 6 time(s).
    12/08/21 01:46:57 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 7 time(s).
    12/08/21 01:46:58 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 8 time(s).
    12/08/21 01:46:59 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 9 time(s).
    put: Call From <myhostname>/127.0.1.1 to localhost:8020 failed on
    connection
    exception: java.net.ConnectException: Connection refused; For more
    details
    see: http://wiki.apache.org/hadoop/ConnectionRefused

    Please help.


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.



    --
    Thanks and regards,
    Debashis


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.
  • Gwen Shapira at May 17, 2013 at 1:01 am
    Looks like your client can't connect to Name Node.
    Check that the Name Node is up and running first. You can check the
    logs, or through the Web UI on port 50070.
    On Wed, May 15, 2013 at 1:47 PM, Ram Srinivasan wrote:
    Joey:

    I have a similar problem and need help. On an Amazon EC2 Ubuntu machine, I
    was installing CDH4 and trying MRV1 test from this link.
    http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/4.2.0/CDH4-Quick-Start/cdh4qs_topic_3_2.html

    My error is a ConnectException on localhost:8080. My hosts file on the
    machine looks like this
    http://screencast.com/t/V9ebSewnEP

    The error from running the example Hadoop job is here
    http://screencast.com/t/kpx6aoNHG

    What is wrong? Is the hosts file looking right?

    Thank you.
    On Monday, August 20, 2012 1:53:26 PM UTC-7, Joey Echeverria wrote:

    That is the problem.

    Your namenode is almost certainly listening on <myhostname>:8020
    rather than localhost:8020.

    I'm assuming that this machine has no external network connectivity?
    If I'm right, than I"d configure /etc/hosts like this:

    127.0.0.1 <myhostname> localhost

    if you do have an external network, then I'd do it like this:

    127.0.0.1 localhost
    <external ip> <myhostname>.<my fully qualified domain name> <myhostname>

    and I'd make sure that <myhostname>.<my fully qualified domain name>
    was used everywhere in the config files.

    -Joey

    On Mon, Aug 20, 2012 at 4:47 PM, Debashis Ghosh <debas...@gmail.com>
    wrote:
    I checked the /etc/hosts file, Joey.
    It has the following entries:

    127.0.0.1 localhost
    127.0.1.1 <myhostname>

    So, it doesnt seem to be an issue with the hosts file.


    On Tue, Aug 21, 2012 at 2:06 AM, Joey Echeverria <jo...@cloudera.com>
    wrote:
    Can you please post your /etc/hosts file. I suspect that your host
    name settings are not configured correctly.

    -Joey

    On Mon, Aug 20, 2012 at 4:20 PM, Debashis Ghosh <debas...@gmail.com>
    wrote:
    Hi,

    I am using CDH4 on a single machine as both client and server node.
    Telnet
    works perfectly fine. The DATANODE doesn't start.

    I am unable to upload sample table for analysis onto Hadoop using the
    command: hadoop fs -put <filename>
    The following error appears:

    12/08/21 01:46:50 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 0 time(s).
    12/08/21 01:46:51 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 1 time(s).
    12/08/21 01:46:52 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 2 time(s).
    12/08/21 01:46:53 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 3 time(s).
    12/08/21 01:46:54 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 4 time(s).
    12/08/21 01:46:55 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 5 time(s).
    12/08/21 01:46:56 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 6 time(s).
    12/08/21 01:46:57 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 7 time(s).
    12/08/21 01:46:58 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 8 time(s).
    12/08/21 01:46:59 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 9 time(s).
    put: Call From <myhostname>/127.0.1.1 to localhost:8020 failed on
    connection
    exception: java.net.ConnectException: Connection refused; For more
    details
    see: http://wiki.apache.org/hadoop/ConnectionRefused

    Please help.


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.



    --
    Thanks and regards,
    Debashis


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.
  • Rajasekar Umapathy at Jan 21, 2013 at 9:50 am
    Hi,

    I am also getting similar problem.

    When i try "hadoop fs -ls", getting below results.

    ls: Call From cbr-srv-hp0725/172.23.63.78 to hadoop.rajindia.in:8020 failed
    on connection exception: java.net.ConnectException: Connection refused; For
    more details see: http://wiki.apache.org/hadoop/ConnectionRefused

    Could anyone help me on this?

    Regards,
    Raj
    On Tuesday, 21 August 2012 01:50:27 UTC+5:30, Debashis Ghosh wrote:

    Hi,

    I am using CDH4 on a single machine as both client and server node. Telnet
    works perfectly fine. The DATANODE doesn't start.

    I am unable to upload sample table for analysis onto Hadoop using the
    command: hadoop fs -put <filename>
    The following error appears:

    12/08/21 01:46:50 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 0 time(s).
    12/08/21 01:46:51 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 1 time(s).
    12/08/21 01:46:52 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 2 time(s).
    12/08/21 01:46:53 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 3 time(s).
    12/08/21 01:46:54 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 4 time(s).
    12/08/21 01:46:55 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 5 time(s).
    12/08/21 01:46:56 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 6 time(s).
    12/08/21 01:46:57 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 7 time(s).
    12/08/21 01:46:58 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 8 time(s).
    12/08/21 01:46:59 INFO ipc.Client: Retrying connect to server: localhost/
    127.0.0.1:8020. Already tried 9 time(s).
    put: Call From <myhostname>/127.0.1.1 to localhost:8020 failed on
    connection exception: java.net.ConnectException: Connection refused; For
    more details see: http://wiki.apache.org/hadoop/ConnectionRefused

    Please help.
  • Joey Echeverria at Jan 21, 2013 at 2:27 pm
    Hey Raj,

    Please try to create a new thread rather than replying to another thread.

    As for your problem, did you already try the debugging steps in the
    link from the exception:

    http://wiki.apache.org/hadoop/ConnectionRefused

    -Joey

    On Mon, Jan 21, 2013 at 1:50 AM, Rajasekar Umapathy
    wrote:
    Hi,

    I am also getting similar problem.

    When i try "hadoop fs -ls", getting below results.

    ls: Call From cbr-srv-hp0725/172.23.63.78 to hadoop.rajindia.in:8020 failed
    on connection exception: java.net.ConnectException: Connection refused; For
    more details see: http://wiki.apache.org/hadoop/ConnectionRefused

    Could anyone help me on this?

    Regards,
    Raj
    On Tuesday, 21 August 2012 01:50:27 UTC+5:30, Debashis Ghosh wrote:

    Hi,

    I am using CDH4 on a single machine as both client and server node. Telnet
    works perfectly fine. The DATANODE doesn't start.

    I am unable to upload sample table for analysis onto Hadoop using the
    command: hadoop fs -put <filename>
    The following error appears:

    12/08/21 01:46:50 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 0 time(s).
    12/08/21 01:46:51 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 1 time(s).
    12/08/21 01:46:52 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 2 time(s).
    12/08/21 01:46:53 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 3 time(s).
    12/08/21 01:46:54 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 4 time(s).
    12/08/21 01:46:55 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 5 time(s).
    12/08/21 01:46:56 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 6 time(s).
    12/08/21 01:46:57 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 7 time(s).
    12/08/21 01:46:58 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 8 time(s).
    12/08/21 01:46:59 INFO ipc.Client: Retrying connect to server:
    localhost/127.0.0.1:8020. Already tried 9 time(s).
    put: Call From <myhostname>/127.0.1.1 to localhost:8020 failed on
    connection exception: java.net.ConnectException: Connection refused; For
    more details see: http://wiki.apache.org/hadoop/ConnectionRefused

    Please help.


    --
    Joey Echeverria
    Principal Solutions Architect
    Cloudera, Inc.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedAug 20, '12 at 8:20p
activeMay 17, '13 at 1:01a
posts7
users5
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase