Install DataStax Cassandra 3 on Debain/ Ubuntu

  • 1

Install DataStax Cassandra 3 on Debain/ Ubuntu

Get Social!

datastax-logoThe following process will install the DataStax distribution of Cassandra on any Debian based system, such as Debian or Ubuntu. We’ll use the official DataStax apt repositories to install Cassandra using apt-get.

Cassandra is written in Java and the latest version (at the time of writing) of Cassandra requires Java 8. You can use either OpenJDK or visit my Oracle Java post on installing the Oracle distribution of Java 8.

Once you have Java 8 installed and confirmed you can continue to install Cassandra. Use java -version on the command line to check your Java version.

Install DataStax Cassandra 3.4

Note: You can use the simple Bash script to install Java 8 and a single instance of Cassandra found here.

The first step to installing Cassandra with apt is to add the DataStax Cassandra repository and repository key to your local apt list. Run the following command to add the required repository and update your local apt cache. Change the version 3.4 on the first line to match the version you’d like to install.

Once you’re updated then run the install command and begin the Cassandra install.

Debian’s policy is for software to be available locally after the install has completed and therefore your Cassandra instance will be running as a single stand alone node.

You can run the nodetool to check the install has completed and that the Cassandra instance is available.

The next step is to configure your Cassandra instance by editing the yaml config file /etc/cassandra/cassandra.yaml but that’s a blog post for another day.


1 Comment

siva

19-Jul-2016 at 2:02 pm

hi,

i am trying to move mysql to cassandra and i am using the below commmand. if i am wrong then please correct me
sqoop import -–connect jdbc:mysql://localhost:3306/cassandra -–username root –-table c1 –-split-by id -–cassandra-keyspace cassandra –-cassandra-column-family c1_cf –-cassandra-row-key id_pk -–cassandra-thrift-host localhost –cassandra-create-schema

please send on sivakumar.dasari@gmail.com

Thanks and Regards,
Siva

Leave a Reply