[
https://issues.apache.org/jira/browse/HDFS-14739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16908847#comment-16908847
]
xuzq edited comment on HDFS-14739 at 8/16/19 9:16 AM:
------------------------------------------------------
I'm sorry, what we said may be different thing.:(
First, while mount point creation,we get the owner from
{code:java}
UserGroupInformation ugi = NameNode.getRemoteUser();
record.setOwnerName(ugi.getShortUserName());
{code}
then it will be overwrite.
{code:java}
// Set ACL info for mount table entry
if (aclInfo.getOwner() != null) {
newEntry.setOwnerName(aclInfo.getOwner());
}
if (aclInfo.getGroup() != null) {
newEntry.setGroupName(aclInfo.getGroup());
}
if (aclInfo.getMode() != null) {
newEntry.setMode(aclInfo.getMode());
}
{code}
Second, my mount table like blew:
!image-2019-08-16-17-16-00-863.png|width=563,height=50!
!image-2019-08-16-17-16-34-325.png|width=552,height=56!
The FsShell LS result does not match my expect, my expect result should be like:
drwxr-xr-x - *mnt_test1 mnt_test1_group* 0 2019-08-15 19:07 /mnt/test1
Your expect result is what? and why? [~hemanthboyina] :)
was (Author: xuzq_zander):
I'm sorry, what we said may be different thing.:(
First, while mount point creation,we get the owner from
{code:java}
UserGroupInformation ugi = NameNode.getRemoteUser();
record.setOwnerName(ugi.getShortUserName());
{code}
then it will be overwrite.
{code:java}
// Set ACL info for mount table entry
if (aclInfo.getOwner() != null) {
newEntry.setOwnerName(aclInfo.getOwner());
}
if (aclInfo.getGroup() != null) {
newEntry.setGroupName(aclInfo.getGroup());
}
if (aclInfo.getMode() != null) {
newEntry.setMode(aclInfo.getMode());
}
{code}
Second, my mount table like blew:
!image-2019-08-16-16-27-08-003.png|width=847,height=63!
!image-2019-08-16-16-28-15-022.png|width=498,height=47!
The LS result does not match my expect, my expect result should be like:
drwxr-xr-x - *mnt_test1 mnt_test1_group* 0 2019-08-15 19:07 /mnt/test1
Your expect result is what? and why? [~hemanthboyina] :)
> RBF: LS command for mount point shows wrong owner and permission information.
> -----------------------------------------------------------------------------
>
> Key: HDFS-14739
> URL: https://issues.apache.org/jira/browse/HDFS-14739
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: xuzq
> Priority: Major
> Attachments: image-2019-08-16-17-15-50-614.png,
> image-2019-08-16-17-16-00-863.png, image-2019-08-16-17-16-34-325.png
>
>
> ||source||target namespace||destination||owner||group||permission||
> |/mnt|ns0|/mnt|mnt|mnt_group|755|
> |/mnt/test1|ns1|/mnt/test1|mnt_test1|mnt_test1_group|755|
> |/test1|ns1|/test1|test1|test1_group|755|
> When do getListing("/mnt"), the owner of */mnt/test1* should be *mnt_test1*
> instead of *test1* in result.
>
> And if the mount table as blew, we should support getListing("/mnt") instead
> of throw IOException when dfs.federation.router.default.nameservice.enable is
> false.
> ||source||target namespace||destination||owner||group||permission||
> |/mnt/test1|ns0|/mnt/test1|test1|test1|755|
> |/mnt/test2|ns1|/mnt/test2|test2|test2|755|
>
>
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]