You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by 乔彦克 <qy...@gmail.com> on 2016/04/12 02:29:01 UTC
How to serialize Result in HBase 1.0
Hi, all
recently we upgrade our HBase cluster from cdh-0.94 to cdh-1.0. In 0.94 we
use Result.java(implement Writable) as the map out value.
[image: pasted1]
but int the newer HBase version Result.java has changed, it can't be
serialized any more. Is there any alternative methods to use Result as
MapReduce input/output?
Thanks for any response.
Re: How to serialize Result in HBase 1.0
Posted by 乔彦克 <qy...@gmail.com>.
Thanks for your response Ted, I've solved this. Just do some settings as
follows:
*conf.setStrings("io.serializations", conf.get("io.serializations"),
ResultSerialization.class.getName());*
and problem has gone.
Ted Yu <yu...@gmail.com>于2016年4月12日周二 上午8:54写道:
> It seems your code didn't go through.
>
> Please take a look at ResultSerialization and related classes.
>
> Cheers
>
> On Mon, Apr 11, 2016 at 5:29 PM, 乔彦克 <qy...@gmail.com> wrote:
>
> > Hi, all
> > recently we upgrade our HBase cluster from cdh-0.94 to cdh-1.0. In 0.94
> > we use Result.java(implement Writable) as the map out value.
> > [image: pasted1]
> > but int the newer HBase version Result.java has changed, it can't be
> > serialized any more. Is there any alternative methods to use Result as
> > MapReduce input/output?
> > Thanks for any response.
> >
>
Re: How to serialize Result in HBase 1.0
Posted by Ted Yu <yu...@gmail.com>.
It seems your code didn't go through.
Please take a look at ResultSerialization and related classes.
Cheers
On Mon, Apr 11, 2016 at 5:29 PM, 乔彦克 <qy...@gmail.com> wrote:
> Hi, all
> recently we upgrade our HBase cluster from cdh-0.94 to cdh-1.0. In 0.94
> we use Result.java(implement Writable) as the map out value.
> [image: pasted1]
> but int the newer HBase version Result.java has changed, it can't be
> serialized any more. Is there any alternative methods to use Result as
> MapReduce input/output?
> Thanks for any response.
>