installing ngodb nosql big data processing …cis.csuohio.edu › ~sschung › cis612 ›...

7
Installing MongoDB NoSQL Big Data Processing systems on Hadoop: And performing some basic CRUD operations. Installing and Configuring MongoDB:

Upload: others

Post on 27-Jun-2020

30 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Installing ngoDB NoSQL Big Data Processing …cis.csuohio.edu › ~sschung › cis612 › CIS612LAB4_2_MongoHiv...Installing ngoDB NoSQL Big Data Processing systems on Hadoop: And

Installing MongoDB NoSQL Big Data Processing systems on Hadoop:

And performing some basic CRUD operations.

Installing and Configuring MongoDB:

Page 2: Installing ngoDB NoSQL Big Data Processing …cis.csuohio.edu › ~sschung › cis612 › CIS612LAB4_2_MongoHiv...Installing ngoDB NoSQL Big Data Processing systems on Hadoop: And

Updating it:

Starting MongoDB:

Creating a Database Exampledb and performing a simple insert and find operation:

Page 3: Installing ngoDB NoSQL Big Data Processing …cis.csuohio.edu › ~sschung › cis612 › CIS612LAB4_2_MongoHiv...Installing ngoDB NoSQL Big Data Processing systems on Hadoop: And

Defining some variables and inserting them into our database exampledb:

Finding a Name in the inserted data:

Collections that are present in the server:

Distinct Command:

Page 4: Installing ngoDB NoSQL Big Data Processing …cis.csuohio.edu › ~sschung › cis612 › CIS612LAB4_2_MongoHiv...Installing ngoDB NoSQL Big Data Processing systems on Hadoop: And

Creating a post and inserting it into our database:

To see how the document was created:

Updating the document:

Page 5: Installing ngoDB NoSQL Big Data Processing …cis.csuohio.edu › ~sschung › cis612 › CIS612LAB4_2_MongoHiv...Installing ngoDB NoSQL Big Data Processing systems on Hadoop: And

Deleting the Document:

HIVE INSTALLATION AND CONFIGURATION

Downloading Hive

Extracting the downloaded file

Editing .bashrc file and setting the HIVE path

Page 6: Installing ngoDB NoSQL Big Data Processing …cis.csuohio.edu › ~sschung › cis612 › CIS612LAB4_2_MongoHiv...Installing ngoDB NoSQL Big Data Processing systems on Hadoop: And

Hive version

Creating a warehouse path for HIVE in HDFS

Giving write permissions to the created group

After this we edit hive-env.sh file, insert Hadoop path there and save the file.

When adding the Hadoop path is done we setup the derby database. By default, Hive

uses Derby database. So we Initialize Derby database.

Page 7: Installing ngoDB NoSQL Big Data Processing …cis.csuohio.edu › ~sschung › cis612 › CIS612LAB4_2_MongoHiv...Installing ngoDB NoSQL Big Data Processing systems on Hadoop: And

Now we run HIVE

Now we create a employee table and insert the data into it with empdata.txt created with

4 employee details