Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

[OOZIE-3622] No mapreduce jars in the classpath for hadoop3 mapreduce job #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,13 @@ protected String findYarnApplicationId(final Context context, final WorkflowActi
}
}

@Override
protected void addActionSpecificEnvVars(Map<String, String> env) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be compatible with previous Hadoop version? Like hadoop 2.6?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's right

// need to specify HADOOP_MAPRED_HOME for hadoop3, otherwise mapreduce jars won't be included
// in the launcher's CLASSPATH.
env.put("HADOOP_MAPRED_HOME", "${HADOOP_HOME}");
}

/**
* Finds a Hadoop job ID based on {@code action-data.seq} file stored on HDFS by {@link MapReduceMain}.
*/
Expand Down