문제

When I run Cassandra using sudo ./cassandra -f -p pid.txt, Cassandra runs correctly, outputting Listening for thrift clients..., but the file pid.txt is not created.

Without the -f option, the pid file is created as expected. Is this normal behavior?

도움이 되었습니까?

해결책

Yes. This is normal behavior as expected:

https://github.com/apache/cassandra/blob/trunk/bin/cassandra#L142

The pid file is typically used by monitoring processes and init scripts. When you start in foreground, it does not make sense for the process to have pid file as you can just terminate it by using Ctrl-C.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top