Re: Re: How to solve the problem of bulk load data is overwritten

2012-01-07 Thread Suraj Varma
I'm interpreting your question as "I bulk loaded multiple versions of a row, but when I issue a get I only get one version back ...". If so - use Get#setMaxVersions() api to the required number to get multiple versions back. If the above interpretation is wrong ... please clarify what you were ex

RE: median aggregate Was: AggregateProtocol Help

2012-01-07 Thread Tom Wilcox
Forgive me if this is stating the obvious (I just want to understand this better), but a naive approach to hist would surely just be a 2-pass algorithm where the first pass gathers statistics such as the range. Those statistics could be cached for subsequent requests that are also "range-depende

How to put big 2D-Integer-array into HBase?

2012-01-07 Thread Christian Schäfer
Hi, I'm using HBase-Java-API to do some simple puts like this: Put p.add(Bytes.toBytes(FAMILY_NAME), Bytes.toBytes(COLUMN), Bytes.toBytes(VALUE)); Now I have an 2D Integer array (640*480 elements).How to get that into HBase? I tried this: http://pastebin.com/WffGkebZ Any suggestions, please?

Capturing RegionServerMetrics during inserts

2012-01-07 Thread Christian Schäfer
Hello, I want to measure requests per second for each Region Server during inserts on a table that is spread over this Region Servers. So during inserts I run local java app to grab the Region Server metrics: public void getRegionServerMetrics() throws Exception{ HBaseAdmin admin = n

Re: How to put big 2D-Integer-array into HBase?

2012-01-07 Thread Li Pi
By 2d integer array, do you mean image? If so, why not store it as a blob? On Sat, Jan 7, 2012 at 7:53 AM, Christian Schäfer wrote: > > Hi, > I'm using HBase-Java-API to do some simple puts like this: > > Put p.add(Bytes.toBytes(FAMILY_NAME), Bytes.toBytes(COLUMN), > Bytes.toBytes(VALUE)); > > N