hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-305) Namenode couldn't execute when the user name contains a space
Date Fri, 18 Jul 2014 05:31:06 GMT

     [ https://issues.apache.org/jira/browse/HDFS-305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Allen Wittenauer resolved HDFS-305.
-----------------------------------

    Resolution: Incomplete

Closing this as stale.

> Namenode couldn't execute when the user name contains a space
> -------------------------------------------------------------
>
>                 Key: HDFS-305
>                 URL: https://issues.apache.org/jira/browse/HDFS-305
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>         Environment: Windows XP, Windows 2003 Server
>            Reporter: NOMURA Yoshihide
>
> The Hadoop Namenode couldn't execute as Windows service,
> because UnixUserGroupInformation#getUnixUserName() throws IOException.
> The 'whoami' command output is 'nt authority\system' in default Windows service,
> so I suggest to change the method like follows:
>   static String getUnixUserName() throws IOException {
>     String[] result = executeShellCommand(
>         new String[]{Shell.USER_NAME_COMMAND});
>     if (Shell.WINDOWS) {
>     	return toString(result);
>     } else if (result.length!=1) {
>       throw new IOException("Expect one token as the result of " + 
>           Shell.USER_NAME_COMMAND + ": " + toString(result));
>     }
>     return result[0];
>   }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message