Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1795F10A1D for ; Mon, 8 Dec 2014 16:11:13 +0000 (UTC) Received: (qmail 25879 invoked by uid 500); 8 Dec 2014 16:11:12 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 25845 invoked by uid 500); 8 Dec 2014 16:11:12 -0000 Mailing-List: contact dev-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 dev@ambari.apache.org Received: (qmail 25833 invoked by uid 99); 8 Dec 2014 16:11:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2014 16:11:12 +0000 Date: Mon, 8 Dec 2014 16:11:12 +0000 (UTC) From: "Andrew Onischuk (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (AMBARI-4504) role_command_order is not inherited from the parent stack 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-4504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Onischuk resolved AMBARI-4504. ------------------------------------- Resolution: Fixed Committed to trunk > role_command_order is not inherited from the parent stack > --------------------------------------------------------- > > Key: AMBARI-4504 > URL: https://issues.apache.org/jira/browse/AMBARI-4504 > Project: Ambari > Issue Type: Task > Components: ambari-server, test > Affects Versions: 1.5.0 > Reporter: Dmitry Lysnichenko > Assignee: Dmitry Lysnichenko > Fix For: 2.0.0 > > > h1. Implementation proposal > The most common use case for stack extension is adding new services or slightly modifying existing ones. So typically child's RCO file should look like a diff ("What dependencies should we add to parent's RCO to support newly added services?"). For more complex situations (when changes that are introduced by child stack fundamentally change RCO), it makes sense to redefine a complete RCO file instead of inheritance. That's why I propose to keep RCO file syntax simple and don't implement support of deleting/modifying specific dependency or dependency group. > We will support two options(policies) for stack extension: > - extend parent's RCO, appending dependencies specified at child's RCO to corresponding groups of parent's RCO (default). For every dependency group, parent's set of dependencies and child's set of dependencies are merged. > - completely override (replace) parent's RCO by child's RCO file. > If role_command_order.json file is absent at stack, parent's file is used. > Policy selection is performed via "rco-policy" key at role_command_order.json file > {code} > { > "_comment" : "rco-policy defines how do we build RCO when stack extension is performed. Possible values are: append (add child's dependencies to", > "_comment" : "parent's RCO) and replace (ignore parent's RCO)", > "rco-policy" : "append", > "_comment" : "Record format:", > "_comment" : "blockedRole-blockedCommand: [blockerRole1-blockerCommand1, blockerRole2-blockerCommand2, ...]", > "general_deps" : { > "_comment" : "dependencies for all cases", > "NAGIOS_SERVER-INSTALL" : ["HIVE_CLIENT-INSTALL", "HCAT-INSTALL", > "MAPREDUCE_CLIENT-INSTALL", "OOZIE_CLIENT-INSTALL"], > "HBASE_MASTER-START": ["ZOOKEEPER_SERVER-START"], > {code} > Also, in debug mode, an effective RCO will be printed to log to simplify troubleshooting. -- This message was sent by Atlassian JIRA (v6.3.4#6332)