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 <ao...@hortonworks.com> on 2015/03/03 14:06:01 UTC

Review Request 31679: Ambari-agent stop on Ubuntu fails

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31679/
-----------------------------------------------------------

Review request for Ambari and Vitalyi Brodetskyi.


Bugs: AMBARI-9891
    https://issues.apache.org/jira/browse/AMBARI-9891


Repository: ambari


Description
-------

Verifying Python version compatibility...
    Using python  /usr/bin/python2.7
    Found ambari-agent PID: 6635
    Stopping ambari-agent
    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 276, in <module>
        main(heartbeat_stop_callback)
      File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 220, in main
        stop_agent()
      File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 168, in stop_agent
        raise Exception("Error while performing agent stop. " + res['error'] + res['output'])
    Exception: Error while performing agent stop. /var/lib/ambari-agent/ambari-sudo.sh: 18: /var/lib/ambari-agent/ambari-sudo.sh: [[: not found
    /var/lib/ambari-agent/ambari-sudo.sh: 28: /var/lib/ambari-agent/ambari-sudo.sh: Syntax error: "(" unexpected (expecting "fi")
    
    Removing PID file at /var/run/ambari-agent/ambari-agent.pid
    ambari-agent successfully stopped


Diffs
-----

  ambari-common/src/main/python/ambari_commons/shell.py 70f4af9 

Diff: https://reviews.apache.org/r/31679/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 31679: Ambari-agent stop on Ubuntu fails

Posted by Vitalyi Brodetskyi <vb...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31679/#review74946
-----------------------------------------------------------

Ship it!


Ship It!

- Vitalyi Brodetskyi


On Березень 3, 2015, 1:06 після полудня, Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/31679/
> -----------------------------------------------------------
> 
> (Updated Березень 3, 2015, 1:06 після полудня)
> 
> 
> Review request for Ambari and Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-9891
>     https://issues.apache.org/jira/browse/AMBARI-9891
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Verifying Python version compatibility...
>     Using python  /usr/bin/python2.7
>     Found ambari-agent PID: 6635
>     Stopping ambari-agent
>     Traceback (most recent call last):
>       File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 276, in <module>
>         main(heartbeat_stop_callback)
>       File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 220, in main
>         stop_agent()
>       File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 168, in stop_agent
>         raise Exception("Error while performing agent stop. " + res['error'] + res['output'])
>     Exception: Error while performing agent stop. /var/lib/ambari-agent/ambari-sudo.sh: 18: /var/lib/ambari-agent/ambari-sudo.sh: [[: not found
>     /var/lib/ambari-agent/ambari-sudo.sh: 28: /var/lib/ambari-agent/ambari-sudo.sh: Syntax error: "(" unexpected (expecting "fi")
>     
>     Removing PID file at /var/run/ambari-agent/ambari-agent.pid
>     ambari-agent successfully stopped
> 
> 
> Diffs
> -----
> 
>   ambari-common/src/main/python/ambari_commons/shell.py 70f4af9 
> 
> Diff: https://reviews.apache.org/r/31679/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>