How To Download Cassandra In Windows 10
Unproblematic Style to Install Cassandra In Windows ten
Effigy out simple mode to get installed and configure to run cassandra NoSQL database in Windows 10 PC in but 4 steps:
I am writing this tutorial since i face claiming to install cassandra in windows on self and i want to share what i figure out for the solution to other geeks.
What is cassandra and why to utilise information technology?
Apache Cassandra is a highly scalable, high-performance distributed database designed to handle large amounts of data across many article (cheap) servers, providing high availability with no single point of failure. It is a type of NoSQL database that is considered a primal-value store. Information technology'south query much similar to SQL.
- Outgrown your regular relational database i.e petabytes, zettabytes size
- Demand of fast insert/update/option of data that is scalable and mistake-tolerant.
Steps to setup Cassandra on Window Car locally.
1. Cassandra need JDK to run. First need to install JDK on the PC.
- Go To Oracle (SignUp required) or Filehippo to download JDK ane.8 from which you notice suitable.
- Run the Install equally it is.
- Configure JDK path As:
- Re-create the JDK where is installed it's bin directory. Mine is 64-flake found inside "C:\Programme Files\Java\jdk1.viii.0_181\bin" and place on Surroundings Variable every bit new Env_name : "JAVA_HOME" afterwards we employ for cassandra.
- Annotation: Progra~1 = 'Program Files' for 64-bit
Progra~ii = 'Plan Files(x86)' for 32-fleck in Environs path.
ii. Go to Apache Cassandra Download Folio. And Download the latest version. The latest version at that time is cassandra-three.11.4
- Unzip information technology and identify all files inside sub folder into ……………….. "C:\Program Files\apache-cassandra-3.11.4"
- Open CMD inside "C:\Plan Files\apache-cassandra-iii.xi.4\bin" and blazon cassandra then the output as shown beneath.
- If y'all got above error then Edit "cassandra.bat" Add JAVA_HOME as:
- Save the cassandra.bat then run "cassandra.bat -f" with CMD Run as Administrator. This time, error should resolve if your edit successful.
3. Need Python2.7 to run Cassandra Query shell cqlsh
.
- Download Python2.7 latest version and extract within the "C:\Program Files\apache-cassandra-3.eleven.4\bin" during installing. Or simply copy after installing python2.7 all files inside "bin" directory of cassandra-3.xi.4. This is a easy style to become.
four. Finally run the Cassandra Server as "cassandra.bat -f" with CMD Run as Administrator from the bin directory. Following screen should see on successful start.
- Don't close it, keep running.
- And so, open other CMD become over the bin directory of cassandra installed. To run
cqlsh
by type cqlsh . Post-obit output should get.
Let'south endeavor to create the tabular array in information technology:
Beginning create the namespace where data holds.
cqlsh> create keyspace test
cqlsh> Utilise test;
cqlsh:test>CREATE Table emp(
emp_id int Primary Fundamental,
emp_name text,
emp_city text,
emp_sal varint,
emp_phone varint
);
For Verification: cqlsh:test> select * from emp;
Output as:
Congratulations! You lot have your Cassandra installed. Now yous can explore it.
If you find helpful this tutorial please click on light-green icon, share to others.
Observe out my other tutorial as:
Source: https://susant.medium.com/simple-way-to-install-cassandra-in-windows-10-6497e93989e6
Posted by: yeagerfamery.blogspot.com
0 Response to "How To Download Cassandra In Windows 10"
Post a Comment