Installing Cassandra on Hadoop HDP Sandbox [Activity] | Cassandra with Hadoop Tutorial

Published: 17 June 2022
on channel: AmpCode
1,054
17

This lecture is all about Installing Cassandra on Hadoop HDP Sandbox where we have installed the Python version 2.7 and setup the repository to install Cassandra service, then we have started the Cassandra service on our Hortonworks HDP Sandbox and created a KEYSPACE which is a Database for Casandra and created one table in it. Below are the commands for installing Cassandra:

If you have Python 2.6 then you have to install 2.7 alongside with previous version with below commands:

su root
yum install scl-utils
yum install centos-release-scl-rh
yum install python27

scl enable python27 bash

If you already have Python 2.7 installed, then start executing below commands (remember to login as a root user to get all the privileges)

cd /etc/yum.repos.d

vi datastax.repo

---------inside vi editor-------

[datastax]
name = DataStax Repo for Apache Cassandra
baseurl = http://rpm.datastax.com/community
enabled = 1
gpgcheck = 0

----------------------------------

yum install dsc30
service cassandra start

cqlsh

CREATE KEYSPACE moviesdata WITH replication = {'class': 'SimpleStrategy', 'replication_factor':'1'} AND durable_writes = true;

USE moviesdata;

CREATE TABLE users (user_id int, age int, gender text, occupation text, zip text, PRIMARY KEY (user_id));

DESCRIBE TABLE users;

-------------------------------------------------------------------------------

In the previous lecture we have seen Apache Cassandra which is a another NoSQL Database designed to handle Big Data on Hadoop with no single point of failure which makes it the most highly available NoSQL database choice for your application. We have seen what is Apache Cassandra, how the data is stored in Cassandra, CAP Theorem in detail, features of Cassandra, its real world use cases and how we can integrate Cassandra with Hadoop Ecosystem.

-----------------------------------------------------------------------------------------------------------------------

HDP Sandbox Installation links:

Oracle VM Virtualbox: https://download.virtualbox.org/virtu...

HDP Sandbox link: https://archive.cloudera.com/hwx-sand...

HDP Sandbox installation guide: https://hortonworks.com/tutorial/sand...

-------------------------------------------------------------------------------------------------------------

Also check out similar informative videos in the field of cloud computing:


What is Big Data:    • What is Big Data? | Big Data Use Case...  


How Cloud Computing changed the world:    • How Cloud Computing changed the world!  

What is Cloud?    • What is Cloud Computing?  

Top 10 facts about Cloud Computing that will blow your mind!    • Top 10 facts about Cloud Computing th...  

Audience

This tutorial is made for professionals who are willing to learn the basics of Big Data Analytics using Hadoop Ecosystem and become a Hadoop Developer. Software Professionals, Analytics Professionals, and ETL developers are the key beneficiaries of this course.

Prerequisites

Before you start proceeding with this course, I am assuming that you have some basic knowledge to Core Java, database concepts, and any of the Linux operating system flavors.

---------------------------------------------------------------------------------------------------------------------------

Check out our full course topic wise playlist on some of the most popular technologies:

SQL Full Course Playlist-
   • SQL Full Course  


PYTHON Full Course Playlist-
   • Python Full Course  

Data Warehouse Playlist-

   • Data Warehouse Full Course  


Unix Shell Scripting Full Course Playlist-
   • Unix Shell Scripting Full Course  

--------------------------------------------------------------------------------------------------------------------------
Don't forget to like and follow us on our social media accounts which are linked below.

Facebook-
  / ampcode  

Instagram-
  / ampcode_tutorials  

Twitter-
  / ampcodetutorial  

Tumblr-
ampcode.tumblr.com

-------------------------------------------------------------------------------------------------------------------------

Channel Description-

AmpCode provides you e-learning platform with a mission of making education accessible to every student. AmpCode will provide you tutorials, full courses of some of the best technologies in the world today.By subscribing to this channel, you will never miss out on high quality videos on trending topics in the areas of Big Data & Hadoop, DevOps, Machine Learning, Artificial Intelligence, Angular, Data Science, Apache Spark, Python, Selenium, Tableau, AWS , Digital Marketing and many more.

#bigdata #datascience #technology #dataanalytics #datascientist #hadoop #hdfs #hdp #mongodb #cassandra #hbase #nosqldatabase #nosql


Watch video Installing Cassandra on Hadoop HDP Sandbox [Activity] | Cassandra with Hadoop Tutorial online without registration, duration hours minute second in high quality. This video was added by user AmpCode 17 June 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,054 once and liked it 17 people.