You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Jaydeep Vishwakarma (JIRA)" <ji...@apache.org> on 2014/11/24 13:26:12 UTC
[jira] [Commented] (OOZIE-2074) Compatibility issue with Yarn and
Hadoop 0.23/2.x
[ https://issues.apache.org/jira/browse/OOZIE-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14222941#comment-14222941 ]
Jaydeep Vishwakarma commented on OOZIE-2074:
--------------------------------------------
Checking the "yarn.resourcemanager.webapp.address" property will be fine instead of "yarn.resourcemanager.address".
> Compatibility issue with Yarn and Hadoop 0.23/2.x
> -------------------------------------------------
>
> Key: OOZIE-2074
> URL: https://issues.apache.org/jira/browse/OOZIE-2074
> Project: Oozie
> Issue Type: Bug
> Reporter: Jaydeep Vishwakarma
> Assignee: Jaydeep Vishwakarma
>
> We are using "yarn.resourcemanager.address" for checking the hadoop version in jobUtils. Here is the code snippet.
> // Hadoop 0.20/1.x.
> if (defaultConf.get("yarn.resourcemanager.address") == null) {
> // Duplicate hadoop 1.x code to workaround MAPREDUCE-2361 in Hadoop 0.20
> // Refer OOZIE-1806.
> String filepath = file.toUri().getPath();
> String classpath = conf.get("mapred.job.classpath.files");
> conf.set("mapred.job.classpath.files", classpath == null
> ? filepath
> : classpath + System.getProperty("path.separator") + filepath);
> URI uri = fs.makeQualified(file).toUri();
> DistributedCache.addCacheFile(uri, conf);
> }
> else { // Hadoop 0.23/2.x
> DistributedCache.addFileToClassPath(file, conf, fs);
> }
> But this is being used in JavaActionExecutor to set jobTracker.
> conf.set(HADOOP_YARN_RM, jobTracker);
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)