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-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org