hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: InternalScanner seems in perpetual loop
Date Sun, 21 Jul 2013 05:40:47 GMT
Typo below: I meant aggregates such as avg, min, etc

One minor thing about Julius code: the following construct should be used
to close the scanner.

      } while (hasMoreRows);
    } finally {
      scanner.close();
    }

On Sat, Jul 20, 2013 at 10:20 PM, Ted Yu <yuzhihong@gmail.com> wrote:

> If you really want to try out InternalScanner, take a look
> at src/main/java/org/apache/hadoop/hbase/coprocessor/AggregateImplementation.java
> where you can see similar code for computing avg, mean aggregates.
>
> You can activate that endpoint to see if it works.
>
> Cheers
>
>
> On Sat, Jul 20, 2013 at 8:07 PM, Julius <jcplerm@ameritech.net> wrote:
>
>>
>>
>> Ted Yu <yuzhihong@...> writes:
>>
>> >
>> > Which release are you using ?
>> >
>> > If you put the code below in non-endpoint class, would you have the same
>> > result ?
>> >
>> > Cheers
>> >
>>
>>
>> I'm using HBase 0.94.
>>
>> The only way would be to move the code into a client program.
>> But then, I wouldn't even be able to make use of an InternalScanner, which
>> would turn out to be significantly different.
>>
>> Thanks.
>>
>>
>>
>>
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message