You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Yan Fang (JIRA)" <ji...@apache.org> on 2015/01/15 02:53:34 UTC

[jira] [Commented] (SAMZA-511) Integration tests fail on Mac

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

Yan Fang commented on SAMZA-511:
--------------------------------

Before this patch, had the same error in this ticket. After the patch, have a new error
{code}
2015-01-14 17:51:55,266 deployment [INFO] Deploying zookeeper_instance_0 on host: localhost
2015-01-14 17:51:58,150 deployment [INFO] Deploying yarn_rm_instance_0 on host: localhost
2015-01-14 17:52:03,546 zopkio.remote_host_helper [ERROR] 
2015-01-14 17:52:03,548 zopkio.test_runner [ERROR] Aborting smoke-tests due to setup_suite failure:
Traceback (most recent call last):
  File "/tmp/samza-test2/samza-integration-tests/lib/python2.7/site-packages/zopkio/test_runner.py", line 107, in run
    self.deployment_module.setup_suite()
  File "/tmp/samza-test2/scripts/deployment.py", line 76, in setup_suite
    'hostname': host
  File "/tmp/samza-test2/samza-integration-tests/lib/python2.7/site-packages/zopkio/deployer.py", line 78, in deploy
    self.start(unique_id, configs)
  File "/tmp/samza-test2/samza-integration-tests/lib/python2.7/site-packages/zopkio/adhoc_deployer.py", line 212, in start
    chan = exec_with_env(ssh, command, msg="Failed to start", env=env, sync=configs.get('sync', False))
  File "/tmp/samza-test2/samza-integration-tests/lib/python2.7/site-packages/zopkio/remote_host_helper.py", line 86, in exec_with_env
    return better_exec_command(ssh, new_command, msg)
  File "/tmp/samza-test2/samza-integration-tests/lib/python2.7/site-packages/zopkio/remote_host_helper.py", line 115, in better_exec_command
    raise ParamikoError(msg, err_msg)
ParamikoError: Failed to start
{code}

> Integration tests fail on Mac
> -----------------------------
>
>                 Key: SAMZA-511
>                 URL: https://issues.apache.org/jira/browse/SAMZA-511
>             Project: Samza
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.9.0
>            Reporter: Chris Riccomini
>            Assignee: Chris Riccomini
>             Fix For: 0.9.0
>
>         Attachments: SAMZA-511-0.patch
>
>
> It looks like the {{sed}} call that we use to manipulate configuration works on Linux, but not Mac. Running on Mac gives:
> {noformat}
> 2015-01-14 09:48:49,899 zopkio.remote_host_helper [ERROR] sed: 1: "/<configuration>/a <pro ...": command a expects \ followed by text
> 2015-01-14 09:48:49,908 zopkio.test_runner [ERROR] Aborting smoke-tests due to setup_suite failure:
> Traceback (most recent call last):
>   File "/tmp/samza-tests/samza-integration-tests/lib/python2.7/site-packages/zopkio/test_runner.py", line 107, in run
>     self.deployment_module.setup_suite()
>   File "/tmp/samza-tests/scripts/deployment.py", line 76, in setup_suite
>     'hostname': host
>   File "/tmp/samza-tests/samza-integration-tests/lib/python2.7/site-packages/zopkio/deployer.py", line 77, in deploy
>     self.install(unique_id, configs)
>   File "/tmp/samza-tests/samza-integration-tests/lib/python2.7/site-packages/zopkio/adhoc_deployer.py", line 158, in install
>     msg="Failed to execute post install command: {0}".format(relative_cmd), env=env))
>   File "/tmp/samza-tests/samza-integration-tests/lib/python2.7/site-packages/zopkio/remote_host_helper.py", line 86, in exec_with_env
>     return better_exec_command(ssh, new_command, msg)
>   File "/tmp/samza-tests/samza-integration-tests/lib/python2.7/site-packages/zopkio/remote_host_helper.py", line 115, in better_exec_command
>     raise ParamikoError(msg, err_msg)
> ParamikoError: Failed to execute post install command: cd /tmp/samza-tests/deploy/yarn_rm; sed -i.bak '/<configuration>/a <property><name>yarn.nodemanager.vmem-pmem-ratio</name><value>10</value></property>' hadoop-2.4.0/etc/hadoop/yarn-site.xml
> sed: 1: "/<configuration>/a <pro ...": command a expects \ followed by text
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)