You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Dmytro Grinenko (JIRA)" <ji...@apache.org> on 2016/03/30 14:07:25 UTC

[jira] [Created] (AMBARI-15627) Ambari is expecting hadoop client package and configuration, even if no HDFS components are installed on this host

Dmytro Grinenko created AMBARI-15627:
----------------------------------------

             Summary: Ambari is expecting hadoop client package and configuration, even if no HDFS components are installed on this host
                 Key: AMBARI-15627
                 URL: https://issues.apache.org/jira/browse/AMBARI-15627
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.2.2
            Reporter: Dmytro Grinenko
            Priority: Critical
             Fix For: 2.2.2


This happens during an ugprade from HDP 2.3.0 to 2.3.4.7. Couple nodes  have Kafka broker/Zookeeper installed with no clients or any other components. Hence, during the installation, there is no HDFS package installed on this node. However, during the start up Ambari expects this node to have /usr/hdp/current/hadoop-client/conf' during the start up:
{code}
Traceback (most recent call last): 
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", line 39, in <module> 
BeforeStartHook().execute() 
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute 
method(env) 
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", line 36, 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 69, 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 36, in create_topology_mapping 
group=params.user_group) 
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__ 
self.env.run() 
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 158, in run 
self.run_action(resource, action) 
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 121, in run_action 
provider_action() 
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 152, in action_create 
sudo.makedirs(path, self.resource.mode or 0755) 
File "/usr/lib/python2.6/site-packages/resource_management/core/sudo.py", line 55, in makedirs 
os.makedirs(path, mode) 
File "/usr/lib64/python2.6/os.py", line 157, in makedirs 
mkdir(name, mode) 
OSError: [Errno 2] No such file or directory: '/usr/hdp/current/hadoop-client/conf' 
Error: Error: Unable to run the custom hook script ['/usr/bin/python2', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py', 'START', '/var/lib/ambari-agent/data/command-3343.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START', '/var/lib/ambari-agent/data/structured-out-3343.json', 'INFO', '/var/lib/ambari-agent/tmp']
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)