yarn - Hadoop: how to set HADOOP_YARN_HOME correctly -
i'm trying setup hadoop yarn.
the default yarn.application.classpath property set this. yarn.application.classpath
<value> $hadoop_conf_dir, $hadoop_common_home/*,$hadoop_common_home/lib/*, $hadoop_hdfs_home/*,$hadoop_hdfs_home/lib/*, $hadoop_mapred_home/*,$hadoop_mapred_home/lib/*, $hadoop_yarn_home/*,$hadoop_yarn_home/lib/*, </value>
with configuration mr jobs failing. if substitute (hadoop_yarn_home substituted value) works fine.
<name>yarn.application.classpath</name> <value> $hadoop_conf_dir, $hadoop_common_home/*,$hadoop_common_home/lib/*, $hadoop_hdfs_home/*,$hadoop_hdfs_home/lib/*, $hadoop_mapred_home/*,$hadoop_mapred_home/lib/*, /usr/lib/hadoop-yarn/*,/usr/lib/hadoop-yarn/lib/*, </value>
so, suspect resourcemanager has incorrect value of $hadoop_yarn_home set somewhere. i've tried setting in yarn-env.sh, hadoop-env.sh , /etc/default/hadoop-yarn, jobs keep failing.
my question is, have set $hadoop_yarn_home variable?
p.d. i'm using cdh5.
you can set configuration variables in .bashrc files belonging specific user. hope help.
Comments
Post a Comment