[
https://issues.apache.org/jira/browse/HBASE-11518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063071#comment-14063071
]
Qiang Tian commented on HBASE-11518:
------------------------------------
Hi [[email protected]] ,
could you please take a look?
the command is "patch -p1", not "-p0"?
thanks.
https://builds.apache.org/job/PreCommit-HBASE-Build/10078//console:
Looks like this is a git patch. Stripping a/ and b/ prefixes
and incrementing PLEVEL
Going to apply patch with: /usr/bin/patch -p1
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git
hbase-client/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
hbase-client/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
> 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.94.21, 0.98.4
> Reporter: Qiang Tian
> Assignee: Qiang Tian
> Priority: Minor
> Attachments: hbase-11518-master.patch
>
>
> 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)