hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanisha Koneru (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDDS-785) Ozone shell put key does not create parent directories
Date Thu, 01 Nov 2018 00:04:00 GMT

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

Hanisha Koneru updated HDDS-785:
--------------------------------
    Attachment: HDDS-785.001.patch

> Ozone shell put key does not create parent directories
> ------------------------------------------------------
>
>                 Key: HDDS-785
>                 URL: https://issues.apache.org/jira/browse/HDDS-785
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Hanisha Koneru
>            Assignee: Hanisha Koneru
>            Priority: Major
>         Attachments: HDDS-785.001.patch
>
>
> When we create a key in ozone through Ozone Shell, the parent directory structure is
not created. 
> {code:java}
> $ ./ozone sh key put /volume1/bucket1/o3sh/t1/dir1/file1 /etc/hosts -r=ONE 
> $ ./ozone sh key list /volume1/bucket1 
> [ { 
>    ….
>    "size" : 5898, 
>    "keyName" : "o3sh/t1/dir1/file1” 
> } ] 
> $ ./ozone fs -ls o3fs://bucket1.volume1/o3sh/t1/dir1/ 
> ls: `o3fs://bucket1.volume1/o3sh/t1/dir1/': No such file or directory 
> $ ./ozone fs -ls o3fs://bucket1.volume1/o3sh/t1/dir1/file1 
> -rw-rw-rw- 1 hk hk       5898 2018-10-23 18:02 o3fs://bucket1.volume1/o3sh/t1/dir1/file1{code}
> OzoneFileSystem and S3AFileSystem, when creating files, create the parent directories
if they do not exist. We should match this behavior in Ozone shell as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message