install two of the following nosql big data processing...

Post on 25-Aug-2020

3 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

CIS 612 Lab4_2

Install Two of the following NoSql Big Data Processing systems on Hadoop

1. Installing Mongodb

Starting the database with the mongod command as below .

Create a collection named”collection” and save the json file using mongoimport .

Run the server with mongo command and run the aggregate function on the

collection..

Db.collection.agrregate

2. Hive installation :

Run ssh localhost

Go to the hadoop folder and run namenode –format command as below.

Start the hadoop

Check all the nodes are working

Go to the hive directory and export the hadoop and hive paths as below

Start the hive database

Starting hive created an error as above and restart the hadoop with safemode

Again error

Fixed the error with a hadoop fs =chmod 777 / temp/hive

Successfully able to create table

Select *from the table amazon resulted into error

Create table test and show the conetents with a select statement .

top related