# dpkg -i cassandra_3.11.4_all.deb Selecting previously unselected package cassandra. (Reading database ... 12644 files and directories currently installed.) Preparing to unpack cassandra_3.11.4_all.deb ... Unpacking cassandra (3.11.4) ... dpkg: dependency problems prevent configuration of cassandra: cassandra depends on openjdk-8-jre-headless | java8-runtime; however: Package openjdk-8-jre-headless is not installed. Package java8-runtime is not installed. cassandra depends on python (>= 2.7); however: Package python is not installed. dpkg: error processing package cassandra (--install): dependency problems - leaving unconfigured Processing triggers for systemd (241-5) ... Errors were encountered while processing: cassandra # apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: ....
With this version of Java:
# java -version openjdk version "11.0.4" 2019-07-16 OpenJDK Runtime Environment (build 11.0.4+11-post-Debian-1deb10u1) OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Debian-1deb10u1, mixed mode, sharing)
Some changes need to be made to the jvm options file:
#diff /etc/cassandra/jvm.options.original /etc/cassandra/jvm.options 102c102 < -XX:ThreadPriorityPolicy=42 --- > # -XX:ThreadPriorityPolicy=42 203c203 < -XX:+UseParNewGC --- > # -XX:+UseParNewGC 247,251c247,251 < -XX:+PrintGCDateStamps < -XX:+PrintHeapAtGC < -XX:+PrintTenuringDistribution < -XX:+PrintGCApplicationStoppedTime < -XX:+PrintPromotionFailure --- > #-XX:+PrintGCDateStamps > #-XX:+PrintHeapAtGC > #-XX:+PrintTenuringDistribution > #-XX:+PrintGCApplicationStoppedTime > #-XX:+PrintPromotionFailure 254,256c254,256 < -XX:+UseGCLogFileRotation < -XX:NumberOfGCLogFiles=10 < -XX:GCLogFileSize=10M --- > #-XX:+UseGCLogFileRotation > #-XX:NumberOfGCLogFiles=10 > #-XX:GCLogFileSize=10M
But 'nodetool status' will abort with a NullPtrException, so can't use cassandra 3.11 on Buster. It will need to be installed on Stretch. Cassandra 4 may work on Buster.