[
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
Thanks, Jimmy. I sent an email to [email protected].
Meanwhile I notice the following from the decompiled code :-
The class apache.zookeeper.ClientCnxn tries to initiate client
connection as follows -
ClientCnxn.this.zooKeeperSaslClient = new
ZooKeeperSaslClient("zookeeper/" + addr.getHostName());
and ZooKeeperSaslClient has -
String clientSection = System.getProperty("zookeeper.sasl.clientconfig",
"Client");
AppConfigurationEntry[] entries = null;
SecurityException securityException = null;
try
{
entries =
Configuration.getConfiguration().getAppConfigurationEntry(clientSection);
}
catch (SecurityException e)
{
securityException = e;
}
I think this is throwing the exception -
java.lang.IllegalArgumentException: No Configuration was registered that
can handle the configuration named Client .
I am not sure why the property 'zookeeper.sasl.clientconfig' needs to be
set when we are not using security.
Thanks,
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,
> yogesh_bedekar.vcf, yogesh_bedekar.vcf, yogesh_bedekar.vcf, 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)