Create multi node Elassandra Cluster

Elassandra = Cassandra + Elasticsearch

  • node 1 - 10.10.10.1
  • node 2 - 10.10.10.2
  • node 3 - 10.10.10.3
  1. First we must need to install Java Runtime 1.8.
sudo apt-get install openjdk-8-jre-headless
sudo apt-get install software-properties-common apt-transport-https gnupg2
sudo add-apt-repository 'deb [arch=all] https://nexus.repo.strapdata.com/repository/apt-releases/ stretch main'
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys B335A4DD
sudo apt-get update && sudo apt-get install elassandra
sudo systemctl start cassandra
  • rpc_address = 10.10.10.1
  • listen_address = 10.10.10.1
  • rpc_address = 10.10.10.2
  • listen_address = 10.10.10.2
  • rpc_address = 10.10.10.3
  • listen_address = 10.10.10.3
To prevent problems in gossip communications, be sure to use the same list of seed nodes for all nodes in a cluster.

How to setting seed nodes

  1. For node1 and node2, configure node1 as a seed node.
nodetool status

Reference

  1. https://docs.datastax.com/en/dse/6.0/dse-admin/datastax_enterprise/production/seedNodesForSingleDC.html#Preventingproblemsingossipcommunications
  2. https://elassandra.readthedocs.io/en/latest/installation.html

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store