You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Hanisha Koneru (JIRA)" <ji...@apache.org> on 2019/02/28 23:28:00 UTC
[jira] [Updated] (HDDS-785) Ozone shell put key does not create
parent directories
[ https://issues.apache.org/jira/browse/HDDS-785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hanisha Koneru updated HDDS-785:
--------------------------------
Target Version/s: 0.5.0 (was: 0.4.0)
> 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