Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Configure Cassandra on Ubuntu
#1


   

How to Configure Cassandra on Ubuntu


   

Cassandra’s default configuration applies when Cassandra is used on a single node. However, if Cassandra is used in a
        cluster or by multiple Cassandra nodes simultaneously, it’s handy to make some modifications to the configuration
        file.


   

The Cassandra configuration file is called cassandra.yaml and is located at /etc/cassandra/.
        Open it with your preferred text editor and modify some of its settings:


   
sudo nano /etc/cassandra/cassandra.yaml

   

Firstly, change the name of the cluster. Look for the cluster_name parameter and
        assign a name:


   
cluster_name: [cluster_name]
            alt="Cluster Name" style="width: 40%;">

   

It’s preferable to change the data storage port. To do this, look for the storage_port parameter and
        assign one.


   

Remember that it must be an available port in the firewall for everything to work correctly. In our case, the port is
        set as 7000.


   
storage_port: [port]
            alt="Storage Port" style="width: 40%;">

   

Finally, look for the seed_provider parameter and add the IP addresses of the nodes that make up the
        cluster, separated by a comma:


   
Seeds: [node_ip]:[node_port],[node_ip]:[node_port]...[node_ip]:[node_port]

   

Once done, save the file and reload Cassandra.


   
sudo systemctl reload cassandra

   

Now test out the connection with the following command:


   
nodetool status
            alt="Nodetool Status" style="width: 40%;">

   

Great, the cluster is up and running!

   
   

   
   

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)