Let's see how we can deploy an Apache Cassandra cluster on our Apache Mesos cluster using the Marathon framework. Before we start, let's quickly review our two JSON files, which will create one Cassandra container each on our Apache Mesos cluster. Let's check our JSON files:
You can see that we have the id as cassandra1, which is our container. We are not using cmd command hence, "cmd": null. We have defined cpus as 1, and memory is around 8 GB. We have not defined any disk, as we will be using external storage, which is AWS EBS. We wull also define instances as 1, and constraints is UNIQUE, as we will use a unique server to deploy these Cassandra images. We will use DOCKER as our container type, and the image will be cassandra. This will pull the cassandra image from Docker Hub. Then, we have defined some environments...