Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9A64E200D4E for ; Thu, 16 Nov 2017 20:45:19 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 98B3B160C13; Thu, 16 Nov 2017 19:45:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E1974160BEA for ; Thu, 16 Nov 2017 20:45:18 +0100 (CET) Received: (qmail 64042 invoked by uid 500); 16 Nov 2017 19:45:18 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 64029 invoked by uid 99); 16 Nov 2017 19:45:18 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2017 19:45:18 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 76002F2159; Thu, 16 Nov 2017 19:45:17 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: rlevas@apache.org To: commits@ambari.apache.org Date: Thu, 16 Nov 2017 19:45:18 -0000 Message-Id: <701fa355284949f9a229f6234b7587b9@git.apache.org> In-Reply-To: <6642a5bd0993489da312255f1f7cfd96@git.apache.org> References: <6642a5bd0993489da312255f1f7cfd96@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [02/50] [abbrv] ambari git commit: AMBARI-22379 : get_phoenix_query_server_hosts is undefined in hbase service_advisor. (Ted Yu via avijayan) archived-at: Thu, 16 Nov 2017 19:45:19 -0000 AMBARI-22379 : get_phoenix_query_server_hosts is undefined in hbase service_advisor. (Ted Yu via avijayan) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b04e142b Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b04e142b Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b04e142b Branch: refs/heads/branch-feature-AMBARI-20859 Commit: b04e142b3f80d4713ed154e17c0ab877d46500a4 Parents: 08d3826 Author: Aravindan Vijayan Authored: Wed Nov 8 11:14:54 2017 -0800 Committer: Aravindan Vijayan Committed: Wed Nov 8 11:14:54 2017 -0800 ---------------------------------------------------------------------- .../common-services/HBASE/2.0.0.3.0/service_advisor.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/b04e142b/ambari-server/src/main/resources/common-services/HBASE/2.0.0.3.0/service_advisor.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/common-services/HBASE/2.0.0.3.0/service_advisor.py b/ambari-server/src/main/resources/common-services/HBASE/2.0.0.3.0/service_advisor.py index f9d1a59..9dc5708 100644 --- a/ambari-server/src/main/resources/common-services/HBASE/2.0.0.3.0/service_advisor.py +++ b/ambari-server/src/main/resources/common-services/HBASE/2.0.0.3.0/service_advisor.py @@ -461,6 +461,16 @@ class HBASERecommender(service_advisor.ServiceAdvisor): else: putHbaseSiteProperty('hbase.master.ui.readonly', 'false') + """ + Returns the list of Phoenix Query Server host names, or None. + """ + def get_phoenix_query_server_hosts(self, services, hosts): + if len(hosts['items']) > 0: + phoenix_query_server_hosts = self.getHostsWithComponent("HBASE", "PHOENIX_QUERY_SERVER", services, hosts) + if phoenix_query_server_hosts is None: + return [] + return [host['Hosts']['host_name'] for host in phoenix_query_server_hosts] + def recommendHBASEConfigurationsFromHDP26(self, configurations, clusterData, services, hosts): if 'hbase-env' in services['configurations'] and 'hbase_user' in services['configurations']['hbase-env']['properties']: @@ -672,4 +682,4 @@ class HBASEValidator(service_advisor.ServiceAdvisor): " {0} needs to contain {1} instead of {2}".format(prop_name,prop_val,exclude_val))}) validationProblems = self.toConfigurationValidationProblems(validationItems, "hbase-site") - return validationProblems \ No newline at end of file + return validationProblems