You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by ch huang <ju...@gmail.com> on 2013/08/28 05:07:47 UTC

how to export data from hbase to mysql?

hi,all:
any good idea? thanks

Re: how to export data from hbase to mysql?

Posted by Mohammad Tariq <do...@gmail.com>.
My 2 cents :

1- Map your table to a Hive table and do the export using Sqoop.
2- Export <http://hbase.apache.org/book/ops_mgt.html#export> the table to a
file first, and then export it using Sqoop.

Warm Regards,
Tariq
cloudfront.blogspot.com


On Wed, Aug 28, 2013 at 7:12 PM, Shahab Yunus <sh...@gmail.com>wrote:

> Taking what Ravi Kiran mentioned a level higher, you can also use Pig. It
> has DBStorage. Very easy to rad from HBase and dump to MySQL if your data
> porting does not require complex transformation (even which can be handled
> in Pig too.)
>
>
> http://pig.apache.org/docs/r0.11.0/api/org/apache/pig/piggybank/storage/DBStorage.html
>
> Regards,
> Shahab
>
>
> On Wed, Aug 28, 2013 at 1:26 AM, Ravi Kiran <maghamravikiran@gmail.com
> >wrote:
>
> > If you would like to have greater control on what data / which columns
> > from HBase should be going into MySQL tables , you can write a simple MR
> > job and use the DBOutputFormat .   It is a simple one and works great for
> > us.
> >
> > Regards
> > Ravi
> >
> >
> >
> > On Wed, Aug 28, 2013 at 10:42 AM, ch huang <ju...@gmail.com> wrote:
> >
> > > i use hive ,maybe it's a way ,let me try  it
> > >
> > > On Wed, Aug 28, 2013 at 11:21 AM, James Taylor <jtaylor@salesforce.com
> > > >wrote:
> > >
> > > > Or if you'd like to be able to use SQL directly on it, take a look at
> > > > Phoenix (https://github.com/forcedotcom/phoenix).
> > > >
> > > > James
> > > >
> > > > On Aug 27, 2013, at 8:14 PM, Jean-Marc Spaggiari
> > > >  <je...@spaggiari.org> wrote:
> > > >
> > > > > Take a look at sqoop?
> > > > > Le 2013-08-27 23:08, "ch huang" <ju...@gmail.com> a écrit :
> > > > >
> > > > >> hi,all:
> > > > >> any good idea? thanks
> > > > >>
> > > >
> > >
> >
>

Re: how to export data from hbase to mysql?

Posted by Shahab Yunus <sh...@gmail.com>.
Taking what Ravi Kiran mentioned a level higher, you can also use Pig. It
has DBStorage. Very easy to rad from HBase and dump to MySQL if your data
porting does not require complex transformation (even which can be handled
in Pig too.)

http://pig.apache.org/docs/r0.11.0/api/org/apache/pig/piggybank/storage/DBStorage.html

Regards,
Shahab


On Wed, Aug 28, 2013 at 1:26 AM, Ravi Kiran <ma...@gmail.com>wrote:

> If you would like to have greater control on what data / which columns
> from HBase should be going into MySQL tables , you can write a simple MR
> job and use the DBOutputFormat .   It is a simple one and works great for
> us.
>
> Regards
> Ravi
>
>
>
> On Wed, Aug 28, 2013 at 10:42 AM, ch huang <ju...@gmail.com> wrote:
>
> > i use hive ,maybe it's a way ,let me try  it
> >
> > On Wed, Aug 28, 2013 at 11:21 AM, James Taylor <jtaylor@salesforce.com
> > >wrote:
> >
> > > Or if you'd like to be able to use SQL directly on it, take a look at
> > > Phoenix (https://github.com/forcedotcom/phoenix).
> > >
> > > James
> > >
> > > On Aug 27, 2013, at 8:14 PM, Jean-Marc Spaggiari
> > >  <je...@spaggiari.org> wrote:
> > >
> > > > Take a look at sqoop?
> > > > Le 2013-08-27 23:08, "ch huang" <ju...@gmail.com> a écrit :
> > > >
> > > >> hi,all:
> > > >> any good idea? thanks
> > > >>
> > >
> >
>

Re: how to export data from hbase to mysql?

Posted by Ravi Kiran <ma...@gmail.com>.
If you would like to have greater control on what data / which columns
from HBase should be going into MySQL tables , you can write a simple MR
job and use the DBOutputFormat .   It is a simple one and works great for
us.

Regards
Ravi



On Wed, Aug 28, 2013 at 10:42 AM, ch huang <ju...@gmail.com> wrote:

> i use hive ,maybe it's a way ,let me try  it
>
> On Wed, Aug 28, 2013 at 11:21 AM, James Taylor <jtaylor@salesforce.com
> >wrote:
>
> > Or if you'd like to be able to use SQL directly on it, take a look at
> > Phoenix (https://github.com/forcedotcom/phoenix).
> >
> > James
> >
> > On Aug 27, 2013, at 8:14 PM, Jean-Marc Spaggiari
> >  <je...@spaggiari.org> wrote:
> >
> > > Take a look at sqoop?
> > > Le 2013-08-27 23:08, "ch huang" <ju...@gmail.com> a écrit :
> > >
> > >> hi,all:
> > >> any good idea? thanks
> > >>
> >
>

Re: how to export data from hbase to mysql?

Posted by ch huang <ju...@gmail.com>.
i use hive ,maybe it's a way ,let me try  it

On Wed, Aug 28, 2013 at 11:21 AM, James Taylor <jt...@salesforce.com>wrote:

> Or if you'd like to be able to use SQL directly on it, take a look at
> Phoenix (https://github.com/forcedotcom/phoenix).
>
> James
>
> On Aug 27, 2013, at 8:14 PM, Jean-Marc Spaggiari
>  <je...@spaggiari.org> wrote:
>
> > Take a look at sqoop?
> > Le 2013-08-27 23:08, "ch huang" <ju...@gmail.com> a écrit :
> >
> >> hi,all:
> >> any good idea? thanks
> >>
>

Re: how to export data from hbase to mysql?

Posted by James Taylor <jt...@salesforce.com>.
Or if you'd like to be able to use SQL directly on it, take a look at
Phoenix (https://github.com/forcedotcom/phoenix).

James

On Aug 27, 2013, at 8:14 PM, Jean-Marc Spaggiari
<je...@spaggiari.org> wrote:

> Take a look at sqoop?
> Le 2013-08-27 23:08, "ch huang" <ju...@gmail.com> a écrit :
>
>> hi,all:
>> any good idea? thanks
>>

Re: how to export data from hbase to mysql?

Posted by ch huang <ju...@gmail.com>.
sqoop can not support export hbase data into mysql

On Wed, Aug 28, 2013 at 11:13 AM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:

> Take a look at sqoop?
> Le 2013-08-27 23:08, "ch huang" <ju...@gmail.com> a écrit :
>
> > hi,all:
> > any good idea? thanks
> >
>

Re: how to export data from hbase to mysql?

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Take a look at sqoop?
Le 2013-08-27 23:08, "ch huang" <ju...@gmail.com> a écrit :

> hi,all:
> any good idea? thanks
>