This is intentional.
See https://issues.apache.org/jira/browse/YARN-1138 for the detail.
If you want to use the default parameter for your application,
you should write the same parameter to config file or you can use
YarnConfiguration.DEFAULT_YARN_APPLICATION_CLASSPATH instead of
using yarn.application.classpath.
Thanks,
Akira
(2014/03/17 14:38), REYANE OUKPEDJO wrote:
Hi,
I believe there is an issue with yarn-default.xml setting
of yarn.application.classpath on hadoop-2.3.0. This parameter's default
is not set and I have an application that fails because of that. Below
is part of the the content of yarn-default.xml which shows an empty
value of that parameter. When I checked the same file on hadoop-2.2.0, I
can see that a default value is set. Can anyone explain why this happens
? should I open a bug report? or was this intentional ?
Thanks
Reyane OUKPEDJO
property
descriptionDOOP_CONF_DIR,
$HADOOP_COMMON_HOME/share/hadoop/common/*,
$HADOOP_COMMON_HOME/share/hadoop/common/lib/*,
$HADOOP_HDFS_HOME/share/hadoop/hdfs/*,
$HADOOP_HDFS_HOME/share/hadoop/hdfs/lib/*,
$HADOOP_YARN_HOME/share/hadoop/yarn/*,
$HADOOP_YARN_HOME/share/hadoop/yarn/lib/*
CLASSPATH for YARN applications. A comma-separated list
of CLASSPATH entries. When this value is empty, the following default
CLASSPATH for YARN applications would be used.
For Linux:
$HADOOP_CONF_DIR,
$HADOOP_COMMON_HOME/share/hadoop/common/*,
$HADOOP_COMMON_HOME/share/hadoop/common/lib/*,
$HADOOP_HDFS_HOME/share/hadoop/hdfs/*,
$HADOOP_HDFS_HOME/share/hadoop/hdfs/lib/*,
$HADOOP_YARN_HOME/share/hadoop/yarn/*,
$HADOOP_YARN_HOME/share/hadoop/yarn/lib/*
For Windows:
%HADOOP_CONF_DIR%,
%HADOOP_COMMON_HOME%/share/hadoop/common/*,
%HADOOP_COMMON_HOME%/share/hadoop/common/lib/*,
%HADOOP_HDFS_HOME%/share/hadoop/hdfs/*,
%HADOOP_HDFS_HOME%/share/hadoop/hdfs/lib/*,
%HADOOP_YARN_HOME%/share/hadoop/yarn/*,
%HADOOP_YARN_HOME%/share/hadoop/yarn/lib/*
/description
nameyarn.application.classpath/name
value/value
/property