[ https://issues.apache.org/jira/browse/HDDS-3147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17055077#comment-17055077 ]
mingchao zhao edited comment on HDDS-3147 at 3/9/20, 3:26 PM: -------------------------------------------------------------- I found that when we got the file through [getFileStatus|https://github.com/apache/hadoop-ozone/blob/49edf55c85e85d8e947cb272986e79947d13aa2e/hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/BasicOzoneClientAdapterImpl.java#L297], we took the current system user as the file owner each time. Hi [~ljain], Do you have any Suggestions here? Is that a bug? was (Author: micahzhao): Hi [~ljain] Do you have any Suggestions here? Is that a bug? > User factor passed in get(uri,conf,user) API doesn't take effect > ---------------------------------------------------------------- > > Key: HDDS-3147 > URL: https://issues.apache.org/jira/browse/HDDS-3147 > Project: Hadoop Distributed Data Store > Issue Type: Sub-task > Components: Ozone Filesystem > Reporter: mingchao zhao > Priority: Major > Attachments: image-2020-03-09-22-51-51-759.png, > image-2020-03-09-22-52-40-434.png, image-2020-03-09-22-52-49-386.png > > > When I created the file using the following API, I found that the user > setting did not take effect. > > {code:java} > // > FileSystem fs = FileSystem.get(URI.create("o3fs://bucket.hadoop/test1.log"), > conf,"zmc"); > FSDataOutputStream fsOut = fs.create(new Path(dst), true); > fsOut.writeBytes("hello word!"); > {code} > I also find out who the current system user is and who the owner of the file > is: > !image-2020-03-09-22-52-49-386.png|width=782,height=125! > !image-2020-03-09-22-51-51-759.png|width=786,height=136! > It doesn't feel right. > > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org