go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  How to customize/Configure Cassandra
 
Subject: How to customize/Configure Cassandra
Author: EricJ
In response to: How to download and install Cassandra?
Posted on: 09/29/2015 02:37:20 AM


Open C:\downloads\apache-cassandra-2.2.1\conf\cassandra.yaml:

Change the following default settings:

cluster_name: 'Test Cluster'
listen_address: localhost
rpc_address: localhost
 - seeds: "127.0.0.1"


to:

cluster_name: 'Cluster101'
listen_address: 10.11.12.13
rpc_address: 10.11.12.13
– seeds: "10.11.12.13"


C:\downloads\apache-cassandra-2.2.1\bin> nodetool status 

Starting NodeTool
Datacenter: datacenter1
========================
Status=Up/Down|/ State=Normal/Leaving/Joining/Moving
--  Address      Load      Tokens  Owns  Host ID        Rack
UN  10.11.12.13  11.41 MB  256      ?    4571f3b-51807  rack1


As it can be seen that this Cassandra is running on 10.11.12.13 which can be accessed from outside.


 

> On 09/29/2015 02:27:17 AM EricJ wrote:


Step 1. Get the Apache Cassandra
  • Go to: http://cassandra.apache.org/download/
  • Click on: apache-cassandra-2.2.1-bin.tar.gz
  • Use 7-zip to extract files into: C:\temp\apache-cassandra-2.2.1-bin.tar\
  • Use 7-zip to extract files into: C:\tmp\apache-cassandra-2.2.1-bin\
  • Move the folder to: C:\downloads\apache-cassandra-2.2.1


    Step 2. Set the Cassandra environment
              JAVA_HOME = C:\Program Files\Java\jdk1.7.0_25
         CASSANDRA_HOME = C:\downloads\apache-cassandra-2.2.1
                   PATH = C:\downloads\apache-cassandra-2.2.1\bin
    



    Step 3. Start server
    C:\downloads\apache-cassandra-2.2.1\bin>cassandra -f
    



    Step 4. Check Server/node status

    How do I know Cassandra is running or not?
    C:\downloads\apache-cassandra-2.2.1\bin> nodetool status 
    
    Starting NodeTool
    Datacenter: datacenter1
    ========================
    Status=Up/Down|/ State=Normal/Leaving/Joining/Moving
    --  Address     Load      Tokens  Owns  Host ID        Rack
    UN  127.0.0.1   11.41 MB  256      ?    4571f3b-51807  rack1
    


    As it can be seen that the node is "Up" AND "Normal".


    Step 5. Stop server

    Simply by Ctrl+C





    References:

  •  


     
    Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
     
    Get your own forum today. It's easy and free.