Re: Get method in Writable

2015-02-22 Thread unmesha sreeveni
Thanks Drake. That was the point.It was my mistake. On Mon, Feb 23, 2015 at 6:34 AM, Drake민영근 wrote: > Hi, unmesha. > > I think this is a gson problem. you mentioned like this: > > >> But parsing canot be done in *MR2*. > *>> TreeInfoWritable info = gson.toJson(setupData, > TreeInfoWritable.clas

Re: Get method in Writable

2015-02-22 Thread Drake민영근
Hi, unmesha. I think this is a gson problem. you mentioned like this: >> But parsing canot be done in *MR2*. *>> TreeInfoWritable info = gson.toJson(setupData, TreeInfoWritable.class);* I think just use gson.fromJson, not toJson(setupData is already json string, i think). Is this right ? Drake

Get method in Writable

2015-02-20 Thread unmesha sreeveni
Am I able to get the values from writable of a previous job. ie I have 2 MR jobs *MR 1:* I need to pass 3 element as values from reducer and the key is NullWritable. So I created a custom writable class to achieve this. * public class TreeInfoWritable implements Writable{* * DoubleWritable entrop