You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2014/02/26 17:17:20 UTC
[jira] [Resolved] (AMBARI-4845) Remove test code from component
script files in stack definition
[ https://issues.apache.org/jira/browse/AMBARI-4845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Onischuk resolved AMBARI-4845.
-------------------------------------
Resolution: Fixed
> 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)