2

Can anyone help me debug this?

root@xxx:~# service cassandra start root@xxx:~# service cassandra status * Cassandra is not running

I looked in the /var/log/cassandra/system.log file but there is nothing.

I can't figure out why this service doesn't start. :(

Al B
  • 31
  • 1
  • 3
  • Try running it manually: `cassandra -p cassandra.pid` If Cassandra has errors related to your Java install, the probably won't make it to your system.log. – Aaron May 24 '16 at 14:31
  • Cassandra 2.0 and later require Java 7u25 or later. – Al B May 24 '16 at 15:11
  • Have you set the appropriate user resource limits? http://docs.datastax.com/en/cassandra/2.0/cassandra/install/installRecommendSettings.html?scroll=reference_ds_sxl_gf3_2k__user-resource-limits – Aaron May 24 '16 at 15:16

2 Answers2

1

I got it working by upgrading to Java 8. https://askubuntu.com/questions/508546/howto-upgrade-java-on-ubuntu-14-04-lts

Thanks for your help guys.

Community
  • 1
  • 1
Al B
  • 31
  • 1
  • 3
0

You're running cassandra as root. That could be the problem: Starting cassandra as a service does not work for 2.0.5, sudo cassandra -f works

If you want to start cassandra as root you can use the -R option. If nothing will work, you can start cassandra with /etc/YOURCASSANDRAPATH/bin/cassandra -R

Community
  • 1
  • 1
Citrullin
  • 2,269
  • 14
  • 29
  • Unfortunately that doesn't work. `al@xxx:~$ service cassandra start /etc/init.d/cassandra: 71: ulimit: error setting limit (Operation not permitted) /etc/init.d/cassandra: 72: ulimit: error setting limit (Operation not permitted) al@xxx:~$ start-stop-daemon: unable to set gid to 115 (Operation not permitted)` If I use sudo then the same result as root. Just nothing happens. :( – Al B May 24 '16 at 15:09
  • have you found any solution? – H Raval Apr 07 '17 at 14:21