Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4FB9C11838 for ; Fri, 19 Sep 2014 23:05:35 +0000 (UTC) Received: (qmail 66155 invoked by uid 500); 19 Sep 2014 23:05:35 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 66075 invoked by uid 500); 19 Sep 2014 23:05:34 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 65884 invoked by uid 99); 19 Sep 2014 23:05:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Sep 2014 23:05:34 +0000 Date: Fri, 19 Sep 2014 23:05:34 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-12033) SecurityUtil#doAsLoginUser is absent in hadoop-1, making AccessController#postCreateTableHandler() ineffective MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-12033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14141507#comment-14141507 ] Ted Yu commented on HBASE-12033: -------------------------------- Ran the following 3 tests which failed in HBase-0.98-on-Hadoop-1.1 build #497: {code} 2033 mt -Dhadoop.profile=1.1 -Dtest=TestAccessController 2037 mt -Dhadoop.profile=1.1 -Dtest=TestCellACLWithMultipleVersions 2038 mt -Dhadoop.profile=1.1 -Dtest=TestCellACLs {code} They passed. > SecurityUtil#doAsLoginUser is absent in hadoop-1, making AccessController#postCreateTableHandler() ineffective > -------------------------------------------------------------------------------------------------------------- > > Key: HBASE-12033 > URL: https://issues.apache.org/jira/browse/HBASE-12033 > Project: HBase > Issue Type: Bug > Affects Versions: 0.98.6 > Reporter: Ted Yu > Assignee: Ted Yu > Fix For: 0.98.7 > > Attachments: 12033-0.98.txt > > > This affects build against hadoop-1 only. > From https://builds.apache.org/job/HBase-0.98-on-Hadoop-1.1/497/testReport/junit/org.apache.hadoop.hbase.security.access/TestAccessController/testSplit/ : > {code} > 2014-09-16 22:47:05,526 ERROR [MASTER_TABLE_OPERATIONS-asf911:60077-0] handler.CreateTableHandler(180): Error trying to create the table testSplit > java.io.IOException: java.lang.IllegalArgumentException: Can't find method doAsLoginUser in org.apache.hadoop.security.SecurityUtil! > at org.apache.hadoop.hbase.security.User.runAsLoginUser(User.java:182) > at org.apache.hadoop.hbase.security.access.AccessController.postCreateTableHandler(AccessController.java:917) > at org.apache.hadoop.hbase.master.MasterCoprocessorHost$10.call(MasterCoprocessorHost.java:183) > at org.apache.hadoop.hbase.master.MasterCoprocessorHost.execOperation(MasterCoprocessorHost.java:801) > at org.apache.hadoop.hbase.master.MasterCoprocessorHost.postCreateTableHandler(MasterCoprocessorHost.java:179) > at org.apache.hadoop.hbase.master.handler.CreateTableHandler$1.run(CreateTableHandler.java:174) > at org.apache.hadoop.hbase.master.handler.CreateTableHandler$1.run(CreateTableHandler.java:171) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:396) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190) > at org.apache.hadoop.hbase.security.User$SecureHadoopUser.runAs(User.java:287) > at org.apache.hadoop.hbase.master.handler.CreateTableHandler.process(CreateTableHandler.java:171) > at org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:128) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:662) > Caused by: java.lang.IllegalArgumentException: Can't find method doAsLoginUser in org.apache.hadoop.security.SecurityUtil! > at org.apache.hadoop.hbase.util.Methods.call(Methods.java:45) > at org.apache.hadoop.hbase.security.User.runAsLoginUser(User.java:180) > ... 15 more > Caused by: java.lang.NoSuchMethodException: org.apache.hadoop.security.SecurityUtil.doAsLoginUser(java.security.PrivilegedExceptionAction) > at java.lang.Class.getMethod(Class.java:1607) > at org.apache.hadoop.hbase.util.Methods.call(Methods.java:38) > ... 16 more > {code} > We can bring the code from SecurityUtil#doAsLoginUser into hbase codebase. -- This message was sent by Atlassian JIRA (v6.3.4#6332)