How to Install Cassandra on Windows

Hi Programmers , welcome to new article of ozanecare. This article i’ll explain complete steps download and install Cassandra on windows 10 operating system. Let’s Follow the Following steps.

1.Install Any Java version but i highly recommend you install java version 8. Install jdk8 and set path C:\Java\jdk1.8.0_211\bin
Create Java JAVA_HOME = put java path.

2.Install any python version but i recommend you install python 2.7 version and set path on C drive.
C:\Python27

3.To Download Cassandra follow below link.
: https://www.python.org/downloads/release/python-2716/
Download cassandra and set the path
C:\apache-cassandra-3.11.4\bin

4.To start the Cassandra open command prompt and write
cassandra -f
To get the detail about Cassandra
nodetool status
now you can see cqlsh comes there.
cqlsh> describe keyspaces; (for getting details of keyspace.
To create keyspace, write below query.
create keyspace spoint with replication = {‘class’:’SimpleStrategy’,’replication_factor’:3};
For creating Table.
CREATE TABLE Dev
(
ID int PRIMARY KEY,
Name text
);
select * from Dev;
–For inserting the data
insert into Dev (ID,Name) values (111,’sam’);

installation steps

Happy Cassandra…Thanks.

Post Author: adama