Apache Spark Cassandra Installation, In this tutorial one, can easily know the information about Apache Spark Cassandra Installation and setup Cassandra cluster ubuntu which are available and are used by most of the Spark developers. Are you dreaming to become to certified Pro Spark Developer, then stop just dreaming, get your Apache Spark Scala certification course from India’s Leading Apache Spark Scala Training institute.
In this tutorial, we will learn how to install Cassandra on ubuntu. We will learn various steps for the Cassandra installation on Ubuntu to set up the Apache Spark. We will start with platform requirements for Apache Scala Setup Cassandra cluster ubuntu, Cassandra installation prerequisites, various software required for installing Cassandra on Ubuntu. Do you want to set up the Cassandra on Ubuntu, So follow the below mentioned Apache spark Cassandra installation guide from Prwatech and take Apache Spark Scala training like a pro from today itself under 15+ Years of Hands-on Experienced Professionals.
CREATE KEYSPACE
A keyspace is nothing but an object which holds the information of column family user defines the data type. In RDBMS we have a database but in Cassandra we have keyspace.
Syntax:
Create keyspace test with replication={‘class’:SimpleStragey’,’replication_factore:3};
A keyspace is created now
To verify
Syntax: DESCRIBE keyspaces;
CREATING TABLESyntax: Creating table student
(
Student_name text Primary key,
Std_age int,
Std_address text,
Std_phonevarint);
INSERTION OPERATIONSyntax : INSERT into(student_name,std_age,std_address,std_phone) values(‘H kumar’,25,Bangalore,909090909);
ALTERTABLESyntax : Alter table student add student_email text
DROP COLUMN
Syntax: ALTER TABLE STUDENT DROP(STD_AGE);
TRUNCATE TABLE
Syntax: TRUNCATE Student;