Added jobhistory address config to vanilla 2

Change-Id: Ia04c2e4901cb03bac3487960092fd603c4c32e12
Closes-Bug: #1328675
This commit is contained in:
Andrew Lazarev 2014-06-10 15:44:17 -07:00
parent 869591aa5a
commit 78cc4f5665
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,10 @@ def _get_hadoop_configs(node_group):
confs['MapReduce'] = {
'mapreduce.framework.name': 'yarn'
}
hs_hostname = vu.get_instance_hostname(vu.get_historyserver(cluster))
if hs_hostname:
confs['MapReduce']['mapreduce.jobhistory.address'] = (
"%s:10020" % hs_hostname)
oozie = vu.get_oozie(cluster)
if oozie: