You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Sleiman Jneidi <jn...@gmail.com> on 2015/02/15 15:49:53 UTC

HBase Object Mapper

Hi Guys, hope you all had a great weekend.
Recently, I had  to do a lot  of HBase data access and I needed a mapper,
but I didn't like any of the existing mappers (Gora, Kundera, etc.. ) maybe
I am mistaken. I just needed a light weight and easy to use mapper. So I
created one and put it on Github. It is very primitive at the moment, so if
any of you guys interested in doing some open source hacking, please give
me hand.

https://github.com/SleimanJneidi/HBaseMapper

looking forward to hearing your feedback. Thanks

Re: HBase Object Mapper

Posted by Sleiman Janeiro <jn...@gmail.com>.
Cool, please try to run the tests, because I was getting strange issues related to versions and the mini cluster 

Sent from my iPhone

> On 15 Feb 2015, at 3:18 pm, Ted Yu <yu...@gmail.com> wrote:
> 
> I got some compilation error(s) after cloning your repo (
> http://pastebin.com/9nqbxubv).
> 
> With the following change:
> http://pastebin.com/jbTHCA56
> I was able to build your project.
> 
> FYI
> 
> On Sun, Feb 15, 2015 at 6:49 AM, Sleiman Jneidi <jn...@gmail.com>
> wrote:
> 
>> Hi Guys, hope you all had a great weekend.
>> Recently, I had  to do a lot  of HBase data access and I needed a mapper,
>> but I didn't like any of the existing mappers (Gora, Kundera, etc.. ) maybe
>> I am mistaken. I just needed a light weight and easy to use mapper. So I
>> created one and put it on Github. It is very primitive at the moment, so if
>> any of you guys interested in doing some open source hacking, please give
>> me hand.
>> 
>> https://github.com/SleimanJneidi/HBaseMapper
>> 
>> looking forward to hearing your feedback. Thanks
>> 

Re: HBase Object Mapper

Posted by Ted Yu <yu...@gmail.com>.
I got some compilation error(s) after cloning your repo (
http://pastebin.com/9nqbxubv).

With the following change:
 http://pastebin.com/jbTHCA56
I was able to build your project.

FYI

On Sun, Feb 15, 2015 at 6:49 AM, Sleiman Jneidi <jn...@gmail.com>
wrote:

> Hi Guys, hope you all had a great weekend.
> Recently, I had  to do a lot  of HBase data access and I needed a mapper,
> but I didn't like any of the existing mappers (Gora, Kundera, etc.. ) maybe
> I am mistaken. I just needed a light weight and easy to use mapper. So I
> created one and put it on Github. It is very primitive at the moment, so if
> any of you guys interested in doing some open source hacking, please give
> me hand.
>
> https://github.com/SleimanJneidi/HBaseMapper
>
> looking forward to hearing your feedback. Thanks
>

Re: HBase Object Mapper

Posted by Sleiman Jneidi <jn...@gmail.com>.
Gora requires that you generate your classes through its compiler and you
can't touch these classes , do you really want to do that??
Kundera on the other hand is JPA which is a good idea, but I don't find it
natural for HBase, for ex: row key is very important in HBase, so you can't
just have a field that represents an id like you do for a relational
database, this why in my mapper I provide a function to generate the row
key. ex:

FluentEntityMapper.builder(Foo.class, "tableName")
        .withRowKeyGenerator(new Function<Foo, String>() {
            @Override
            public String apply(Foo input) {
               return input.name + (Long.MAX_VALUE -
System.currentTimeMillis()); // reversed timestamp
              }
          })


On Sun, Feb 15, 2015 at 2:53 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Nice,
>
> thanks for Sharing Sleiman.
>
> Can you do a quick pros and cons to compare Gora, Kundera and yours? Might
> help so see which one fits best for other people usecases?
>
> Thanks,
>
> JM
>
> 2015-02-15 9:49 GMT-05:00 Sleiman Jneidi <jn...@gmail.com>:
>
> > Hi Guys, hope you all had a great weekend.
> > Recently, I had  to do a lot  of HBase data access and I needed a mapper,
> > but I didn't like any of the existing mappers (Gora, Kundera, etc.. )
> maybe
> > I am mistaken. I just needed a light weight and easy to use mapper. So I
> > created one and put it on Github. It is very primitive at the moment, so
> if
> > any of you guys interested in doing some open source hacking, please give
> > me hand.
> >
> > https://github.com/SleimanJneidi/HBaseMapper
> >
> > looking forward to hearing your feedback. Thanks
> >
>

Re: HBase Object Mapper

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Nice,

thanks for Sharing Sleiman.

Can you do a quick pros and cons to compare Gora, Kundera and yours? Might
help so see which one fits best for other people usecases?

Thanks,

JM

2015-02-15 9:49 GMT-05:00 Sleiman Jneidi <jn...@gmail.com>:

> Hi Guys, hope you all had a great weekend.
> Recently, I had  to do a lot  of HBase data access and I needed a mapper,
> but I didn't like any of the existing mappers (Gora, Kundera, etc.. ) maybe
> I am mistaken. I just needed a light weight and easy to use mapper. So I
> created one and put it on Github. It is very primitive at the moment, so if
> any of you guys interested in doing some open source hacking, please give
> me hand.
>
> https://github.com/SleimanJneidi/HBaseMapper
>
> looking forward to hearing your feedback. Thanks
>