[
https://issues.apache.org/jira/browse/ZOOKEEPER-983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Patrick Hunt updated ZOOKEEPER-983:
-----------------------------------
Attachment: ZOOKEEPER-983.patch
fixes the problem with ssh by redirecting stdin/out/err.
you can test by running
ssh localhost "cd zk; bin/zkServer.sh start"
I also fixed a problem with stop, where start would fail to write the pid file
if the datadirectory didn't yet exist (or the pid file directory didn't already
exist - anything that would cause writing the pid file to fail)
> running zkServer.sh start remotely using ssh hangs
> --------------------------------------------------
>
> Key: ZOOKEEPER-983
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-983
> Project: ZooKeeper
> Issue Type: Bug
> Components: scripts
> Affects Versions: 3.3.2
> Reporter: Patrick Hunt
> Assignee: Patrick Hunt
> Priority: Minor
> Fix For: 3.3.3, 3.4.0
>
> Attachments: ZOOKEEPER-983.patch
>
>
> If zkServer.sh is run remotely using ssh as follows ssh will "hang" - i.e.
> not complete/return once the server is started. This is even though
> zkServer.sh starts the java vm in the background.
> $ ssh <host> "zkServer.sh start"
> this is due to the following issue:
> http://www.slac.stanford.edu/comp/unix/ssh_faq.html#logoff_hangs
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira