hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kihwal Lee (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-7803) The first put to a non-existing current directory doesn't work correctly
Date Fri, 04 Nov 2011 19:53:51 GMT
The first put to a non-existing current directory doesn't work correctly

                 Key: HADOOP-7803
                 URL: https://issues.apache.org/jira/browse/HADOOP-7803
             Project: Hadoop Common
          Issue Type: Bug
          Components: fs
    Affects Versions: 0.23.0
            Reporter: Kihwal Lee

Steps to reproduce:
- Format the dfs.
- Start it.
- Put a file without specifying the destination.

$ hadoop fs -ls
ls: `.': No such file or directory

$ hadoop fs -put /etc/passwd

$ hadoop fs -ls
Found 1 items
-rw-r--r--   1 kihwal supergroup       2076 2011-11-04 10:37 .._COPYING_

The namenode log:
- ugi=kihwal    ip=/   cmd=create      src=/user/kihwal/.._COPYING_    dst=null 
- BLOCK* NameSystem.allocateBlock: /user/kihwal/.._COPYING_. BP-221429388-
blk_1038813851536531761_1001{blockUCState=UNDER_CONSTRUCTION, primaryNodeIndex=-1,
- BLOCK* addStoredBlock: blockMap updated: is added to
blk_1038813851536531761_1001{blockUCState=UNDER_CONSTRUCTION, primaryNodeIndex=-1,
replicas=[ReplicaUnderConstruction[|RBW]]} size 0
- DIR* NameSystem.completeFile: file /user/kihwal/.._COPYING_ is closed by DFSClient_NONMAPREDUCE_809910865_1
- ugi=kihwal    ip=/   cmd=rename      src=/user/kihwal/.._COPYING_    dst=/user/kihwal

It ends up creating a wrong file. 

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


View raw message