hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-3508) Namenode couldn't execute as Windows service
Date Fri, 06 Jun 2008 19:00:47 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-3508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603139#action_12603139
] 

Tsz Wo (Nicholas), SZE commented on HADOOP-3508:
------------------------------------------------

Do you mean that since the username 'nt authority\system' has a space, so we got IOException
from getUnixUserName()?  Are we going to support username containing white spaces?

> Namenode couldn't execute as Windows service
> --------------------------------------------
>
>                 Key: HADOOP-3508
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3508
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.17.0
>         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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message