Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE7A310535 for ; Wed, 4 Dec 2013 06:53:39 +0000 (UTC) Received: (qmail 14622 invoked by uid 500); 4 Dec 2013 06:53:36 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 14597 invoked by uid 500); 4 Dec 2013 06:53:35 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 14583 invoked by uid 99); 4 Dec 2013 06:53:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2013 06:53:35 +0000 Date: Wed, 4 Dec 2013 06:53:35 +0000 (UTC) From: "shenhong (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: =?utf-8?Q?[jira]_[Commented]_(YARN-1472)_Te?= =?utf-8?Q?stCase_failed_at_username_with_=E2=80=9C.=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-1472?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13838= 669#comment-13838669 ]=20 shenhong commented on YARN-1472: -------------------------------- The reason is at org.apache.hadoop.security.authorize.ProxyUsers: {code} String regex =3D CONF_HADOOP_PROXYUSER_RE+"[^.]*\\"+CONF_GROUPS; Map allMatchKeys =3D conf.getValByRegex(regex); for(Entry entry : allMatchKeys.entrySet()) { proxyGroups.put(entry.getKey(),=20 StringUtils.getStringCollection(entry.getValue())); } {code} regex is only user without "." , Why ? > TestCase failed at username with =E2=80=9C.=E2=80=9D > ------------------------------------ > > 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=3DTestFileSystemAccessService#createFileSystem > {code} > it will failed with exception : > {code} > org.apache.hadoop.ipc.RemoteException: User: yuling.sh is not allowed to = impersonate u > =09at org.apache.hadoop.ipc.Client.call(Client.java:1412) > =09at org.apache.hadoop.ipc.Client.call(Client.java:1365) > =09at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcE= ngine.java:212) > =09at $Proxy17.mkdirs(Unknown Source) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:39) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:25) > =09at java.lang.reflect.Method.invoke(Method.java:597) > ... > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)