You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@fluo.apache.org by GitBox <gi...@apache.org> on 2022/05/31 20:13:34 UTC
[GitHub] [fluo-uno] EdColeman opened a new pull request, #281: Update kill cmd for ZooKeeper
EdColeman opened a new pull request, #281:
URL: https://github.com/apache/fluo-uno/pull/281
The current script is using pgrep, looking for QuorumPeerMain to find the ZooKeeper pid - this does not seem to work when checking ZooKeeper status or when trying to stop ZooKeeper. Update the command to use ps aux.
(Using: OS version rhel 8.6)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-uno] ctubbsii commented on pull request #281: Update kill cmd for ZooKeeper
Posted by GitBox <gi...@apache.org>.
ctubbsii commented on PR #281:
URL: https://github.com/apache/fluo-uno/pull/281#issuecomment-1144005886
This is a bug in that older version. It was fixed in 3.3.16. See my comment for Fedora 31 at https://bugzilla.redhat.com/show_bug.cgi?id=1782309#c3
I don't think we should fix this in uno. The real problem is that RHEL is forked from a very old version of Fedora and has very out-of-date tools. One workaround is that you can create an alias for pgrep so that it works correctly, assuming there's not already an update to pgrep for your OS available.
It would also help if ZK scripts used the CLASSPATH environment variable instead of passing `-cp` on the Java command-line. That's an upstream bug in ZK.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-uno] EdColeman commented on pull request #281: Update kill cmd for ZooKeeper
Posted by GitBox <gi...@apache.org>.
EdColeman commented on PR #281:
URL: https://github.com/apache/fluo-uno/pull/281#issuecomment-1143742833
I can see the process with jps and ps, however grep does not return anything.
```
[fluo-uno]$ jps -m
22965 QuorumPeerMain /home/fluo-uno/install/apache-zookeeper-3.7.0-bin/bin/../conf/zoo.cfg
23226 Jps -m
[luo-uno]$ ps aux | grep "[Q]uorumPeerMain" | awk '{print $2}'
22965
[fluo-uno]$ pgrep -f "[Q]uorumPeerMain"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-uno] milleruntime commented on pull request #281: Update kill cmd for ZooKeeper
Posted by GitBox <gi...@apache.org>.
milleruntime commented on PR #281:
URL: https://github.com/apache/fluo-uno/pull/281#issuecomment-1143552571
I just tried: `pgrep -f "[Q]uorumPeerMain"` and that worked on Ubuntu.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-uno] EdColeman commented on pull request #281: Update kill cmd for ZooKeeper
Posted by GitBox <gi...@apache.org>.
EdColeman commented on PR #281:
URL: https://github.com/apache/fluo-uno/pull/281#issuecomment-1143876458
pgrep version: `$ pgrep from procps-ng 3.3.15`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-uno] ctubbsii commented on pull request #281: Update kill cmd for ZooKeeper
Posted by GitBox <gi...@apache.org>.
ctubbsii commented on PR #281:
URL: https://github.com/apache/fluo-uno/pull/281#issuecomment-1144008442
See also #243
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-uno] milleruntime commented on pull request #281: Update kill cmd for ZooKeeper
Posted by GitBox <gi...@apache.org>.
milleruntime commented on PR #281:
URL: https://github.com/apache/fluo-uno/pull/281#issuecomment-1143853441
Different version of `pgrep`? What does `prep --version` print? I am running:
pgrep from procps-ng 3.3.12
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-uno] EdColeman commented on pull request #281: Update kill cmd for ZooKeeper
Posted by GitBox <gi...@apache.org>.
EdColeman commented on PR #281:
URL: https://github.com/apache/fluo-uno/pull/281#issuecomment-1144111888
The may be other ways to address this - update pgrep or change the way the classpath is passed to commands to shorten command length.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [fluo-uno] EdColeman closed pull request #281: Update kill cmd for ZooKeeper
Posted by GitBox <gi...@apache.org>.
EdColeman closed pull request #281: Update kill cmd for ZooKeeper
URL: https://github.com/apache/fluo-uno/pull/281
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org