Jonathan Hurley created AMBARI-12676:
----------------------------------------
Summary: Upgrades Fail When Calling conf-select On hadoop When
hadoop Is Not Installed
Key: AMBARI-12676
URL: https://issues.apache.org/jira/browse/AMBARI-12676
Project: Ambari
Issue Type: Bug
Components: ambari-agent
Affects Versions: 2.1.0
Environment: - 4-node cluster with HDFS, YARN, ZK
- Ensure that the 4th node has nothing except for ZK server/client (ie no
hadoop components)
Reporter: Jonathan Hurley
Assignee: Jonathan Hurley
Priority: Blocker
Fix For: 2.1.1
{code}
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 28, in hook
import params
File
"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py",
line 111, in <module>
hadoop_conf_dir = conf_select.get_hadoop_conf_dir(force_latest_on_upgrade=True)
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/functions/conf_select.py",
line 273, in get_hadoop_conf_dir
select(stack_name, "hadoop", stack_version)
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/functions/conf_select.py",
line 241, in select
shell.checked_call(get_cmd("set-conf-dir", package, version), logoutput=False,
quiet=False, sudo=True)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line
70, in inner
result = function(command, **kwargs)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line
92, in checked_call
tries=tries, try_sleep=try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line
140, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line
291, in _call
raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'conf-select
set-conf-dir --package hadoop --stack-version 2.3.0.0-2557 --conf-version 0'
returned 1. hadoop not installed or incorrect package name
Error: Error: Unable to run the custom hook script ['/usr/bin/python2.6',
'/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py',
'START', '/var/lib/ambari-agent/data/command-2262.json',
'/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START',
'/var/lib/ambari-agent/data/structured-out-2262.json', 'INFO',
'/var/lib/ambari-agent/data/tmp']
{code}
This is a special case for "hadoop" since it's the before-START script hooks
that are invoking it. It manifests where starting a component on a host that
doesn't have hadoop installed (daemons or clients).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)