I have been trying to test the new Cassandra 6 alpha release for the last few days, but have been a bit stuck.
Firstly I encountered some issues running multiple nodes within one machine, TCM does not seem to like that and seems to get in a muddle using multiple loopback addresses, so I ended up raising a bug for that.
Next up I tried using Docker to build a cluster, but being an alpha release, I could not find an official image, I guess that is not surprising. I know how to use docker, but I am not a great expert on building images, it is much more of a case using existing images for me.
For anyone else wanting to using cassandra 6 in docker, this actually proved to be quite simple, well, after quite a bit of trail and error.
So here is a quick hack to build a Cassandra 6 image.
1) Find the docker-library/cassandra repository on github
2) Take a local copy of the 5.0 directory, it is only 2 files, so no need to even clone the whole repository.
3) Line 98 – 99 in the Docker file are as follows:
ENV CASSANDRA_VERSION 5.0.7
ENV CASSANDRA_SHA512 7a36805a87adacd1c897dabf81e5c7007334936ae200340504474e09eb0800c0a7ff5f8c7778fd19a96a93b1b3f5844aff5644e55cd33928b358fea53159c2c9
These should be changed to the following, but don’t take my word for the SHA512 valsue, check it against the release file showing the SHA512
ENV CASSANDRA_VERSION 6.0-alpha1
ENV CASSANDRA_SHA512 c20b74f9dcd1357b96690656b126d639fe39ae2666184e7477245d90fdc1161e37a6be32ad40b18e01c8cd773906671b1eae461cb77edb816a84fb008e7a21fb
4) The cassandra 6 image can now be built using the following command:docker build -t cassandra:6-alpha1 .
