hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krishna Kalyan <krishnakaly...@gmail.com>
Subject Re: Hbase Timestamp Queries
Date Wed, 10 Jun 2015 07:41:01 GMT
Hi Talat,
That should should work.
Another example would be something like below.

test  = LOAD '$TEST'
USING org.apache.pig.backend.hadoop.hbase.HBaseStorage('cf_data:name
cf_data:age', '-loadKey true -maxTimestamp $test_date')
as (age);


On Wed, Jun 10, 2015 at 12:57 PM, Talat Uyarer <talat@uyarer.com> wrote:

> Hi Ted Yu,
>
> I guess Krishna mention about Pig's HBaseStorage class. I found out
> this by searching the class on google. IMHO I find a solution for my
> problem. I can use Scan.setTimeRange[0] method. If I want to get
> smaller records from timestamp, minTimestamp is set 0 and maxtimestamp
> is set the timestamp. I guess this solution works for my problem.
>
> Thanks Ted and Krishna.
>
> [0]
> https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/Scan.html#setTimeRange(long,%20long)
>
> 2015-06-09 16:08 GMT+03:00 Ted Yu <yuzhihong@gmail.com>:
> > Is HBaseStorage class in hbase repo ?
> >
> > I can't find it in 0.98 or hbase-1 branches.
> >
> > Cheers
> >
> > On Tue, Jun 9, 2015 at 3:51 AM, Krishna Kalyan <krishnakalyan3@gmail.com
> >
> > wrote:
> >
> >> Yes you can. Have a look at the HBaseStorage class.
> >> On 9 Jun 2015 1:04 pm, "Talat Uyarer" <talat@uyarer.com> wrote:
> >>
> >> > Hi,
> >> >
> >> > Can I use HBase's timestamps to gettting rows greater/smaller than
> >> > this timestamp . Is it possible ?
> >> >
> >> > Thanks
> >> >
> >> > --
> >> > Talat UYARER
> >> > Websitesi: http://talat.uyarer.com
> >> > Twitter: http://twitter.com/talatuyarer
> >> > Linkedin: http://tr.linkedin.com/pub/talat-uyarer/10/142/304
> >> >
> >>
>
>
>
> --
> Talat UYARER
> Websitesi: http://talat.uyarer.com
> Twitter: http://twitter.com/talatuyarer
> Linkedin: http://tr.linkedin.com/pub/talat-uyarer/10/142/304
>

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