What do you mean by "finish the HBase client"?

If you turn off auto-flush, this means that every time you do HTable.put(Put) 
you are just adding to an internal, client-side buffer.  When you are done with 
insertions and you want them to be persisted into HBase, you must say that you 
are done in some way with HTable.close() or HTable.flushCommits().

Does that answer your question?

JG

> -----Original Message-----
> From: Vidhyashankar Venkataraman [mailto:[email protected]]
> Sent: Tuesday, June 08, 2010 2:29 PM
> To: [email protected]
> Subject: Re: Reads of a recently written/modified value
> 
> A related question to the previous mail is if I have to use
> flushCommits every time I finish the Hbase client?
> 
> Thank you
> Vidhya
> 
> On 6/8/10 2:03 PM, "Ryan Rawson" <[email protected]> wrote:
> 
> Turning auto flush off will cause the client to accumulate puts without
> sending them to the server. Gets and scans only talk to the server and
> thus
> ignore the client write cache.
> 
> On Jun 8, 2010 1:55 PM, "Vidhyashankar Venkataraman" <vidhy...@yahoo-
> inc.com>
> wrote:
> I was trying to execute some operations on a Hbase instance. After
> performing a dozen write operations (with auto flush not set), Hbase
> could
> not read the inserted/modified records successfully (using the Get
> operations).
>  But with auto flush set and after writing the records, I could read
> the
> records.
> 
>  However, in either case, I could get delete operations successfully
> done.
> 
>   Is it because the read operations arent reading from the memory? Can
> you
> guys let me know if I am missing something?
> 
> 
> Vidhya

Reply via email to