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 download and install Cassandra?
 
Subject: How to download and install Cassandra?
Author: EricJ
In response to: Apache Cassandra
Posted on: 09/29/2015 02:27:17 AM


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


     

    > On 09/29/2015 02:23:29 AM EricJ wrote:

    Apache Cassandra is an open source distributed NOSQL database designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.

    Major features:
  • Large scalability -- achieved by distributed partitions
  • High availability -- achieved by multiple nodes
  • Fault-tolerance -- achieved by non-master-slave replicas with no single point of failure





    References:

  •  


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