You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Sean Busbey <bu...@cloudera.com> on 2015/05/26 18:28:24 UTC

Updating the YCSB client for HBase

Hi Folks!

I've recently become a maintainer on YCSB. We're looking to get a release
out in June (our first in several years). We'll probably begin release
candidates in a couple of weeks.

I'd really like to improve the experience of folks using HBase; the current
state of the datastore binding leaves much to be desired. Right now, people
can't even reliably run against multiple versions of HBase. I *think* only
using 1.0+ client jars works, regardless of old/new API usage. I'll find
out for sure in RC testing.

Unfortunately, my time on the project is quickly absorbed handling reviews
and community management efforts. I know a few folks in the HBase community
have made their own changes over the last few years. If folks could find
some time to rebase their forks for the current state of the master branch
and submit pull requests I'd be super grateful.

-- 
Sean

Re: Updating the YCSB client for HBase

Posted by Esteban Gutierrez <es...@cloudera.com>.
> Would
> appreciate feedback on them though, if you have some spare time.
> Interesting? Useful? Broken?
>


that is great stuff. I've ran into issues with the hard coded write buffer
and I ended up having a custom client that relies on the configured hbase
buffer size instead, but I think your patch covers more than what I was
doing initially.

thanks!
esteban.



>
>
> On Tue, May 26, 2015 at 9:54 AM, ramkrishna vasudevan <
> ramkrishna.s.vasudevan@gmail.com> wrote:
>
> > +1.  Reg the way YCSB works, I would say the first thing that we may need
> > is that the load should be evenly distributed after presplitting the
> > regions.  Most of the time it does not happen that way and only one among
> > the RS is heavily used.
> >
> > Regards
> > Ram
> >
> > On Tue, May 26, 2015 at 9:58 PM, Sean Busbey <bu...@cloudera.com>
> wrote:
> >
> > > Hi Folks!
> > >
> > > I've recently become a maintainer on YCSB. We're looking to get a
> release
> > > out in June (our first in several years). We'll probably begin release
> > > candidates in a couple of weeks.
> > >
> > > I'd really like to improve the experience of folks using HBase; the
> > current
> > > state of the datastore binding leaves much to be desired. Right now,
> > people
> > > can't even reliably run against multiple versions of HBase. I *think*
> > only
> > > using 1.0+ client jars works, regardless of old/new API usage. I'll
> find
> > > out for sure in RC testing.
> > >
> > > Unfortunately, my time on the project is quickly absorbed handling
> > reviews
> > > and community management efforts. I know a few folks in the HBase
> > community
> > > have made their own changes over the last few years. If folks could
> find
> > > some time to rebase their forks for the current state of the master
> > branch
> > > and submit pull requests I'd be super grateful.
> > >
> > > --
> > > Sean
> > >
> >
>
>
>
> --
> Best regards,
>
>    - Andy
>
> Problems worthy of attack prove their worth by hitting back. - Piet Hein
> (via Tom White)
>

Re: Updating the YCSB client for HBase

Posted by Andrew Purtell <ap...@apache.org>.
There are bigger issues with the current client than that. We buffer 12MB
of writes in N number of configured YCSB threads then send all N*12MB of
writes at the cluster more or less at the same time. While "writing" to the
buffer we report that as what YCSB expects to be round trip time.

I made a stab at rewriting the HBase client to use a single executor pool
and flyweight HTables:
https://github.com/apurtell/YCSB2/commits/new_hbase_client . I've tested
this up to commit https://github.com/apurtell/YCSB2/commit/595a8bc. The
next will size the executor pool proportinally to the size of the target
cluster and the number of YCSB "DB threads" configured for the test:
https://github.com/apurtell/YCSB2/commit/69bd11f

I don't think these changes are quite ready for a PR to YCSB. Would
appreciate feedback on them though, if you have some spare time.
Interesting? Useful? Broken?


On Tue, May 26, 2015 at 9:54 AM, ramkrishna vasudevan <
ramkrishna.s.vasudevan@gmail.com> wrote:

> +1.  Reg the way YCSB works, I would say the first thing that we may need
> is that the load should be evenly distributed after presplitting the
> regions.  Most of the time it does not happen that way and only one among
> the RS is heavily used.
>
> Regards
> Ram
>
> On Tue, May 26, 2015 at 9:58 PM, Sean Busbey <bu...@cloudera.com> wrote:
>
> > Hi Folks!
> >
> > I've recently become a maintainer on YCSB. We're looking to get a release
> > out in June (our first in several years). We'll probably begin release
> > candidates in a couple of weeks.
> >
> > I'd really like to improve the experience of folks using HBase; the
> current
> > state of the datastore binding leaves much to be desired. Right now,
> people
> > can't even reliably run against multiple versions of HBase. I *think*
> only
> > using 1.0+ client jars works, regardless of old/new API usage. I'll find
> > out for sure in RC testing.
> >
> > Unfortunately, my time on the project is quickly absorbed handling
> reviews
> > and community management efforts. I know a few folks in the HBase
> community
> > have made their own changes over the last few years. If folks could find
> > some time to rebase their forks for the current state of the master
> branch
> > and submit pull requests I'd be super grateful.
> >
> > --
> > Sean
> >
>



-- 
Best regards,

   - Andy

Problems worthy of attack prove their worth by hitting back. - Piet Hein
(via Tom White)

Re: Updating the YCSB client for HBase

Posted by Ted Yu <yu...@gmail.com>.
bq. only one among the RS is heavily used.

+1 on fixing the above. This problem makes ycsb write load less useful.

On Tue, May 26, 2015 at 9:54 AM, ramkrishna vasudevan <
ramkrishna.s.vasudevan@gmail.com> wrote:

> +1.  Reg the way YCSB works, I would say the first thing that we may need
> is that the load should be evenly distributed after presplitting the
> regions.  Most of the time it does not happen that way and only one among
> the RS is heavily used.
>
> Regards
> Ram
>
> On Tue, May 26, 2015 at 9:58 PM, Sean Busbey <bu...@cloudera.com> wrote:
>
> > Hi Folks!
> >
> > I've recently become a maintainer on YCSB. We're looking to get a release
> > out in June (our first in several years). We'll probably begin release
> > candidates in a couple of weeks.
> >
> > I'd really like to improve the experience of folks using HBase; the
> current
> > state of the datastore binding leaves much to be desired. Right now,
> people
> > can't even reliably run against multiple versions of HBase. I *think*
> only
> > using 1.0+ client jars works, regardless of old/new API usage. I'll find
> > out for sure in RC testing.
> >
> > Unfortunately, my time on the project is quickly absorbed handling
> reviews
> > and community management efforts. I know a few folks in the HBase
> community
> > have made their own changes over the last few years. If folks could find
> > some time to rebase their forks for the current state of the master
> branch
> > and submit pull requests I'd be super grateful.
> >
> > --
> > Sean
> >
>

Re: Updating the YCSB client for HBase

Posted by ramkrishna vasudevan <ra...@gmail.com>.
+1.  Reg the way YCSB works, I would say the first thing that we may need
is that the load should be evenly distributed after presplitting the
regions.  Most of the time it does not happen that way and only one among
the RS is heavily used.

Regards
Ram

On Tue, May 26, 2015 at 9:58 PM, Sean Busbey <bu...@cloudera.com> wrote:

> Hi Folks!
>
> I've recently become a maintainer on YCSB. We're looking to get a release
> out in June (our first in several years). We'll probably begin release
> candidates in a couple of weeks.
>
> I'd really like to improve the experience of folks using HBase; the current
> state of the datastore binding leaves much to be desired. Right now, people
> can't even reliably run against multiple versions of HBase. I *think* only
> using 1.0+ client jars works, regardless of old/new API usage. I'll find
> out for sure in RC testing.
>
> Unfortunately, my time on the project is quickly absorbed handling reviews
> and community management efforts. I know a few folks in the HBase community
> have made their own changes over the last few years. If folks could find
> some time to rebase their forks for the current state of the master branch
> and submit pull requests I'd be super grateful.
>
> --
> Sean
>

Re: Updating the YCSB client for HBase

Posted by Sean Busbey <bu...@cloudera.com>.
On Tue, May 26, 2015 at 11:44 AM, Aditya <ad...@apache.org> wrote:

> That's a great news Sean! Good to see some activity after a long time!
>
> Would you also be interested in accepting patches in the core module as
> well?
>
> Regards,
> aditya...
>
>
I'm happy to see changes anywhere.

There are two main considerations that are especially applicable to changes
to core:

* We're still in the process of documenting compatibility considerations,
but the presumption is pre-version 1.0 minor releases may be breaking. That
said, I still strongly doing things in a backwards compatible way

* There's still a substantial backlog of changes, so the more targeted you
can make the scope of a particular PR the easier it is to avoid conflicts
as the master branch shifts.



-- 
Sean

Re: Updating the YCSB client for HBase

Posted by Aditya <ad...@apache.org>.
That's a great news Sean! Good to see some activity after a long time!

Would you also be interested in accepting patches in the core module as
well?

Regards,
aditya...

On Tue, May 26, 2015 at 9:28 AM, Sean Busbey <bu...@cloudera.com> wrote:

> Hi Folks!
>
> I've recently become a maintainer on YCSB. We're looking to get a release
> out in June (our first in several years). We'll probably begin release
> candidates in a couple of weeks.
>
> I'd really like to improve the experience of folks using HBase; the current
> state of the datastore binding leaves much to be desired. Right now, people
> can't even reliably run against multiple versions of HBase. I *think* only
> using 1.0+ client jars works, regardless of old/new API usage. I'll find
> out for sure in RC testing.
>
> Unfortunately, my time on the project is quickly absorbed handling reviews
> and community management efforts. I know a few folks in the HBase community
> have made their own changes over the last few years. If folks could find
> some time to rebase their forks for the current state of the master branch
> and submit pull requests I'd be super grateful.
>
> --
> Sean
>

Re: Updating the YCSB client for HBase

Posted by Vladimir Rodionov <vl...@gmail.com>.
Here it is:
https://github.com/brianfrankcooper/YCSB/issues/264

On Tue, May 26, 2015 at 10:25 AM, Sean Busbey <bu...@cloudera.com> wrote:

> On Tue, May 26, 2015 at 12:21 PM, Vladimir Rodionov <
> vladrodionov@gmail.com>
> wrote:
>
> > One suggestion:
> >
> > Can we move from simplistic scenarios towards more realistic ones? When
> > client - server interaction can involve server-side
> > processing as well? HBase is good at that.
> >
> > One example: credit card fraud application which usually, for every
> > transaction, involves analyzing client TXs for past xx months as well
> > as verification of a vendor (simplistic description but nevertheless
> ...)?
> >
> > Another example: sensor data stream -> server calculates and updates
> > multiple aggregates for every sensor reading.
> >
> > -Vlad
> >
> >
>
> I'd love to see more realistic workloads represented. We'd have to come up
> with a reasonable abstraction that could be implemented by the different
> datastore projects. My guess is this will take some discussion. Care to
> open up an issue on the github repo[1]?
>
>
>
> [1]: https://github.com/brianfrankcooper/YCSB/issues
>
> --
> Sean
>

Re: Updating the YCSB client for HBase

Posted by Sean Busbey <bu...@cloudera.com>.
On Tue, May 26, 2015 at 12:21 PM, Vladimir Rodionov <vl...@gmail.com>
wrote:

> One suggestion:
>
> Can we move from simplistic scenarios towards more realistic ones? When
> client - server interaction can involve server-side
> processing as well? HBase is good at that.
>
> One example: credit card fraud application which usually, for every
> transaction, involves analyzing client TXs for past xx months as well
> as verification of a vendor (simplistic description but nevertheless ...)?
>
> Another example: sensor data stream -> server calculates and updates
> multiple aggregates for every sensor reading.
>
> -Vlad
>
>

I'd love to see more realistic workloads represented. We'd have to come up
with a reasonable abstraction that could be implemented by the different
datastore projects. My guess is this will take some discussion. Care to
open up an issue on the github repo[1]?



[1]: https://github.com/brianfrankcooper/YCSB/issues

-- 
Sean

Re: Updating the YCSB client for HBase

Posted by Vladimir Rodionov <vl...@gmail.com>.
One suggestion:

Can we move from simplistic scenarios towards more realistic ones? When
client - server interaction can involve server-side
processing as well? HBase is good at that.

One example: credit card fraud application which usually, for every
transaction, involves analyzing client TXs for past xx months as well
as verification of a vendor (simplistic description but nevertheless ...)?

Another example: sensor data stream -> server calculates and updates
multiple aggregates for every sensor reading.

-Vlad


On Tue, May 26, 2015 at 10:03 AM, Sean Busbey <bu...@cloudera.com> wrote:

> I should note that the other maintainer and I are planning on a monthly
> release cadence going forward, so folks need not worry that this will be
> the only release gate for years to come.
>
> On Tue, May 26, 2015 at 11:28 AM, Sean Busbey <bu...@cloudera.com> wrote:
>
> > Hi Folks!
> >
> > I've recently become a maintainer on YCSB. We're looking to get a release
> > out in June (our first in several years). We'll probably begin release
> > candidates in a couple of weeks.
> >
> > I'd really like to improve the experience of folks using HBase; the
> > current state of the datastore binding leaves much to be desired. Right
> > now, people can't even reliably run against multiple versions of HBase. I
> > *think* only using 1.0+ client jars works, regardless of old/new API
> usage.
> > I'll find out for sure in RC testing.
> >
> > Unfortunately, my time on the project is quickly absorbed handling
> reviews
> > and community management efforts. I know a few folks in the HBase
> community
> > have made their own changes over the last few years. If folks could find
> > some time to rebase their forks for the current state of the master
> branch
> > and submit pull requests I'd be super grateful.
> >
> > --
> > Sean
> >
>
>
>
> --
> Sean
>

Re: Updating the YCSB client for HBase

Posted by Sean Busbey <bu...@cloudera.com>.
I should note that the other maintainer and I are planning on a monthly
release cadence going forward, so folks need not worry that this will be
the only release gate for years to come.

On Tue, May 26, 2015 at 11:28 AM, Sean Busbey <bu...@cloudera.com> wrote:

> Hi Folks!
>
> I've recently become a maintainer on YCSB. We're looking to get a release
> out in June (our first in several years). We'll probably begin release
> candidates in a couple of weeks.
>
> I'd really like to improve the experience of folks using HBase; the
> current state of the datastore binding leaves much to be desired. Right
> now, people can't even reliably run against multiple versions of HBase. I
> *think* only using 1.0+ client jars works, regardless of old/new API usage.
> I'll find out for sure in RC testing.
>
> Unfortunately, my time on the project is quickly absorbed handling reviews
> and community management efforts. I know a few folks in the HBase community
> have made their own changes over the last few years. If folks could find
> some time to rebase their forks for the current state of the master branch
> and submit pull requests I'd be super grateful.
>
> --
> Sean
>



-- 
Sean