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 D982111C60 for ; Tue, 15 Jul 2014 09:53:05 +0000 (UTC) Received: (qmail 27351 invoked by uid 500); 15 Jul 2014 09:53:05 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 27244 invoked by uid 500); 15 Jul 2014 09:53:05 -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 26943 invoked by uid 99); 15 Jul 2014 09:53:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2014 09:53:05 +0000 Date: Tue, 15 Jul 2014 09:53:05 +0000 (UTC) From: "Qiang Tian (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-11518) doc update for how to create non-shared HConnection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Qiang Tian created HBASE-11518: ---------------------------------- Summary: doc update for how to create non-shared HConnection Key: HBASE-11518 URL: https://issues.apache.org/jira/browse/HBASE-11518 Project: HBase Issue Type: Bug Components: documentation Affects Versions: 0.98.4, 0.94.21 Reporter: Qiang Tian Assignee: Qiang Tian Priority: Minor creation for non-shared connections has changed since hbase-3777, but the doc still remains the same... a simple test program: public class testHbase2{ public static void main(String[] args) throws Exception { Configuration conf = HBaseConfiguration.create(); conf.set("hbase.zookeeper.quorum","localhost"); conf.set("hbase.zookeeper.property.clientPort", "2181"); conf.set("hbase.client.instance.id", "2"); HBaseAdmin admin = new HBaseAdmin(conf); conf.set("hbase.client.instance.id", "3"); HBaseAdmin admin2 = new HBaseAdmin(conf); } } public static HConnection getConnection(final Configuration conf) throws IOException { HConnectionKey connectionKey = new HConnectionKey(conf); LOG.info("###create new connectionkey: " + connectionKey); synchronized (CONNECTION_INSTANCES) { 14/07/15 18:06:08 INFO client.HConnectionManager: ###create new connectionkey: HConnectionKey{properties={hbase.rpc.timeout=600000, hbase.client.instance.id=2, hbase.zookeeper.quorum=localhost, hbase.client.pause=100, hbase.zookeeper.property.clientPort=2181, zookeeper.znode.parent=/hbase, hbase.client.retries.number=35}, username='tianq'} 14/07/15 18:06:08 INFO client.HConnectionManager: ###create new connection### 14/07/15 18:06:08 INFO zookeeper.RecoverableZooKeeper: Process identifier=hconnection-0x3d7c3d7c connecting to ZooKeeper ensemble=localhost:2181 14/07/15 18:06:09 INFO client.HConnectionManager: ###create new connectionkey: HConnectionKey{properties={hbase.rpc.timeout=600000, hbase.client.instance.id=3, hbase.zookeeper.quorum=localhost, hbase.client.pause=100, hbase.zookeeper.property.clientPort=2181, zookeeper.znode.parent=/hbase, hbase.client.retries.number=35}, username='tianq'} 14/07/15 18:06:09 INFO client.HConnectionManager: ###create new connection### 14/07/15 18:06:09 INFO zookeeper.RecoverableZooKeeper: Process identifier=hconnection-0xd460d46 connecting to ZooKeeper ensemble=localhost:2181 -- This message was sent by Atlassian JIRA (v6.2#6252)