Re: Question about open table

2016-04-10 Thread Yu Li
If using HBase 1.x, please make sure to reuse the connection since creating connection is expensive. More specified, don't call {{ConnectionFactory.createConnection}} (the 1.x recommended way) multiple times but only once and share it among threads, while {{HConnectionManager#getConnection}} (the

Re: choosing between hbase-spark / spark-hbase

2016-04-10 Thread Ted Yu
For 2.0.0-SNAPSHOT version, you should build trunk by yourself. For 1.2.0-cdh5.7.0 , please contact cdh mailing list. On Sun, Apr 10, 2016 at 7:09 PM, yeshwanth kumar wrote: > Thank you for the reply, > > i am having trouble in finding out the dependency in maven

Re: choosing between hbase-spark / spark-hbase

2016-04-10 Thread yeshwanth kumar
Thank you for the reply, i am having trouble in finding out the dependency in maven repository, the only dependency i can find is org.apache.hbase hbase-spark 1.2.0-cdh5.7.0 from cloudera maven repository, dependency specified in this page, was not able to resolve

RE: Question about open table

2016-04-10 Thread Yi Jiang
Hi, Ted Thanks for help. The getConnection is just a simple getter method.public Connection getConnection(){return connection;} I have configured my connection in constructor. Jacky -Original Message- From: Ted Yu [mailto:yuzhih...@gmail.com] Sent: Saturday, April 09, 2016 11:03 AM To: