hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yogesh bedekar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-7623) Username is not available for HConnectionManager to use in HConnectionKey
Date Wed, 14 May 2014 10:53:15 GMT

     [ https://issues.apache.org/jira/browse/HBASE-7623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

yogesh bedekar updated HBASE-7623:
----------------------------------

    Attachment: yogesh_bedekar.vcf

Hi ,

Could you please help us with the following issue for our HBase project :-

While trying to connect to HBase database using Java I am getting the 
following exception-

14/05/14 02:45:17 INFO zookeeper.ZooKeeper: Initiating client 
connection, connectString=blr2211457.idc.oracle.com:2182 
sessionTimeout=180000 watcher=hconnection
14/05/14 02:45:17 INFO zookeeper.RecoverableZooKeeper: The identifier of 
this process is 29532@blr2211457
14/05/14 02:45:17 WARN zookeeper.ClientCnxn: Session 0x0 for server 
null, unexpected error, closing socket connection and attempting reconnect
java.lang.IllegalArgumentException: No Configuration was registered that 
can handle the configuration named Client
     at 
com.bea.common.security.jdkutils.JAASConfiguration.getAppConfigurationEntry(JAASConfiguration.java:130)
     at 
org.apache.zookeeper.client.ZooKeeperSaslClient.<init>(ZooKeeperSaslClient.java:97)
     at 
org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:943)
     at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:993)
14/05/14 02:45:18 WARN zookeeper.RecoverableZooKeeper: Possibly 
transient ZooKeeper exception: 
org.apache.zookeeper.KeeperException$ConnectionLossException: 
KeeperErrorCode = ConnectionLoss for /hbase/hbaseid

I tried adding the following to hbase-site.xml but it didnt work-

    <property>
         <name>hbase.security.authorization</name>
         <value>false</value>
    </property>
    <property>
         <name>hbase.security.authentication</name>
         <value>simple</value>
     </property>


Thanks in advance.

Rgds,
Yogesh



> 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: pom.xml, trunk-7623.patch, yogesh_bedekar.vcf
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message