[
https://issues.apache.org/jira/browse/HDDS-785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arpit Agarwal resolved HDDS-785.
--------------------------------
Resolution: Won't Do
There is some discussion about this on the design doc attached to HDDS-2939.
We'll likely not do this as it can suffer from pathological cases (key names
with lots of {{/}} characters).
> 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
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]