hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Katie legere <lege...@queensu.ca>
Subject RE: Bad connection to FS. command aborted.
Date Sat, 20 Mar 2010 21:13:43 GMT
No but I am new to this and it was an instance I created from something I'd
previously bundled and it has behaving strangely ever since startup.

Katie

-----Original Message-----
From: Colin Freas [mailto:colinfreas@gmail.com] 
Sent: Saturday, March 20, 2010 3:31 PM
To: common-user@hadoop.apache.org
Subject: Re: Bad connection to FS. command aborted.

any idea what the root cause was?

On Sat, Mar 20, 2010 at 2:19 PM, Katie legere <legerek@queensu.ca> wrote:

> Thank you so much - it reformatted the file system but at least now
> everything works.
> Katie
>
> -----Original Message-----
> From: Aleksandar Stupar [mailto:stupar.aleksandar@yahoo.com]
> Sent: Saturday, March 20, 2010 2:01 PM
> To: common-user@hadoop.apache.org
> Subject: Re: Bad connection to FS. command aborted.
>
> Hi,
>
> If you have a fresh install you should try formatting the name node before
> starting dfs by:
> $ bin/hadoop namenode -format
>
> P.S. you can also use -put command instead of -copyFromLocal
>
> Hope this helps,
> Aleksandar.
>
>
>
>
> ________________________________
> From: Katie legere <legerek@queensu.ca>
> To: common-user@hadoop.apache.org
> Sent: Sat, March 20, 2010 5:43:16 PM
> Subject: Bad connection to FS. command aborted.
>
>
> I'm getting this error when I try to copy files to the
> dfs using this command:   hadoop@10:/home/ubuntu/hadoop$ bin/hadoop dfs
> -copyFromLocal /tmp/gutenberg gutenberg
>
> I tried this to see what might be the problem : hadoop@10
> :/home/ubuntu/hadoop$
> bin/hadoop namenode
>
> And got this.
> 10/03/20 16:24:55 INFO namenode.NameNode: STARTUP_MSG:
> /************************************************************
> STARTUP_MSG: Starting NameNode
> STARTUP_MSG:   host = 10/0.0.0.10
> STARTUP_MSG:   args = []
> STARTUP_MSG:   version = 0.20.1
> STARTUP_MSG:   build =
> http://svn.apache.org/repos/asf/hadoop/common/tags/releas
> e-0.20.1-rc1 -r 810220; compiled by 'oom' on Tue Sep  1
> 20:55:56 UTC 2009
> ************************************************************/
> 10/03/20 16:25:00 INFO metrics.RpcMetrics: Initializing RPC
> Metrics with hostName=NameNode, port=54310
> 10/03/20 16:25:00 INFO namenode.NameNode: Namenode up at:
> localhost/127.0.0.1:54310
> 10/03/20 16:25:00 INFO jvm.JvmMetrics: Initializing JVM
> Metrics with processName=NameNode, sessionId=null
> 10/03/20 16:25:10 INFO metrics.NameNodeMetrics: Initializing
> NameNodeMeterics using context
> object:org.apache.hadoop.metrics.spi.NullContext
> 10/03/20 16:25:10 INFO namenode.FSNamesystem:
> fsOwner=hadoop,hadoop
> 10/03/20 16:25:10 INFO namenode.FSNamesystem:
> supergroup=supergroup
> 10/03/20 16:25:10 INFO namenode.FSNamesystem: isPermissionEnabled=true
> 10/03/20 16:25:15 INFO metrics.FSNamesystemMetrics:
> Initializing FSNamesystemMet
> rics using context
> object:org.apache.hadoop.metrics.spi.NullContext
> 10/03/20 16:25:15 INFO namenode.FSNamesystem: Registered
> FSNamesystemStatusMBean
> 10/03/20 16:25:20 INFO
> common.Storage: Storage directory /tmp/hadoop-hadoop/dfs/name does not
> exist.
> 10/03/20 16:25:20 ERROR namenode.FSNamesystem: FSNamesystem
> initialization failed.
> org.apache.hadoop.hdfs.server.common.InconsistentFSStateException:
> Directory /tmp/hadoop-hadoop/dfs/name is in an inconsistent state: storage
> directory does not exist or is not
> accessible.
> at
>
>
org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage
.java:290)
>        at
>
>
org.apache.hadoop.hdfs.server.namenode.FSDirectory.loadFSImage(FSDirectory.j
ava:87)
>        at
>
>
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.initialize(FSNamesystem.
java:311)
>        at
>
>
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java
:292)
>        at
>
org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:201
)
>        at
> org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:279)
>        at
>
>
org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java
:956)
>        at
> org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:965)
> 10/03/20 16:25:20 INFO ipc.Server: Stopping server on 54310
> 10/03/20 16:25:20 ERROR namenode.NameNode:
> org.apache.hadoop.hdfs.server.common.
> InconsistentFSStateException: Directory
> /tmp/hadoop-hadoop/dfs/name is in an inconsistent state: storage directory
> does
> not exist or is not accessible.
>        at
>
>
org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage
.java:290)
>        at
>
>
org.apache.hadoop.hdfs.server.namenode.FSDirectory.loadFSImage(FSDirectory.j
ava:87)
>        at
>
>
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.initialize(FSNamesystem.
java:311)
>        at
>
>
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java
:292)
>        at
>
>
org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:201
)
>        at
> org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:279)
>        at
>
>
org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java
:956)
>        at
> org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:965)
>
> 10/03/20 16:25:20 INFO namenode.NameNode: SHUTDOWN_MSG:
> /************************************************************
> SHUTDOWN_MSG: Shutting down NameNode at 10/0.0.0.10
> ************************************************************/
>
> I tried running: hadoop@10:/home/ubuntu/hadoop$
> bin/start-dfs.sh
>
> starting namenode, logging to
> /home/ubuntu/hadoop/bin/../logs/hadoop-hadoop-namenode-10.out
> localhost: starting datanode, logging to
> /home/ubuntu/hadoop/bin/../logs/hadoop-hadoop-datanode-10.out
> localhost: starting secondarynamenode, logging to
> /home/ubuntu/hadoop/bin/../logs/hadoop-hadoop-secondarynamenode-10.out
>
> Which seems good but I still
> get the same error.
>
> Katie Legere| Senior Programmer/Analyst |
> Department of Human Resources
> 613-533-6000    x74180| Queen's University
> This e-mail is
> intended only for the recipient(s) to whom it is addressed and may contain
> information that is confidential or privileged. If you are not the
intended
> recipient, any disclosure or unauthorized use of this e-mail or the
> information
> contained herein or attached hereto is strictly prohibited and may be
> unlawful.
> If you have received this e-mail in error, please notify the sender
> immediately
> and delete this e-mail without reading, printing, copying or forwarding it
> to
> anyone.  Thank you.
>
>
>
>
>
>



Mime
View raw message