Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 99E10118E3 for ; Mon, 4 Aug 2014 23:35:13 +0000 (UTC) Received: (qmail 71346 invoked by uid 500); 4 Aug 2014 23:35:12 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 71201 invoked by uid 500); 4 Aug 2014 23:35:12 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 71076 invoked by uid 99); 4 Aug 2014 23:35:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2014 23:35:12 +0000 Date: Mon, 4 Aug 2014 23:35:12 +0000 (UTC) From: "Sean Busbey (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HBASE-11068) Update code to use Admin factory method instead of constructor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-11068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Busbey resolved HBASE-11068. --------------------------------- Resolution: Fixed closing again. looks like I passed in the night with Carter's new ticket and fix. > Update code to use Admin factory method instead of constructor > -------------------------------------------------------------- > > Key: HBASE-11068 > URL: https://issues.apache.org/jira/browse/HBASE-11068 > Project: HBase > Issue Type: Improvement > Affects Versions: 0.99.0 > Reporter: Carter > Assignee: Carter > Fix For: 0.99.0, 2.0.0 > > Attachments: HBASE_11068-branch-1-v2.patch, HBASE_11068.patch > > > Where feasible, the code should be updated to use the HConnection factory method for the admin interface. For instance, the following: > {code:java} > HBaseAdmin admin = new HBaseAdmin(conf); > {code} > would be changed to: > {code:java} > Admin admin = HConnectionManager.createConnection(conf).getAdmin(); > {code} > This would also require updates to admin calls that refer to a tablename as byte[] or String. > {code:java} > admin.enableTable("mytable"); > {code} > would change to: > {code:java} > admin.enableTable(TableName.valueOf("mytable")); > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)