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 8777818453 for ; Wed, 6 Jan 2016 15:44:40 +0000 (UTC) Received: (qmail 63144 invoked by uid 500); 6 Jan 2016 15:44:40 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 63101 invoked by uid 500); 6 Jan 2016 15:44:40 -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 63038 invoked by uid 99); 6 Jan 2016 15:44:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jan 2016 15:44:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E0B8C2C1F5C for ; Wed, 6 Jan 2016 15:44:39 +0000 (UTC) Date: Wed, 6 Jan 2016 15:44:39 +0000 (UTC) From: "Dmitry Lysnichenko (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-14567) pluggable-stack script is not configurable (Can not deploy ambari with custom stack correctly, with out specific repos files for services) 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-14567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmitry Lysnichenko updated AMBARI-14567: ---------------------------------------- Component/s: ambari-server > pluggable-stack script is not configurable (Can not deploy ambari with custom stack correctly, with out specific repos files for services) > ------------------------------------------------------------------------------------------------------------------------------------------ > > Key: AMBARI-14567 > URL: https://issues.apache.org/jira/browse/AMBARI-14567 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.2.0 > Reporter: Dmitry Lysnichenko > Assignee: Dmitry Lysnichenko > Fix For: 2.2.1 > > Attachments: AMBARI-14567.patch > > > *Important, As I understand:* > Originally pluggable-stack script was designed to do following: > * replace stack name > * replace versions in packages and code > *But this script is not configurable.* For example, we can't change just stack name and version, package versions will be also changed. > We need to refactor pluggable-stack script and define more config options to allow to configure which replacements we will perform. > STR: > 1) Clone ambari sources from repository > 2) make > {code} > python /home/eugene/dev/ambari/ambari-common/src/main/python/pluggable_stack_definition/GenerateStackDefinition.py -c ${pluggableStackDefinitionConfig} -r ${resourcesSrcLocation} -o ${pluggableStackDefinitionOutput} > {code} > where > {code} > ${pluggableStackDefinitionConfig} - way to CUSTOM.json > ${resourcesSrcLocation} = /ambari/ambari-server/src/main/resources > ${pluggableStackDefinitionOutput} - some directory for output > {code} > 3) Put custom_stack_map.json to /ambari/ambari-common/src/main/python/pluggable_stack_definition/resources/CUSTOM > 4) make > {code} > mvn versions:set -DnewVersion=2.1.3.0.0 > {code} > for ambari and ambari-metrics > 5) make packages > {code} > mvn -B clean package rpm:rpm -Dpython.ver="python >= 2.6" -DskipTests -pl ambari-agent,ambari-web,ambari-server,ambari-admin,ambari-views,ambari-metrics/ambari-metrics-common -Dstack.distribution=CUSTOM -DpluggableStackDefinitionConfig=/ambari/ambari-common/src/main/python/pluggable_stack_definition/configs/CUSTOM.json > {code} > 6) install and setup ambari from rpms > 7) Try to deploy ambari > *Actual results:* > Can not deploy ambari with custom stack correctly, with out specific package files (3_3_*) for services. > {code} > resource_management.core.exceptions.Fail: Execution of '/usr/bin/yum -d 0 -e 0 -y install 'accumulo_3_3_*'' returned 1. Error: Nothing to do > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)