Re: Reading data for a particular column-cell with 2 or more values of a same row-key

2017-02-25 Thread Richard Startin
If you operate directly on a Result you only get the latest version of each cell. To get older versions of cells you have a few options: 1) Result::getFamilyMap, if you only want versioned cells from a single family -

Re: Parallel Scanner

2017-02-20 Thread Richard Startin
For a client only solution, have you looked at the RegionLocator interface? It gives you a list of pairs of byte[] (the start and stop keys for each region). You can easily use a ForkJoinPool recursive task or java 8 parallel stream over that list. I implemented a spark RDD to do that and wrote

Re: Doubt

2017-02-14 Thread Richard Startin
I took a look at https://www.linkedin.com/pulse/hbase-read-write-performance-conversation-gaurhari-dass?trk=prof-post Looks like an unattributed copy of

Re: Lease exception

2016-12-21 Thread Richard Startin
> > As far as I understand when scanner.next() is called it will fetch no > of rows as in *hbase.client.scanner.caching. *When this fetching > process takes more than lease period it will close the scanner object. > so this exception occuring? > > > Thanks, > > Rajeshku

Re: Lease exception

2016-12-21 Thread Richard Startin
It means your lease on a region server has expired during a call to resultscanner.next(). This happens on a slow call to next(). You can either embrace it or "fix" it by making sure hbase.rpc.timeout exceeds hbase.regionserver.lease.period. https://richardstartin.com On 21 Dec 2016, at 11:30,

Re: Storing XML file in Hbase

2016-11-28 Thread Richard Startin
on of data or any other property which may arise from relying on this email's technical content is explicitly disclaimed. The author will in no case be liable for any monetary damages arising from such loss, damage or destruction. On 28 November 2016 at 16:04, Richard Startin <richardsta

Re: Storing XML file in Hbase

2016-11-28 Thread Richard Startin
Hi Mich, If you want to store the file whole, you'll need to enforce a 10MB limit to the file size, otherwise you will flush too often (each time the me store fills up) which will slow down writes. Maybe you could deconstruct the xml by extracting columns from the xml using xpath? If the

Re: Hbase 1.2 connection pool in java

2016-11-24 Thread Richard Startin
Hi manjeet, I wrote about a connection pool I implemented at https://richardstartin.com/2016/11/05/hbase-connection-management/ Cheers, Richard Sent from my iPhone > On 24 Nov 2016, at 17:43, Manjeet Singh wrote: > > Hi All > > Cna anyone help me out on How to