You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Hanisha Koneru (JIRA)" <ji...@apache.org> on 2018/10/31 23:52:00 UTC
[jira] [Created] (HDDS-785) Ozone shell put key does not create
parent directories
Hanisha Koneru created HDDS-785:
-----------------------------------
Summary: 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
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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org