[ 
https://issues.apache.org/jira/browse/HDDS-3147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17057099#comment-17057099
 ] 

Lokesh Jain commented on HDDS-3147:
-----------------------------------

[~micahzhao] You are right. This is a bug. In BasicOzoneFileSystem we currently 
do not get the owner information from OM. We just set it to current user. I 
also think we might not be setting owner while creating ozone filesystem 
objects.

> 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!
> Is this a bug?
>  
>  



--
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

Reply via email to