hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Marc Spaggiari (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-12083) Deprecate new HBaseAdmin() in favor of Connection.getAdmin()
Date Wed, 24 Sep 2014 18:23:35 GMT

    [ https://issues.apache.org/jira/browse/HBASE-12083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14146674#comment-14146674
] 

Jean-Marc Spaggiari commented on HBASE-12083:
---------------------------------------------

While you are on all those modifcations, even if not related to current JIRA, might be nice
to have something like
{code}
ConnectionFactory.createConnection();
{code}

Which create a connection with a default config.

A shortcut for
{code}
    Configuration conf = HBaseConfiguration.create();
    Connection connection = ConnectionFactory.createConnection(conf);
    HBaseAdmin admin = (HBaseAdmin)connection.getAdmin();
{code}

> Deprecate new HBaseAdmin() in favor of Connection.getAdmin()
> ------------------------------------------------------------
>
>                 Key: HBASE-12083
>                 URL: https://issues.apache.org/jira/browse/HBASE-12083
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Solomon Duskis
>            Assignee: Solomon Duskis
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message