You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "yogesh bedekar (JIRA)" <ji...@apache.org> on 2014/06/09 16:48:02 UTC
[jira] [Updated] (HBASE-7623) Username is not available for
HConnectionManager to use in HConnectionKey
[ 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 ,
I am no longer getting this error.
I changed my /etc/hosts file .
It now has the following entries :-
127.0.0.1 localhost localhost.localdomain
<ip> <hostname>.oracle.com <hostname>
However, I am now getting the following error -
14/06/09 07:19:45 INFO zookeeper.RecoverableZooKeeper: The identifier of
this process is 5055@blr2211457
14/06/09 07:19:45 INFO zookeeper.ClientCnxn: Opening socket connection
to server localhost/10.177.123.4:2181. Will not attempt to authenticate
using SASL (java.lang.IllegalArgumentException: No Configuration was
registered that can handle the configuration named Client)
14/06/09 07:19:45 INFO zookeeper.ClientCnxn: Socket connection
established to localhost/10.177.123.4:2181, initiating session
14/06/09 07:19:45 INFO zookeeper.ClientCnxn: Session establishment
complete on server localhost/10.177.123.4:2181, sessionid =
0x14680f5cc980008, negotiated timeout = 40000
Exception creating HBase connection: Unable to find region for
CustomerDescription,,99999999999999 after 10 tries.
Stack trace: org.apache.hadoop.hbase.client.NoServerForRegionException:
Unable to find region for CustomerDescription,,99999999999999 after 10
tries.
at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:991)
at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:896)
at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:998)
at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:900)
at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:857)
at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:233)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:173)
at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:132)
I can connect to the table named 'CustomerDescription' from the HBase shell.
Thanks in advance for any help on this issue.
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, 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)