hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shenhong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-1472) TestCase failed at username with “.”
Date Wed, 04 Dec 2013 06:53:35 GMT

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

shenhong commented on YARN-1472:
--------------------------------

The reason is at org.apache.hadoop.security.authorize.ProxyUsers:
{code}
    String regex = CONF_HADOOP_PROXYUSER_RE+"[^.]*\\"+CONF_GROUPS;
    Map<String,String> allMatchKeys = conf.getValByRegex(regex);
    for(Entry<String, String> entry : allMatchKeys.entrySet()) {
      proxyGroups.put(entry.getKey(), 
          StringUtils.getStringCollection(entry.getValue()));
    }
{code}
regex is only user without "." , Why ?

> TestCase failed at username with “.”
> ------------------------------------
>
>                 Key: YARN-1472
>                 URL: https://issues.apache.org/jira/browse/YARN-1472
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>            Reporter: shenhong
>
> When I run a testcase by user yuling.sh  :
> {code}
>  mvn  test -Dtest=TestFileSystemAccessService#createFileSystem
> {code}
> it will failed with exception :
> {code}
> org.apache.hadoop.ipc.RemoteException: User: yuling.sh is not allowed to impersonate
u
> 	at org.apache.hadoop.ipc.Client.call(Client.java:1412)
> 	at org.apache.hadoop.ipc.Client.call(Client.java:1365)
> 	at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:212)
> 	at $Proxy17.mkdirs(Unknown Source)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message