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

Hari Sekhon commented on HDFS-7565:
-----------------------------------

To clarify:

The Windows 7 workstation is part of the enterprise Active Directory and is 
what is sending that 4 billion UID. My windows user is some random alphanumeric 
id not relevant here. 

The "hari" user was created by me in this standalone integrated Kerberos realm 
with backing LDAP directory which manages the Hadoop cluster. The Hadoop 
cluster authenticates to this standalone authentication realm created by me.

So the "hari" user and its 10002 UID were set up by me and appear as local 
native user on the cluster nodes.

This is why you see the two UIDs. What I was trying to do was map the 4 billion 
UID to the 10002 UID using the recently added static map in the other jira 
HDFS-7563.

The problem here is that when the NFS gateway receives the 4 billion UID from 
the Windows workstation it overflows and results in the -2 UID.

According to HDFS-6361 that -2 is set because it's outside the int range, but 
it's not clear what the fix is in this instance since it was marked resolved in 
version 2.4.1 and I'm running 2.6.0.

> NFS gateway UID overflow
> ------------------------
>
>                 Key: HDFS-7565
>                 URL: https://issues.apache.org/jira/browse/HDFS-7565
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: nfs
>    Affects Versions: 2.6.0
>         Environment: HDP 2.2 (Apache Hadoop 2.6.0)
>            Reporter: Hari Sekhon
>            Assignee: Yongjun Zhang
>
> It appears that my Windows 7 workstation is passing a UID around 4 billion to 
> the NFS gateway and the getUserName() method is being passed "-2", so it 
> looks like the UID is an int and is overflowing:
> {code}security.ShellBasedIdMapping 
> (ShellBasedIdMapping.java:getUserName(358)) - Can't find user name for uid 
> -2. Use default user name nobody{code}
> Regards,
> Hari Sekhon
> http://www.linkedin.com/in/harisekon



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to