Nikolai Grigoriev created OOZIE-2631:
----------------------------------------
Summary: Support both old and new Hadoop/HBase APIs with
OozieActionConfigurator
Key: OOZIE-2631
URL: https://issues.apache.org/jira/browse/OOZIE-2631
Project: Oozie
Issue Type: Improvement
Components: action
Reporter: Nikolai Grigoriev
Priority: Minor
I was recently trying to set up an MR job initialized with TableMapReduceUtil
to be ran by Oozie. Oozie offers a way to configure the job by providing an
implementation of org.apache.oozie.action.hadoop.OozieActionConfigurator
(introduced in SOC-1954). Unfortunately, this interface is using
org.apache.hadoop.mapred.JobConf, not Job. In Hbase there are two classes:
org.apache.hadoop.hbase.mapreduce.TableMapReduceUtil (new API) and
org.apache.hadoop.hbase.mapred.TableMapReduceUtil (old API). New API is using
org.apache.hadoop.mapreduce.Job everywhere where old API used JobConf. I
believe it would be a good idea to improve the action configurator so it could
accept either JobConf or Job. Maybe a way to go is to subclass
OozieActionConfigurator and introduce a new interface like
"OozieMapReduceActionConfigurator" that would provide configure() method
accepting org.apache.hadoop.mapreduce.Job?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)