Return-Path: X-Original-To: apmail-ambari-issues-archive@minotaur.apache.org Delivered-To: apmail-ambari-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 653F119032 for ; Wed, 30 Mar 2016 18:30:27 +0000 (UTC) Received: (qmail 69169 invoked by uid 500); 30 Mar 2016 18:30:26 -0000 Delivered-To: apmail-ambari-issues-archive@ambari.apache.org Received: (qmail 69070 invoked by uid 500); 30 Mar 2016 18:30:26 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 68907 invoked by uid 99); 30 Mar 2016 18:30:26 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2016 18:30:26 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0A3C22C1F80 for ; Wed, 30 Mar 2016 18:30:26 +0000 (UTC) Date: Wed, 30 Mar 2016 18:30:26 +0000 (UTC) From: "Hudson (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-15627) Ambari is expecting hadoop client package and configuration, even if no HDFS components are installed on this host MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-15627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15218537#comment-15218537 ] Hudson commented on AMBARI-15627: --------------------------------- SUCCESS: Integrated in Ambari-branch-2.2 #571 (See [https://builds.apache.org/job/Ambari-branch-2.2/571/]) AMBARI-15627 Ambari is expecting hadoop client package and (dlysnichenko: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=4b0802cac478a93f03864e4bb69e387871a6a167]) * ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/rack_awareness.py * ambari-server/src/test/python/stacks/2.0.6/hooks/before-START/test_before_start.py > 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 > > Attachments: AMBARI-15627-branch-2.2.patch, AMBARI-15627.patch, AMBARI-15627.patch.1 > > > 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 > 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)