You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@oozie.apache.org by Vishal Kapoor <vi...@gmail.com> on 2014/07/14 03:11:11 UTC

MR action and HBase HFile export

Hello,

I am using the following job configurations in my MapReduce job.

job.setInputFormatClass(AvroKeyInputFormat.class);
job.setMapOutputKeyClass(ImmutableBytesWritable.class);
job.setMapOutputValueClass(Put.class);

HFileOutputFormat.configureIncrementalLoad(job, table);

How can I configure this in MR action?

Thanks,
Vishal Kapoor

Re: MR action and HBase HFile export

Posted by Harsh J <ha...@cloudera.com>.
The easy way out for jobs that require too much API-backed
configuration would be to use a java action (with your custom driver)
instead.

For porting the required configs onto the XML, for persisting with an
MR action, you can use the job.getConfiguration().writeXml(…) call at
end of driver (instead of submitting job) to have it prepare the XML
and then extract the programmatically set values out of it to add to
your workflow configuration.

On Mon, Jul 14, 2014 at 6:41 AM, Vishal Kapoor
<vi...@gmail.com> wrote:
> Hello,
>
> I am using the following job configurations in my MapReduce job.
>
> job.setInputFormatClass(AvroKeyInputFormat.class);
> job.setMapOutputKeyClass(ImmutableBytesWritable.class);
> job.setMapOutputValueClass(Put.class);
>
> HFileOutputFormat.configureIncrementalLoad(job, table);
>
> How can I configure this in MR action?
>
> Thanks,
> Vishal Kapoor



-- 
Harsh J