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 Fri, 16 May 2014 22:21:23 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 Jimmy,

I confirmed that hbase-site.xml is on the classpath and that the 
properties are being read from it using conf.get("<property name").

It has the following entries currently :-

  <property>
     <name>hbase.defaults.for.version</name>
     <value>0.94.8-SNAPSHOT</value>
   </property>

   <property>
     <name>hbase.defaults.for.version.skip</name>
     <value>true</value>
   </property>
    <property>
     <name>hbase.zookeeper.quorum</name>
     <value>hostname</value>
     <description>The directory shared by RegionServers.
     </description>
   </property>
    <property>
     <name>hbase.zookeeper.property.clientPort</name>
     <value>2181</value>
     <description>The directory shared by RegionServers.
     </description>
   </property>
    <property>
     <name>hbase.master</name>
     <value>hostname:60000</value>
     <description>The directory shared by RegionServers.
     </description>
   </property>
   <property>
   <name>hbase.rootdir</name>
   <value>hdfs://hostname:8020/hbase</value>
</property>

Please let me know what could be missing here.

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
>
>
> 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