bharatviswa504 opened a new pull request #1418: URL: https://github.com/apache/hadoop-ozone/pull/1418
## What changes were proposed in this pull request? When Key is 0 bytes, and ending with "/" call createDirectory API. In this way below scenario can work from S3A. ``` hdfs dfs -mkdir s3a://sept11-1/dir1/dir2/dir3 hdfs dfs -put /etc/hadoop/conf/ozone-site.xml s3a://sept11-1/dir1/dir2/dir3/key1 ``` ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-4209 ## How was this patch tested? Tested it on a cluster [root@bvoz-1 ~]# oapi create-bucket --bucket sept11-1 { "Location": "https://bvoz-1.bvoz.root.hwx.site:9879/sept11-1" } [root@bvoz-1 ~]# hdfs dfs -put /etc/hadoop/conf/ozone-site.xml s3a://sept11-1/dir1/dir2/dir3/key1 [root@bvoz-1 ~]# hdfs dfs -ls -R s3a://sept11-1/ log4j:WARN No appenders could be found for logger (org.apache.hadoop.util.Shell). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. drwxrwxrwx - root root 0 2020-09-11 23:28 s3a://sept11-1/dir1 drwxrwxrwx - root root 0 2020-09-11 23:28 s3a://sept11-1/dir1/dir2 drwxrwxrwx - root root 0 2020-09-11 23:28 s3a://sept11-1/dir1/dir2/dir3 -rw-rw-rw- 1 root root 2271 2020-09-11 23:28 s3a://sept11-1/dir1/dir2/dir3/key1 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org