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:
Switch to root
su
Install git
apt install git
Switch to normal user
su <non-root-username>
git clone https://github.com/aquib-sh/setup-hadoop
cd setup-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.
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
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