Pengcheng Xu created AMBARI-12426:
-------------------------------------
Summary: Zookeeper install, parent directory /etc/hadoop/conf
doesn't exist
Key: AMBARI-12426
URL: https://issues.apache.org/jira/browse/AMBARI-12426
Project: Ambari
Issue Type: Bug
Environment: Cenos7
latest version of Ambari-server
Reporter: Pengcheng Xu
Priority: Minor
stderr:
Traceback (most recent call last):
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py",
line 40, in <module>
BeforeStartHook().execute()
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 218, in execute
method(env)
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py",
line 37, in hook
create_topology_script_and_mapping()
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/rack_awareness.py",
line 41, in create_topology_script_and_mapping
create_topology_mapping()
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/rack_awareness.py",
line 30, in create_topology_mapping
group=params.user_group
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
line 157, in __init__
self.env.run()
File
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
line 152, in run
self.run_action(resource, action)
File
"/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
line 118, in run_action
provider_action()
File
"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 87, in action_create
raise Fail("Applying %s failed, parent directory %s doesn't exist" %
(self.resource, dirname))
resource_management.core.exceptions.Fail: Applying
File['/etc/hadoop/conf/topology_mappings.data'] failed, parent directory
/etc/hadoop/conf doesn't exist
stdout:
2015-07-15 19:35:42,278 -
Directory['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts/'] {'recursive':
True}
2015-07-15 19:35:42,279 -
File['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts//jce_policy-8.zip']
{'content':
DownloadSource('http://cluster400-ambari-server-1.c.pramod-thangali.internal:8080/resources//jce_policy-8.zip')}
2015-07-15 19:35:42,279 - Not downloading the file from
http://cluster400-ambari-server-1.c.pramod-thangali.internal:8080/resources//jce_policy-8.zip,
because /var/lib/ambari-agent/data/tmp/jce_policy-8.zip already exists
2015-07-15 19:35:42,280 - Group['hadoop'] {'ignore_failures': False}
2015-07-15 19:35:42,280 - Group['users'] {'ignore_failures': False}
2015-07-15 19:35:42,280 - User['zookeeper'] {'gid': 'hadoop',
'ignore_failures': False, 'groups': [u'hadoop']}
2015-07-15 19:35:42,281 - User['ams'] {'gid': 'hadoop', 'ignore_failures':
False, 'groups': [u'hadoop']}
2015-07-15 19:35:42,282 - User['ambari-qa'] {'gid': 'hadoop',
'ignore_failures': False, 'groups': [u'users']}
2015-07-15 19:35:42,282 - User['hdfs'] {'gid': 'hadoop', 'ignore_failures':
False, 'groups': [u'hadoop']}
2015-07-15 19:35:42,283 - User['yarn'] {'gid': 'hadoop', 'ignore_failures':
False, 'groups': [u'hadoop']}
2015-07-15 19:35:42,283 - User['mapred'] {'gid': 'hadoop', 'ignore_failures':
False, 'groups': [u'hadoop']}
2015-07-15 19:35:42,284 - User['hbase'] {'gid': 'hadoop', 'ignore_failures':
False, 'groups': [u'hadoop']}
2015-07-15 19:35:42,284 - File['/var/lib/ambari-agent/data/tmp/changeUid.sh']
{'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2015-07-15 19:35:42,285 - Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh
ambari-qa
/tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa']
{'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2015-07-15 19:35:42,390 - Skipping
Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh ambari-qa
/tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa']
due to not_if
2015-07-15 19:35:42,391 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase',
'recursive': True, 'mode': 0775, 'cd_access': 'a'}
2015-07-15 19:35:42,392 - File['/var/lib/ambari-agent/data/tmp/changeUid.sh']
{'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2015-07-15 19:35:42,393 - Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh
hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase']
{'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}
2015-07-15 19:35:42,496 - Skipping
Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh hbase
/home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] due to
not_if
2015-07-15 19:35:42,497 - Group['hdfs'] {'ignore_failures': False}
2015-07-15 19:35:42,497 - User['hdfs'] {'ignore_failures': False, 'groups':
[u'hadoop', u'hdfs']}
2015-07-15 19:35:42,497 - Directory['/etc/hadoop'] {'mode': 0755}
2015-07-15 19:35:42,507 - Execute['('setenforce', '0')'] {'not_if': '(! which
getenforce ) || (which getenforce && getenforce | grep -q Disabled)', 'sudo':
True, 'only_if': 'test -f /selinux/enforce'}
2015-07-15 19:35:42,607 - Skipping Execute['('setenforce', '0')'] due to not_if
2015-07-15 19:35:42,607 - Directory['/var/log/hadoop'] {'owner': 'root',
'mode': 0775, 'group': 'hadoop', 'recursive': True, 'cd_access': 'a'}
2015-07-15 19:35:42,609 - Directory['/var/run/hadoop'] {'owner': 'root',
'group': 'root', 'recursive': True, 'cd_access': 'a'}
2015-07-15 19:35:42,609 - Directory['/tmp/hadoop-hdfs'] {'owner': 'hdfs',
'recursive': True, 'cd_access': 'a'}
2015-07-15 19:35:42,618 - File['/etc/hadoop/conf/topology_mappings.data']
{'owner': 'hdfs', 'content': Template('topology_mappings.data.j2'), 'group':
'hadoop'}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)