hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Sekhon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7565) NFS gateway UID overflow
Date Tue, 23 Dec 2014 16:24:13 GMT

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

Hari Sekhon commented on HDFS-7565:

That 4 Billion UID is being sent by my Windows 7 workstation when accesing the NFS mount point.

It was difficult to find this out (I found out because my other MapR+NFS cluster just handled
it and I saw the UID on file creation) which is why I went looking to find out why I couldn't
see that 4 billion UID in the HDFS NFS gateway logs and then I read the code and realized
that it's showing me this -2 instead of the 4 billion (hence it's overflowing around on java

That static mapping issue is separate issue where trying to then map the 4 billion UID prevents
gateway startup as documented in HDFS-7563.

This issue in this Jira is really to answer the question: "Why can't I find this UID 4 billion
that my client was passing to my HDFS NFS gateway". I believe the answer is because the number
was being lost in integer overflow.

> 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

View raw message