hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anoop Sam John (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-10700) IntegrationTestWithCellVisibilityLoadAndVerify should allow current user to be the admin
Date Sat, 08 Mar 2014 04:44:42 GMT

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

Anoop Sam John commented on HBASE-10700:
----------------------------------------

{code}
+    String currUser = User.getCurrent().getName();
+    String adminName = !currUser.equals("admin") ? currUser : "admin";
{code}
This will be same as saying adminName  =   User.getCurrent().getName()  (?)

String adminName = User.getCurrent().getName();
And other changes of urs will make it work for you I think.  So that will be good to go. 
 (And we have to run it as hbase user)

Thanks for finding the issue and the patch.


> IntegrationTestWithCellVisibilityLoadAndVerify should allow current user to be the admin
> ----------------------------------------------------------------------------------------
>
>                 Key: HBASE-10700
>                 URL: https://issues.apache.org/jira/browse/HBASE-10700
>             Project: HBase
>          Issue Type: Task
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>         Attachments: 10700-v1.txt
>
>
> When we ran IntegrationTestWithCellVisibilityLoadAndVerify on secure cluster, we observed:
> {code}
> 2014-03-06 05:00:29,210|beaver.machine|INFO|2014-03-06 05:00:29,209 WARN  [main] security.UserGroupInformation:
PriviledgedActionException as:admin (auth:SIMPLE) cause:org.apache.hadoop.security.AccessControlException:
Client cannot authenticate via:[TOKEN, KERBEROS]
> 2014-03-06 05:00:29,211|beaver.machine|INFO|2014-03-06 05:00:29,211 WARN  [main] ipc.Client:
Exception encountered while connecting to the server : org.apache.hadoop.security.AccessControlException:
Client cannot authenticate via:[TOKEN, KERBEROS]
> 2014-03-06 05:00:29,211|beaver.machine|INFO|2014-03-06 05:00:29,211 WARN  [main] security.UserGroupInformation:
PriviledgedActionException as:admin (auth:SIMPLE) cause:java.io.IOException: org.apache.hadoop.security.AccessControlException:
Client cannot authenticate via:[TOKEN, KERBEROS]
> 2014-03-06 05:00:29,214|beaver.machine|INFO|2014-03-06 05:00:29,214 WARN  [main] security.UserGroupInformation:
PriviledgedActionException as:admin (auth:SIMPLE) cause:java.io.IOException: Failed on local
exception: java.io.IOException: org.apache.hadoop.security.AccessControlException: Client
cannot authenticate via:[TOKEN, KERBEROS]; Host Details : local host is: "17n27.net/206.190.52.46";
destination host is: "17n26.net":8020;
> {code}
> This was due to the test using "admin" as super user but this user wasn't setup on secure
cluster.
> user "hbase" has been setup and was used to run the test.
> The test should use current user to be the admin, if it is different from "admin".



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

Mime
View raw message