accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rukshan Chathuranga <>
Subject Re: How to get the first key of the Tablet servers
Date Tue, 16 Jun 2015 06:33:27 GMT

yes i mean the tablets.

And i need the Key object for some implementation on Geowave.

I tried as you said. But i get the Exception
"org.apache.accumulo.core.client.AccumuloSecurityException: Error
BAD_AUTHORIZATIONS for user root on table t1(ID:1) - The user does not have
the specified authorizations assigned"

I am using miniAccumuloCluster. Do you know how to set the authorization?

Thanks and Regards.

*Rukshan Chathuranga.*

*Department Of Computer Science & Engineering,*

*Faculty Of Engineering,*
*University Of Moratuwa. **Sri Lanka.*

*WEB: <>*

On Tue, Jun 16, 2015 at 10:54 AM, Josh Elser <> wrote:

> Not sure I understand your question. Do you mean of a Tablet instead of
> TabletServer? A TabletServer will host many Tablets.
> Assuming so, the easiest way to get the first key for each Tablet is to
> fetch the split points for a table. The split points are the end-row of
> each Tablet in a table.
> Then, to get the first keys in each Tablet, construct a `new
> Range($endRow)`, open a Scanner and fetch the first Key. Make sure you also
> do this with `new Range()` as well to get the first Key in the first Tablet
> for the table (the Tablet which starts at -inf).
> There is no easy way that I can think of to determine what the last key in
> a Tablet is. What is the reason that you want to explicitly know this?
> Maybe there is a different to do what you're trying to do?
> - Josh
> Rukshan Chathuranga wrote:
>> hi,
>> Does anyone know how to get the first or last key of the tablet servers?
>> Thanks and Regards.
>> /Rukshan Chathuranga./
>> /Department Of Computer Science & Engineering,
>> /
>> /Faculty Of Engineering,
>> /
>> /University Of Moratuwa. //Sri Lanka./
>> /WEB: <>
>> /

View raw message