Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0716A10874 for ; Wed, 26 Nov 2014 17:32:14 +0000 (UTC) Received: (qmail 54579 invoked by uid 500); 26 Nov 2014 17:32:13 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 54457 invoked by uid 500); 26 Nov 2014 17:32:13 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 54131 invoked by uid 99); 26 Nov 2014 17:32:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2014 17:32:13 +0000 Date: Wed, 26 Nov 2014 17:32:13 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HBASE-12400) Fix refguide so it does connection#getTable rather than new HTable everywhere: first cut! 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-12400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack resolved HBASE-12400. --------------------------- Resolution: Fixed I committed the attached patch. Filed HBASE-12585 for more thorough fixup. > Fix refguide so it does connection#getTable rather than new HTable everywhere: first cut! > ----------------------------------------------------------------------------------------- > > Key: HBASE-12400 > URL: https://issues.apache.org/jira/browse/HBASE-12400 > Project: HBase > Issue Type: Sub-task > Components: documentation > Reporter: stack > Assignee: Stephen Yuan Jiang > Fix For: 2.0.0, 0.99.2 > > Attachments: 12400.txt, doc.txt > > > The refguide has bits of code in it. The code does 'new HTable' to get a table instance. Rather, it should be promoting the new style where we get a Connection and then do a getTable on it. Ditto for references to 'new HBaseAdmin'. See ConnectionFactory for new style. See also package-info.java in Client for updated example. > Misty, if you are game for this one, I can help w/ how it should look. -- This message was sent by Atlassian JIRA (v6.3.4#6332)