You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Nishanth S <ni...@gmail.com> on 2014/08/22 17:41:11 UTC
Time Series Report generation in hbase
Hi everyone,
We have an hbase implementation where we have a single table which stores
different types of log messages.We have a requirement to notify (send
email to mailing list) when we receive a particular type of message.I will
be able to able to identify this type of message by looking at one of the
column values which we populate.I would need to do this every hour and
send the cumulative result.Could you please point me in the right
direction on what would be the best way to implement this?
Hbase Table
cf:family 1,cf:family 2
c1,c2,c3
If value of c1='x' I need to notify.Let me know if you need more
information on this.
Thanks
-Nishan
Re: Time Series Report generation in hbase
Posted by Nishanth S <ni...@gmail.com>.
Thanks Ted.I will definetly take a look at these.
-Nishanth
On Fri, Aug 22, 2014 at 10:11 AM, Ted Yu <yu...@gmail.com> wrote:
> You can utilize the following method in Scan :
>
> public Scan setTimeRange(long minStamp, long maxStamp)
>
> since you're doing periodic scanning.
>
> Also take a look at HBASE-5416 which introduced essential column family.
>
> Cheers
>
>
> On Fri, Aug 22, 2014 at 8:41 AM, Nishanth S <ni...@gmail.com>
> wrote:
>
> > Hi everyone,
> >
> > We have an hbase implementation where we have a single table which
> stores
> > different types of log messages.We have a requirement to notify (send
> > email to mailing list) when we receive a particular type of message.I
> will
> > be able to able to identify this type of message by looking at one of the
> > column values which we populate.I would need to do this every hour and
> > send the cumulative result.Could you please point me in the right
> > direction on what would be the best way to implement this?
> >
> >
> > Hbase Table
> >
> > cf:family 1,cf:family 2
> >
> > c1,c2,c3
> >
> > If value of c1='x' I need to notify.Let me know if you need more
> > information on this.
> >
> > Thanks
> > -Nishan
> >
>
Re: Time Series Report generation in hbase
Posted by Ted Yu <yu...@gmail.com>.
You can utilize the following method in Scan :
public Scan setTimeRange(long minStamp, long maxStamp)
since you're doing periodic scanning.
Also take a look at HBASE-5416 which introduced essential column family.
Cheers
On Fri, Aug 22, 2014 at 8:41 AM, Nishanth S <ni...@gmail.com> wrote:
> Hi everyone,
>
> We have an hbase implementation where we have a single table which stores
> different types of log messages.We have a requirement to notify (send
> email to mailing list) when we receive a particular type of message.I will
> be able to able to identify this type of message by looking at one of the
> column values which we populate.I would need to do this every hour and
> send the cumulative result.Could you please point me in the right
> direction on what would be the best way to implement this?
>
>
> Hbase Table
>
> cf:family 1,cf:family 2
>
> c1,c2,c3
>
> If value of c1='x' I need to notify.Let me know if you need more
> information on this.
>
> Thanks
> -Nishan
>