Andrew Onischuk created AMBARI-4845:
---------------------------------------
Summary: 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)