Archive for the ‘Cassandra’ Category

Getting JConsole working over ssh with Cassandra

I’ve been working with Cassandra recently and wanted to start using JConsole. JConsole exposes some pretty useful information about Cassandra and the Java environment in which it runs. It operates over JMX and by default it only accepts connections from the localhost. Since we don’t run GUIs on our servers and we didn’t want to open […]

Staged service restart with Ansible

I’ve been working on a small project to create a Cassandra Cluster for Development purposes. I’m using Vagrant and Ansible to deploy a 5-node Cassandra Cluster and node #5 would always fail to join the cluster. I checked /var/log/cassandra/cassandra.log and this is what I found; INFO [InternalResponseStage:1] 2017-09-09 18:49:07,673 ColumnFamilyStore.java:406 – Initializing system_auth.roles INFO [main] […]

A Cassandra Cluster using Vagrant and Ansible

I’ve started a new project to create a Cassandra Cluster for development purposes. It’s available on my github and uses Vagrant, Ansible, and VirtualBox. Assuming everything is installed it’s quite easy to get started; ?View Code BASHgit clone https://github.com/rhysmeister/CassandraCluster.git cd CassandraCluster vagrant up Check the status of the machines; ?View Code BASHvagrant status; Current machine […]

Cassandra 3 Node Cluster Setup Notes

Install on each node ?View Code BASHwget http://www-eu.apache.org/dist/cassandra/redhat/30x/cassandra-3.0.13-1.noarch.rpm yum install jre rpm -ivh cassandra-3.0.13-1.noarch.rpm chkconfig cassandra on Configuration changes on each node vi /etc/cassandra/conf/cassandra.yaml Customise the seeds / ip address for your environment cluster_name: ‘cassandra_cluster’ seeds: “192.168.65.120,192.168.65.121,192.168.65.122” listen_address: rpc_address: Start the cassandra service on each node ?View Code BASHservice cassandra start service cassandra status If […]