[ 
https://issues.apache.org/jira/browse/AMBARI-21642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16121138#comment-16121138
 ] 

Andrew Onischuk commented on AMBARI-21642:
------------------------------------------

[~bslim], it's a mock that returns two values not an actual function. Any shell 
calls are mocked by default. To change the mock add 
{noformat}
checked_call_mocks = [(0,"","")] to self.executeScript
{noformat}

example from hbase tests:
{noformat}
self.executeScript(self.COMMON_SERVICES_PACKAGE_DIR + 
"/scripts/hbase_master.py",
                       classname = "HbaseMaster",
                       command = "install",
                       config_file="hbase_no_phx.json",
                       stack_version = self.STACK_VERSION,
                       target = RMFTestCase.TARGET_COMMON_SERVICES,
                       try_install=True,
                       checked_call_mocks = [(0, "OK.", ""),(0, "OK.", "")],
    )
{noformat}

> Add hadoop LZO jars if installed in the cluster
> -----------------------------------------------
>
>                 Key: AMBARI-21642
>                 URL: https://issues.apache.org/jira/browse/AMBARI-21642
>             Project: Ambari
>          Issue Type: Improvement
>            Reporter: slim bouguerra
>            Assignee: slim bouguerra
>             Fix For: 2.6.0
>
>
> Check the existence of hadoop lzo packages and added to the 
> druid-hadoop-clients directory.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to