[
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,
Thanks for your reply.
I am using the following code snippet -
conf = HBaseConfiguration.create();
conf.set("hbase.zookeeper.quorum", "<ip address or hostname>");
conf.set("hbase.zookeeper.property.clientPort","2181");
conf.set("hbase.master", "<ip address or hostname>:60000");
But this is throwing the above mentioned error.
I included the hbase-site.xml in my maven project, but probablt it is
not getting picked up.
Can we set the parameters in the code as above?
If yes am I missing any parameters?
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
>
>
> 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)