You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Mithila Nagendra <mn...@asu.edu> on 2009/02/05 00:06:26 UTC
Bad connection to FS.
Hey all
When I try to copy a folder from the local file system in to the HDFS using
the command hadoop dfs -copyFromLocal, the copy fails and it gives an error
which says "Bad connection to FS". How do I get past this? The following is
the output at the time of execution:
hadoop@renweiyu-desktop:/usr/local/hadoop$ jps
6873 Jps
6299 JobTracker
6029 DataNode
6430 TaskTracker
6189 SecondaryNameNode
hadoop@renweiyu-desktop:/usr/local/hadoop$ ls
bin docs lib README.txt
build.xml hadoop-0.18.3-ant.jar libhdfs src
c++ hadoop-0.18.3-core.jar librecordio webapps
CHANGES.txt hadoop-0.18.3-examples.jar LICENSE.txt
conf hadoop-0.18.3-test.jar logs
contrib hadoop-0.18.3-tools.jar NOTICE.txt
hadoop@renweiyu-desktop:/usr/local/hadoop$ cd ..
hadoop@renweiyu-desktop:/usr/local$ ls
bin etc games gutenberg hadoop hadoop-0.18.3.tar.gz hadoop-datastore
include lib man sbin share src
hadoop@renweiyu-desktop:/usr/local$ hadoop/bin/hadoop dfs -copyFromLocal
gutenberg gutenberg
09/02/04 15:58:21 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 0 time(s).
09/02/04 15:58:22 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 1 time(s).
09/02/04 15:58:23 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 2 time(s).
09/02/04 15:58:24 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 3 time(s).
09/02/04 15:58:25 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 4 time(s).
09/02/04 15:58:26 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 5 time(s).
09/02/04 15:58:27 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 6 time(s).
09/02/04 15:58:28 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 7 time(s).
09/02/04 15:58:29 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 8 time(s).
09/02/04 15:58:30 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 9 time(s).
Bad connection to FS. command aborted.
The commmand jps shows that the hadoop system s up and running. So I have no
idea whats wrong!
Thanks!
Mithila
Re: Bad connection to FS.
Posted by Amandeep Khurana <am...@gmail.com>.
I faced the same issue a few days back. Formatting the namenode made it work
for me.
Amandeep
Amandeep Khurana
Computer Science Graduate Student
University of California, Santa Cruz
On Wed, Feb 4, 2009 at 3:06 PM, Mithila Nagendra <mn...@asu.edu> wrote:
> Hey all
>
> When I try to copy a folder from the local file system in to the HDFS using
> the command hadoop dfs -copyFromLocal, the copy fails and it gives an error
> which says "Bad connection to FS". How do I get past this? The following is
> the output at the time of execution:
>
> hadoop@renweiyu-desktop:/usr/local/hadoop$ jps
> 6873 Jps
> 6299 JobTracker
> 6029 DataNode
> 6430 TaskTracker
> 6189 SecondaryNameNode
> hadoop@renweiyu-desktop:/usr/local/hadoop$ ls
> bin docs lib README.txt
> build.xml hadoop-0.18.3-ant.jar libhdfs src
> c++ hadoop-0.18.3-core.jar librecordio webapps
> CHANGES.txt hadoop-0.18.3-examples.jar LICENSE.txt
> conf hadoop-0.18.3-test.jar logs
> contrib hadoop-0.18.3-tools.jar NOTICE.txt
> hadoop@renweiyu-desktop:/usr/local/hadoop$ cd ..
> hadoop@renweiyu-desktop:/usr/local$ ls
> bin etc games gutenberg hadoop hadoop-0.18.3.tar.gz hadoop-datastore
> include lib man sbin share src
> hadoop@renweiyu-desktop:/usr/local$ hadoop/bin/hadoop dfs -copyFromLocal
> gutenberg gutenberg
> 09/02/04 15:58:21 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:54310. Already tried 0 time(s).
> 09/02/04 15:58:22 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:54310. Already tried 1 time(s).
> 09/02/04 15:58:23 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:54310. Already tried 2 time(s).
> 09/02/04 15:58:24 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:54310. Already tried 3 time(s).
> 09/02/04 15:58:25 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:54310. Already tried 4 time(s).
> 09/02/04 15:58:26 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:54310. Already tried 5 time(s).
> 09/02/04 15:58:27 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:54310. Already tried 6 time(s).
> 09/02/04 15:58:28 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:54310. Already tried 7 time(s).
> 09/02/04 15:58:29 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:54310. Already tried 8 time(s).
> 09/02/04 15:58:30 INFO ipc.Client: Retrying connect to server: localhost/
> 127.0.0.1:54310. Already tried 9 time(s).
> Bad connection to FS. command aborted.
>
> The commmand jps shows that the hadoop system s up and running. So I have
> no
> idea whats wrong!
>
> Thanks!
> Mithila
>
Re: Bad connection to FS.
Posted by TCK <mo...@yahoo.com>.
Mithila, how come there is no NameNode java process listed by your jps command? I would check the hadoop namenode logs to see if there was some startup problem (the location of those logs would be specified in hadoop-env.sh, at least in the version I'm using).
-TCK
--- On Wed, 2/4/09, Mithila Nagendra <mn...@asu.edu> wrote:
From: Mithila Nagendra <mn...@asu.edu>
Subject: Bad connection to FS.
To: "core-user@hadoop.apache.org" <co...@hadoop.apache.org>, "core-user-subscribe@hadoop.apache.org" <co...@hadoop.apache.org>
Date: Wednesday, February 4, 2009, 6:06 PM
Hey all
When I try to copy a folder from the local file system in to the HDFS using
the command hadoop dfs -copyFromLocal, the copy fails and it gives an error
which says "Bad connection to FS". How do I get past this? The
following is
the output at the time of execution:
hadoop@renweiyu-desktop:/usr/local/hadoop$ jps
6873 Jps
6299 JobTracker
6029 DataNode
6430 TaskTracker
6189 SecondaryNameNode
hadoop@renweiyu-desktop:/usr/local/hadoop$ ls
bin docs lib README.txt
build.xml hadoop-0.18.3-ant.jar libhdfs src
c++ hadoop-0.18.3-core.jar librecordio webapps
CHANGES.txt hadoop-0.18.3-examples.jar LICENSE.txt
conf hadoop-0.18.3-test.jar logs
contrib hadoop-0.18.3-tools.jar NOTICE.txt
hadoop@renweiyu-desktop:/usr/local/hadoop$ cd ..
hadoop@renweiyu-desktop:/usr/local$ ls
bin etc games gutenberg hadoop hadoop-0.18.3.tar.gz hadoop-datastore
include lib man sbin share src
hadoop@renweiyu-desktop:/usr/local$ hadoop/bin/hadoop dfs -copyFromLocal
gutenberg gutenberg
09/02/04 15:58:21 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 0 time(s).
09/02/04 15:58:22 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 1 time(s).
09/02/04 15:58:23 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 2 time(s).
09/02/04 15:58:24 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 3 time(s).
09/02/04 15:58:25 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 4 time(s).
09/02/04 15:58:26 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 5 time(s).
09/02/04 15:58:27 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 6 time(s).
09/02/04 15:58:28 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 7 time(s).
09/02/04 15:58:29 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 8 time(s).
09/02/04 15:58:30 INFO ipc.Client: Retrying connect to server: localhost/
127.0.0.1:54310. Already tried 9 time(s).
Bad connection to FS. command aborted.
The commmand jps shows that the hadoop system s up and running. So I have no
idea whats wrong!
Thanks!
Mithila