Skip to content

A BASH script to setup Apache Hadoop and Apache Hive with Derby database on Debian GNU/Linux

License

Notifications You must be signed in to change notification settings

aquib-sh/setup-hadoop

Repository files navigation

Setup Hadoop using BASH Script on Debian GNU/Linux

This script was wrote for and tested on Debian GNU/Linux. Although it should work on Debian based distros like Ubuntu but it has only been tested on pure Debian.

Two reference video (hindi) to this script can be found on YouTube:

Installing Git

Switch to root

su

Install git

apt install git

Cloning the repo

Switch to normal user

su <non-root-username>
git clone https://github.com/aquib-sh/setup-hadoop
cd setup-hadoop

Setup Debian Environment for Hadoop

Switch to root

su

Make setup_debian.sh executable and run

chmod +x setup_debian.sh
./setup_debian.sh

You will be prompted to enter the name of non-root user account. Enter the name of the user you want to grant sudo previledge.

Setup Hadoop

Switch to normal user that you previously entered while prompted

su <non-root-username>

Make setup_hadoop.sh executable and run

chmod +x setup_hadoop.sh
./setup_hadoop.sh

Verify if installation is sucessful

Enter Hadoop directory

cd hadoop-3.3.4

Start all services

sbin/start-all.sh

After a short while all services will start and you can verify via jps commands if all the scripts are running

jps

This should give an output similar to below:

1539 NameNode  
1988 Jps  
793 SecondaryNameNode  
1037 NodeManager  
957 ResourceManager  
655 DataNode