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 AFD86108F1 for ; Wed, 26 Feb 2014 15:55:36 +0000 (UTC) Received: (qmail 71475 invoked by uid 500); 26 Feb 2014 15:55:33 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 71380 invoked by uid 500); 26 Feb 2014 15:55:31 -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 71192 invoked by uid 99); 26 Feb 2014 15:55:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 15:55:27 +0000 Date: Wed, 26 Feb 2014 15:55:27 +0000 (UTC) From: "Andrew Onischuk (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-4845) Remove test code from component script files in stack definition 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-4845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Onischuk updated AMBARI-4845: ------------------------------------ Attachment: AMBARI-4845.patch > Remove test code from component script files in stack definition > ---------------------------------------------------------------- > > Key: AMBARI-4845 > URL: https://issues.apache.org/jira/browse/AMBARI-4845 > Project: Ambari > Issue Type: Bug > Reporter: Andrew Onischuk > Assignee: Andrew Onischuk > Fix For: 1.5.0 > > Attachments: AMBARI-4845.patch > > > ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HBASE/package/scripts/hbase_master.py has code as follows: > {noformat} > def main(): > command_type = sys.argv[1] if len(sys.argv)>1 else "install" > print "Running "+command_type > command_data_file = '/var/lib/ambari-agent/data/command-3.json' > basedir = '/root/ambari/ambari-server/src/main/resources/stacks/HDP/2.0._/services/HBASE/package' > stroutputf = '/1.txt' > sys.argv = ["", command_type, command_data_file, basedir, stroutputf] > > HbaseMaster().execute() > {noformat} > Few more files also have similar code: See attached image. -- This message was sent by Atlassian JIRA (v6.1.5#6160)