I’m trying to start a Cassandra instance (0.8.10) from Jenkins (latest version, 1.463).
Inside a “free-style project” job, I have a “Execute shell” build step, where I have tried a couple of approaches:
.../tools/apache-cassandra-0.8.10/bin/cassandra -f
and
.../tools/apache-cassandra-0.8.10/bin/cassandra
The first approach starts Cassandra ok, but Jenkins doesn’t exit the build and keeps on building. If I stop the build, the Cassandra process dies as well.
The second approach fails because the Cassandra project dies as soon as the build finishes.
I have also tried:
.../tools/apache-cassandra-0.8.10/bin/cassandra -f &
that is kind of lame, and doesn’t work anyway.
Any ideas on how to start Cassandra from Jenkins?
Try using nohup with
&. Also pipe stdout and stderr to a file or /dev/null: