ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-4845) Remove test code from component script files in stack definition
Date Wed, 26 Feb 2014 15:55:27 GMT

     [ 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)

Mime
View raw message