hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-12) "hadoop dfs -put" does not return nonzero status on failure
Date Thu, 29 Dec 2011 12:09:31 GMT

     [ https://issues.apache.org/jira/browse/HDFS-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Harsh J resolved HDFS-12.
-------------------------

       Resolution: Not A Problem
    Fix Version/s: 0.23.0

This has been fixed by the FsCommand revamp on 0.23+.
                
> "hadoop dfs -put" does not return nonzero status on failure
> -----------------------------------------------------------
>
>                 Key: HDFS-12
>                 URL: https://issues.apache.org/jira/browse/HDFS-12
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Karl Anderson
>             Fix For: 0.23.0
>
>
> I'm attempting to put a file on DFS with the "hadoop dfs -put" command.  The put is failing,
probably because my cluster is still being initialized, but the command is still returning
a status of 0.  
> If there was a meaningful error status, I'd be able to handle the situation (in my case,
waiting and putting again works).
> The output is telling me there is a NotReplicatedYetException; it's a new cluster and
the nodes are still being initialized.
> Here's the beginning of the output; it tries a few times, but eventually gives up.
> executing: source ~/.bash_profile; hadoop dfs -put ./vectorfile input/vectorfile
> 08/08/21 13:06:00 WARN fs.FileSystem: "ip-10-251-195-162.ec2.internal:50001" is a deprecated
filesystem name. Use "hdfs://ip-10-251-195-162.ec2.internal:50001/" instead.
> 08/08/21 13:06:00 WARN fs.FileSystem: "ip-10-251-195-162.ec2.internal:50001" is a deprecated
filesystem name. Use "hdfs://ip-10-251-195-162.ec2.internal:50001/" instead.
> 08/08/21 13:06:00 WARN fs.FileSystem: "ip-10-251-195-162.ec2.internal:50001" is a deprecated
filesystem name. Use "hdfs://ip-10-251-195-162.ec2.internal:50001/" instead.
> 08/08/21 13:06:00 WARN fs.FileSystem: "ip-10-251-195-162.ec2.internal:50001" is a deprecated
filesystem name. Use "hdfs://ip-10-251-195-162.ec2.internal:50001/" instead.
> 08/08/21 13:06:01 INFO dfs.DFSClient: org.apache.hadoop.ipc.RemoteException: java.io.IOException:
File /user/root/input/vectorfile could only be replicated to 0 nodes, instead of 1
> 	at org.apache.hadoop.dfs.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1117)
> 	at org.apache.hadoop.dfs.NameNode.addBlock(NameNode.java:330)
> 	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.ipc.RPC$Server.call(RPC.java:452)
> 	at org.apache.hadoop.ipc.Server$Handler.run(Server.java:888)
> 	at org.apache.hadoop.ipc.Client.call(Client.java:715)
> 	at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:216)
> 	at org.apache.hadoop.dfs.$Proxy0.addBlock(Unknown Source)
> 	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.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)
> 	at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)
> 	at org.apache.hadoop.dfs.$Proxy0.addBlock(Unknown Source)
> 	at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.locateFollowingBlock(DFSClient.java:2440)
> 	at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:2323)
> 	at org.apache.hadoop.dfs.DFSClient$DFSOutputStream.access$1800(DFSClient.java:1735)
> 	at org.apache.hadoop.dfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:1912)
> 08/08/21 13:06:01 WARN dfs.DFSClient: NotReplicatedYetException sleeping /user/root/input/vectorfile
retries left 4

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message