Re: HBase TableOutputFormat

2015-03-25 Thread Fabian Hueske
Hi Flavio, 1) the parameters you set to the configuration object in the main method should be available in the JM and TMs. The OutputFormat object is serialized at the client-side, sent to JM and the TMs, and deserialized. Therefore, all information that was set in the main() should be there in th

Re: HBase TableOutputFormat

2015-03-23 Thread Flavio Pompermaier
No I haven't. There are some points that are not clear to me: 1) why the parameters I set in the job configuration get lost when arriving to the job and task managers? 2)do you think I should put the setConf in the configure method?what is the lifecycle of the Outputformat? 3)is it really necessar

Re: HBase TableOutputFormat

2015-03-23 Thread Fabian Hueske
the problem or should I open > a ticket in JIRA? > > On Sun, Mar 22, 2015 at 12:09 PM, Flavio Pompermaier > wrote: > >> Hi Stephan, >> the problem is when you try to write into HBase with the >> HadoopOutputFormat. >> Unfortunately the recordWriter of the H

Re: HBase TableOutputFormat

2015-03-23 Thread Flavio Pompermaier
>>> if(this.mapreduceOutputFormat instanceof Configurable){ >>>>> ((Configurable)this.mapreduceOutputFormat).setConf(this.configuration); >>>>> } >>>>> otherwise the "mapred.output.dir" property was always null :( >>>>>

Re: HBase TableOutputFormat

2015-03-22 Thread Flavio Pompermaier
Hi Stephan, the problem is when you try to write into HBase with the HadoopOutputFormat. Unfortunately the recordWriter of the HBase TableOutputFormat requires a Table object to be instantiated through the setConf() method (otherwise you get a nullPointer), and it sets also other parameters in the

Re: HBase TableOutputFormat

2015-03-21 Thread Stephan Ewen
null :( >>> >>> On Fri, Mar 20, 2015 at 10:27 AM, Flavio Pompermaier < >>> pomperma...@okkam.it> wrote: >>> >>>> Hi guys, >>>> >>>> I was trying to insert into an HBase table with Flink 0.8.1 and it >

Re: HBase TableOutputFormat

2015-03-20 Thread Flavio Pompermaier
rwise the "mapred.output.dir" property was always null :( >> >> On Fri, Mar 20, 2015 at 10:27 AM, Flavio Pompermaier < >> pomperma...@okkam.it> wrote: >> >>> Hi guys, >>> >>> I was trying to insert into an HBase table with Flink

Re: HBase TableOutputFormat

2015-03-20 Thread Stephan Ewen
wrote: > >> Hi guys, >> >> I was trying to insert into an HBase table with Flink 0.8.1 and it seems >> to be not possible without creating a custom version of the HBase >> TableOutputFormat that specialize Mutation with Put. >> This is my code using the standard Fl

Re: HBase TableOutputFormat

2015-03-20 Thread Flavio Pompermaier
the "mapred.output.dir" property was always null :( On Fri, Mar 20, 2015 at 10:27 AM, Flavio Pompermaier wrote: > Hi guys, > > I was trying to insert into an HBase table with Flink 0.8.1 and it seems > to be not possible without creating a custom version of the HBase &g

HBase TableOutputFormat

2015-03-20 Thread Flavio Pompermaier
Hi guys, I was trying to insert into an HBase table with Flink 0.8.1 and it seems to be not possible without creating a custom version of the HBase TableOutputFormat that specialize Mutation with Put. This is my code using the standard Flink APIs: myds.output(new HadoopOutputFormat(new