Embedded ZooKeeper fails to stop
If you cannot stop the embedded ZooKeeper, you can force the processes to stop.
Sometimes unexpected errors might occur, which prevent
the embedded
ZooKeeper from running successfully. When you try to stop the embedded
ZooKeeper, you might receive the following error:
streamtool embeddedzk --stop
CDISA5082E An unexpected zookeeper related error occurred. The error message is 'KeeperErrorCode = ConnectionLoss'.
If the streamtool embeddedzk --stop command fails, you can stop the embedded ZooKeeper by stopping the appropriate processes.
To list the processes, enter the following command:
ps uxww | grep zookeeper
Kill the embedded
ZooKeeper monitor process (com.ibm.streams.management.zookeeper.server.ZKSupervisorServer),
and then the ZooKeeper server
process (com.ibm.streams.zookeeper.StreamsQuorumPeer). You can then
restart embedded
ZooKeeper by running the following command:
streamtool embeddedzk --start