0% found this document useful (0 votes)
12 views7 pages

Password For Got: After Opening Virtual Box, Import Hadoop Appliance That Was Downloaded From Greatonlinetraining Website

The document provides instructions for setting up Hadoop on Ubuntu and performing some initial tasks like data ingestion. It includes commands to import the Hadoop appliance virtual machine, start Hadoop services, view files in directories, export data from a file to HDFS using Sqoop, edit configuration files, install MySQL dependencies, start the MySQL service, and create a database and table.

Uploaded by

gyan123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views7 pages

Password For Got: After Opening Virtual Box, Import Hadoop Appliance That Was Downloaded From Greatonlinetraining Website

The document provides instructions for setting up Hadoop on Ubuntu and performing some initial tasks like data ingestion. It includes commands to import the Hadoop appliance virtual machine, start Hadoop services, view files in directories, export data from a file to HDFS using Sqoop, edit configuration files, install MySQL dependencies, start the MySQL service, and create a database and table.

Uploaded by

gyan123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Linux commands and Hadoop commands are case sensitive .

PASSWORD for GOT : 1234567890

After opening virtual box , import hadoop appliance that was downloaded from greatonlinetraining
website.

open Terminal in Ubuntu OS

Write commands

: cd $HADOOP_HOME <press enter>


- bin/hadoop <enter>

- bin/start-all.sh
- jps <enter>

now open firefox or chrome

type localhost:50070 in url

To stop hadoop system type

- bin/stop-all.sh <enter>
Now Download HDPCD practicals from github rashidaligee

we have to perform Data Ingestion First (do this manually)

1. Create "practical" named folder in root directory

cd .. <enter> for go one step up dirctory

To see files in dirctory

ls HDPCD/ <enter>

ls /home/student/hdpcd <enter>

2. Task 03 -- Export sfo_weather.csv in hdfs filesystem from dataingestion folder (called as sqoop export)

To edit .list file

sudo gedit /etc/apt/sources.list


install mysql dependencies first

*********************************************

I am not sure if it will work, but try this. First you need to uninstall anything that is related to mysql:

sudo apt-get purge mysql*


sudo apt-get autoremove
sudo apt-get autoclean
Then the important bit, this error could be caused because your distribution is not upgraded recently, or at least conflicts are not resolved
properly. So next thing is to upgrade it like you did before but without removing first:

sudo apt-get dist-upgrade


Now after this is done, you can try to install mysql as normal again. Hope this will work, please give a report. If it doesnt work we'll try another
fix.

*****************************************

start mysql

- systemctl start mysql

- /usr/bin/mysql -u root -p <enter> start mysql command promt

mysql> create database flightinfo;

mysql> show databases;

mysql>create table weather (station varchar (100)........) ;

mysql> desc weather;

You might also like