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

yogesh bedekar commented on HBASE-7623:
---------------------------------------

Hi,

I am using hbase-0.94.8.jar and getting the following exception while 
trying to connect -

WARN client.HConnectionManager: Error obtaining current user, skipping 
username in HConnectionKey
java.io.IOException: failure to login
     at 
org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:490)
     at 
org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:452)
     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)
     at org.apache.hadoop.hbase.util.Methods.call(Methods.java:37)
     at org.apache.hadoop.hbase.security.User.call(User.java:607)
     at org.apache.hadoop.hbase.security.User.callStatic(User.java:597)
     at org.apache.hadoop.hbase.security.User.access$400(User.java:51)
     at 
org.apache.hadoop.hbase.security.User$SecureHadoopUser.<init>(User.java:414)
     at 
org.apache.hadoop.hbase.security.User$SecureHadoopUser.<init>(User.java:409)
     at org.apache.hadoop.hbase.security.User.getCurrent(User.java:157)

What is the solution to this problem?
I have embedded this hbase jar in an osgi bundle and am unable to 
connect to my HBase database.

Thanks in advance for any help.

Rgds,
Yogesh Bedekar
Technical Lead
Oracle


                
> Username is not available for HConnectionManager to use in HConnectionKey
> -------------------------------------------------------------------------
>
>                 Key: HBASE-7623
>                 URL: https://issues.apache.org/jira/browse/HBASE-7623
>             Project: HBase
>          Issue Type: Improvement
>          Components: Client, security
>            Reporter: Jimmy Xiang
>            Assignee: Jimmy Xiang
>            Priority: Minor
>         Attachments: trunk-7623.patch
>
>
> Sometimes, some non-IOException prevents User.getCurrent() to get a username. 
>  It makes it impossible to create a HConnection.  We should catch all 
> exception here:
> {noformat}
>       try {
>         User currentUser = User.getCurrent();
>         if (currentUser != null) {
>           username = currentUser.getName();
>         }
>       } catch (IOException ioe) {
>         LOG.warn("Error obtaining current user, skipping username in 
> HConnectionKey",
>             ioe);
>       }
> {noformat}
> Not just IOException, so that client can move forward.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to