Tobias Bertelsen created AMBARI-9889:
----------------------------------------
Summary: Install of HDP2.2 fails when storing `yarn.exclude` in non-default localtion
Key: AMBARI-9889
URL: https://issues.apache.org/jira/browse/AMBARI-9889
Project: Ambari
Issue Type: Bug
Environment: SUSE
Reporter: Tobias Bertelsen
We tried to install a very simple HDP2.2, with some custom directories, but the installation
failed:
{code}
Fail: Applying File['/hdp/etc/hadoop/conf/yarn.exclude'] failed, parent directory /hdp/etc/hadoop/conf
doesn't exist
{code}
It is not the first time this type of error has been a problem. Perhaps a review is needed
of how configured paths are treated in general, so it is ensured that any path only need to
be changed in one place.
A simple search reveals these bugs:
* https://issues.apache.org/jira/browse/AMBARI-4414
* https://issues.apache.org/jira/browse/AMBARI-4572
* https://issues.apache.org/jira/browse/AMBARI-6591
* https://issues.apache.org/jira/browse/AMBARI-7792
* https://issues.apache.org/jira/browse/AMBARI-7978
Full error and some context
{code}
2015-03-03 10:58:52,681 - XmlConfig['yarn-site.xml'] {'group': 'hadoop', 'conf_dir': '/etc/hadoop/conf',
'mode': 0644, 'configuration_attributes': ..., 'owner': 'yarn', 'configurations': ...}
2015-03-03 10:58:52,695 - Generating config: /etc/hadoop/conf/yarn-site.xml
2015-03-03 10:58:52,696 - File['/etc/hadoop/conf/yarn-site.xml'] {'owner': 'yarn', 'content':
InlineTemplate(...), 'group': 'hadoop', 'mode': 0644, 'encoding': 'UTF-8'}
2015-03-03 10:58:52,699 - Writing File['/etc/hadoop/conf/yarn-site.xml'] because it doesn't
exist
2015-03-03 10:58:52,699 - Changing owner for /etc/hadoop/conf/yarn-site.xml from 0 to yarn
2015-03-03 10:58:52,699 - Changing group for /etc/hadoop/conf/yarn-site.xml from 0 to hadoop
2015-03-03 10:58:52,700 - XmlConfig['capacity-scheduler.xml'] {'group': 'hadoop', 'conf_dir':
'/etc/hadoop/conf', 'mode': 0644, 'configuration_attributes': ..., 'owner': 'yarn', 'configurations':
...}
2015-03-03 10:58:52,713 - Generating config: /etc/hadoop/conf/capacity-scheduler.xml
2015-03-03 10:58:52,714 - File['/etc/hadoop/conf/capacity-scheduler.xml'] {'owner': 'yarn',
'content': InlineTemplate(...), 'group': 'hadoop', 'mode': 0644, 'encoding': 'UTF-8'}
2015-03-03 10:58:52,715 - Writing File['/etc/hadoop/conf/capacity-scheduler.xml'] because
it doesn't exist
2015-03-03 10:58:52,715 - Changing owner for /etc/hadoop/conf/capacity-scheduler.xml from
0 to yarn
2015-03-03 10:58:52,715 - Changing group for /etc/hadoop/conf/capacity-scheduler.xml from
0 to hadoop
2015-03-03 10:58:52,716 - File['/hdp/etc/hadoop/conf/yarn.exclude'] {'owner': 'yarn', 'group':
'hadoop'}
2015-03-03 10:58:52,716 - Error while executing command 'install':
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 123, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/YARN/package/scripts/mapreduce2_client.py",
line 31, in install
self.configure(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/YARN/package/scripts/mapreduce2_client.py",
line 36, in configure
yarn()
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/YARN/package/scripts/yarn.py",
line 144, in yarn
group=params.user_group
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, in __init__
self.env.run()
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 149,
in run
self.run_action(resource, action)
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 115,
in run_action
provider_action()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line
93, in action_create
raise Fail("Applying %s failed, parent directory %s doesn't exist" % (self.resource, dirname))
Fail: Applying File['/hdp/etc/hadoop/conf/yarn.exclude'] failed, parent directory /hdp/etc/hadoop/conf
doesn't exist
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
|