Merge "Fix using cinder volumes with nodemanager in HDP2" into stable/icehouse

This commit is contained in:
Jenkins 2014-09-20 01:10:24 +00:00 committed by Gerrit Code Review
commit 0cf93bc0bc
1 changed files with 2 additions and 1 deletions

View File

@ -305,11 +305,12 @@ class YarnService(Service):
mapred_site_config[prop['name']] = prop['value']
# process storage paths to accommodate ephemeral or cinder storage
yarn_site_config = cluster_spec.configurations['yarn-site']
nm_node_groups = cluster_spec.get_node_groups_containing_component(
'NODEMANAGER')
if nm_node_groups:
common_paths = self._get_common_paths(nm_node_groups)
mapred_site_config['yarn.nodemanager.local-dirs'] = (
yarn_site_config['yarn.nodemanager.local-dirs'] = (
self._generate_storage_path(common_paths,
'/hadoop/yarn/local'))