mo.setChildren(job);
l4j.info(mo.dump(0));
mo.initialize(jc, null);
// initialize map local work
mapredLocalWork localWork = mrwork.getMapLocalWork();
if (localWork == null) {
return;
}
fetchOperators = new HashMap<String, FetchOperator>();
// create map local operators
for (Map.Entry<String, fetchWork> entry : localWork.getAliasToFetchWork().entrySet()) {
fetchOperators.put(entry.getKey(), new FetchOperator(entry.getValue(), job));
l4j.info("fetchoperator for " + entry.getKey() + " created");
}
// initialize map local operators
for (Map.Entry<String, FetchOperator> entry : fetchOperators.entrySet()) {
Operator<? extends Serializable> forwardOp = localWork.getAliasToWork().get(entry.getKey());
// All the operators need to be initialized before process
forwardOp.initialize(jc, new ObjectInspector[]{entry.getValue().getOutputObjectInspector()});
l4j.info("fetchoperator for " + entry.getKey() + " initialized");
}
// defer processing of map local operators to first row if in case there is no input (??)