

{"id":2283,"date":"2017-04-26T13:05:11","date_gmt":"2017-04-26T13:05:11","guid":{"rendered":"http:\/\/data-flair.training\/blogs\/?p=2283"},"modified":"2025-03-28T19:14:02","modified_gmt":"2025-03-28T13:44:02","slug":"installation-of-hadoop-3-on-ubuntu","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/","title":{"rendered":"How to Install Hadoop 3 on Ubuntu &#8211; A Step-by step Installation Process"},"content":{"rendered":"<p>With this tutorial, we will learn the complete process to install Hadoop 3 on ubuntu. The process involves some easy-to-follow steps including commands and instructions. Each step is attached with screen images which will guide you throughout the process of Hadoop installation.<\/p>\n<p>Let&#8217;s begin the process.<\/p>\n<h2>Steps to Install Hadoop 3 on Ubuntu<\/h2>\n<h3>Prerequisites<\/h3>\n<p>First, download the Hadoop 3.1.2 from the below link:<\/p>\n<p style=\"text-align: left\"><a href=\"https:\/\/archive.apache.org\/dist\/hadoop\/common\/hadoop-3.1.2\/hadoop-3.1.2.tar.gz\">Hadoop 3.1.2<\/a><\/p>\n<p>Here are the steps for installing Hadoop 3 on ubuntu for your system:<\/p>\n<p><strong>Step 1:<\/strong> Install ssh on your system using the below command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo apt-get install ssh<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-ssh.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69704\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-ssh.jpg\" alt=\"Command to install ssh - Install hadoop 3.1.2\" width=\"1006\" height=\"834\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-ssh.jpg 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-ssh-150x124.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-ssh-300x249.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-ssh-768x637.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-ssh-520x431.jpg 520w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><\/p>\n<p>Type the password for the sudo user and then press <strong>Enter<\/strong>.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-installation.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69705\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-installation.jpg\" alt=\"ssh installation\" width=\"1004\" height=\"838\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-installation.jpg 1004w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-installation-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-installation-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-installation-768x641.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-installation-520x434.jpg 520w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><\/a><\/p>\n<p>Type <strong>\u2018Y\u2019<\/strong> and then press <strong>Enter<\/strong> to continue with the installation process.<\/p>\n<p><strong>Step 2:<\/strong> Install pdsh on your system using the below command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo apt-get install pdsh<\/pre>\n<div id=\"attachment_69706\" style=\"width: 1015px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-pdsh.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69706\" class=\"wp-image-69706 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-pdsh.jpg\" alt=\"Command to install pdsh - Hadoop 3.1.2 Installation\" width=\"1005\" height=\"836\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-pdsh.jpg 1005w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-pdsh-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-pdsh-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-pdsh-768x639.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/Command-to-install-pdsh-520x433.jpg 520w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/a><p id=\"caption-attachment-69706\" class=\"wp-caption-text\">Install pdsh command<\/p><\/div>\n<div id=\"attachment_69707\" style=\"width: 1016px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/pdsh-installation.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69707\" class=\"wp-image-69707 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/pdsh-installation.jpg\" alt=\"pdsh installation\" width=\"1006\" height=\"837\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/pdsh-installation.jpg 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/pdsh-installation-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/pdsh-installation-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/pdsh-installation-768x639.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/pdsh-installation-520x433.jpg 520w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><p id=\"caption-attachment-69707\" class=\"wp-caption-text\">pdsh installation<\/p><\/div>\n<p style=\"text-align: left\">Type <strong>\u2018Y\u2019<\/strong> and then press <strong>Enter<\/strong> to continue with the installation process.<\/p>\n<p><strong>Step 3:<\/strong> Open the .bashrc file in the nano editor using the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">nano .bashrc<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-69791 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-1.jpg\" alt=\"bashrc file in nano editor - hadoop 3.2.1 installation\" width=\"1042\" height=\"862\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-1.jpg 1042w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-1-150x124.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-1-300x248.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-1-768x635.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-1-1024x847.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-1-520x430.jpg 520w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/a><\/p>\n<p>Now set the <strong>PDSH_RCMD_TYPE<\/strong> environment variable to <strong>ssh<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">export PDSH_RCMD_TYPE=ssh<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-PDSH_RCMD_TYPE-to-ssh.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69709\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-PDSH_RCMD_TYPE-to-ssh.jpg\" alt=\"set PDSH_RCMD_TYPE to ssh - Download Hadoop 3.1.2\" width=\"939\" height=\"839\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-PDSH_RCMD_TYPE-to-ssh.jpg 939w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-PDSH_RCMD_TYPE-to-ssh-150x134.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-PDSH_RCMD_TYPE-to-ssh-300x268.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-PDSH_RCMD_TYPE-to-ssh-768x686.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-PDSH_RCMD_TYPE-to-ssh-520x465.jpg 520w\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" \/><\/a><\/p>\n<p>To save the changes you&#8217;ve made, press <strong>Ctrl+O<\/strong>. To exit the nano editor, press<strong> Ctrl+X<\/strong> and then press <strong>\u2018Y\u2019<\/strong> to exit the editor.<\/p>\n<p><strong>Step 4:<\/strong> Now configure ssh. To do so, create a new key with the help of the following command (don&#8217;t copy-paste following command, rather type):<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ssh-keygen -t rsa -P \"\"<\/pre>\n<p>Press <strong>Enter<\/strong> when asked the <strong>file name<\/strong>.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/create-new-ssh-key.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69712\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/create-new-ssh-key.jpg\" alt=\"create new ssh key - hadoop 3.1.2 installation steps\" width=\"1004\" height=\"836\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/create-new-ssh-key.jpg 1004w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/create-new-ssh-key-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/create-new-ssh-key-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/create-new-ssh-key-768x639.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/create-new-ssh-key-520x433.jpg 520w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><\/a><\/p>\n<p><strong>Step 5:<\/strong> Copy the content of the public key to authorized_keys.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">cat ~\/.ssh\/id_rsa.pub &gt;&gt; ~\/.ssh\/authorized_keys<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-access-to-host-machine.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69714\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-access-to-host-machine.jpg\" alt=\"ssh access to host machine - hadoop ubuntu - \" width=\"1006\" height=\"839\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-access-to-host-machine.jpg 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-access-to-host-machine-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-access-to-host-machine-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-access-to-host-machine-768x641.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-access-to-host-machine-520x434.jpg 520w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><\/p>\n<p><strong>Step 6:<\/strong> Now examine the SSH setup by connecting to the localhost.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ssh localhost<\/pre>\n<div id=\"attachment_69722\" style=\"width: 1018px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/check-connection-of-ssh.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69722\" class=\"wp-image-69722 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/check-connection-of-ssh.jpg\" alt=\"check connection of ssh - install hadoop on linux\" width=\"1008\" height=\"837\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/check-connection-of-ssh.jpg 1008w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/check-connection-of-ssh-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/check-connection-of-ssh-300x249.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/check-connection-of-ssh-768x638.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/check-connection-of-ssh-520x432.jpg 520w\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" \/><\/a><p id=\"caption-attachment-69722\" class=\"wp-caption-text\">connection check of ssh<\/p><\/div>\n<p>Type <strong>\u2018Y\u2019<\/strong> and then press <strong>Enter<\/strong> to continue with the connection.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-connection-checked.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69723\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-connection-checked.jpg\" alt=\"ssh connection checked - how to install hadoop 3.1.2 in ubuntu\" width=\"1006\" height=\"838\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-connection-checked.jpg 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-connection-checked-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-connection-checked-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-connection-checked-768x640.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/ssh-connection-checked-520x433.jpg 520w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><\/p>\n<p><strong>Step 7:<\/strong> Update the source lists.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo apt-get update<\/pre>\n<div id=\"attachment_69724\" style=\"width: 1015px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-update-packages.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69724\" class=\"wp-image-69724 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-update-packages.jpg\" alt=\"command to update packages - Install Hadoop 3.1.2\" width=\"1005\" height=\"836\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-update-packages.jpg 1005w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-update-packages-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-update-packages-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-update-packages-768x639.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-update-packages-520x433.jpg 520w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/a><p id=\"caption-attachment-69724\" class=\"wp-caption-text\">command to update packages<\/p><\/div>\n<div id=\"attachment_69725\" style=\"width: 1016px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/updating-packages.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69725\" class=\"wp-image-69725 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/updating-packages.jpg\" alt=\"updating packages - hadoop installation process\" width=\"1006\" height=\"838\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/updating-packages.jpg 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/updating-packages-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/updating-packages-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/updating-packages-768x640.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/updating-packages-520x433.jpg 520w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><p id=\"caption-attachment-69725\" class=\"wp-caption-text\">updating packages<\/p><\/div>\n<p><strong>Step 8:<\/strong> Now install Java 8 using the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo apt-get install openjdk-8-jdk<\/pre>\n<div id=\"attachment_69727\" style=\"width: 1015px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69727\" class=\"wp-image-69727 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-1.jpg\" alt=\"java installation loading\" width=\"1005\" height=\"839\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-1.jpg 1005w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-1-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-1-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-1-768x641.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-1-520x434.jpg 520w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/a><p id=\"caption-attachment-69727\" class=\"wp-caption-text\">java installation<\/p><\/div>\n<p>Type <strong>\u2018Y\u2019<\/strong> and then press <strong>Enter<\/strong> to finish with the installation process.<\/p>\n<div id=\"attachment_69728\" style=\"width: 1016px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-2.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69728\" class=\"wp-image-69728 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-2.jpg\" alt=\"java installation completion\" width=\"1006\" height=\"837\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-2.jpg 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-2-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-2-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-2-768x639.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/java-installation-2-520x433.jpg 520w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><p id=\"caption-attachment-69728\" class=\"wp-caption-text\">java installation completion<\/p><\/div>\n<p><strong>Step 9:\u00a0<\/strong>To cross-check whether you have successfully installed Java on your machine or not, run the below command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">java -version<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/checking-java-version.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69729\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/checking-java-version.jpg\" alt=\"checking java version - install hadoop 3.1.2\" width=\"1004\" height=\"839\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/checking-java-version.jpg 1004w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/checking-java-version-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/checking-java-version-300x251.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/checking-java-version-768x642.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/checking-java-version-520x435.jpg 520w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><\/a><\/p>\n<p><em><strong><a href=\"https:\/\/data-flair.training\/blogs\/hadoop-tutorials-home\/\">520+\u00a0FREE Hadoop Tutorials<\/a> to become a Hadoop Expert<\/strong><\/em><\/p>\n<p>Please Download Hadoop from the link given in the first section and copy the setup in your home directory (\/home\/USER-NAME)<\/p>\n<h3>Hadoop Installation on Ubuntu<\/h3>\n<p style=\"text-align: left\"><strong>Step 10:<\/strong>\u00a0Now locate the Hadoop tar file in your system.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/locate-hadoop-tar-file.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69730\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/locate-hadoop-tar-file.jpg\" alt=\"locate hadoop tar file \" width=\"1005\" height=\"839\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/locate-hadoop-tar-file.jpg 1005w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/locate-hadoop-tar-file-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/locate-hadoop-tar-file-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/locate-hadoop-tar-file-768x641.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/locate-hadoop-tar-file-520x434.jpg 520w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/a><\/p>\n<p><strong>Step 11:\u00a0<\/strong>Extract the <strong>hadoop-3.1.2.tar.gz<\/strong> file using the below command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">tar xzf hadoop-3.1.2.tar.gz<\/pre>\n<div id=\"attachment_69732\" style=\"width: 1016px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extract-hadoop-files.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69732\" class=\"wp-image-69732 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extract-hadoop-files.jpg\" alt=\"extract hadoop files - Install Hadoop 3.1.2\" width=\"1006\" height=\"838\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extract-hadoop-files.jpg 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extract-hadoop-files-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extract-hadoop-files-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extract-hadoop-files-768x640.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extract-hadoop-files-520x433.jpg 520w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><p id=\"caption-attachment-69732\" class=\"wp-caption-text\">extract hadoop files<\/p><\/div>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extraction-complete.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69733\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extraction-complete.jpg\" alt=\"Hadoop files extraction complete\" width=\"1006\" height=\"838\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extraction-complete.jpg 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extraction-complete-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extraction-complete-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extraction-complete-768x640.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/extraction-complete-520x433.jpg 520w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><\/p>\n<p><strong>Step 12:<\/strong> Rename <strong>hadoop-3.1.2 <\/strong>as <strong>hadoop<\/strong> for ease of use.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">mv hadoop-3.1.2 hadoop<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/rename-hadoop.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69734\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/rename-hadoop.jpg\" alt=\"rename hadoop 3.1.2.tar.gz - Install Hadoop 3.1.2\" width=\"1006\" height=\"838\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/rename-hadoop.jpg 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/rename-hadoop-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/rename-hadoop-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/rename-hadoop-768x640.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/rename-hadoop-520x433.jpg 520w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><\/p>\n<p><em>Any doubts in the process to install Hadoop 3.1.2 till now? Share them in the comment section.<\/em><\/p>\n<p><strong>Step 14:<\/strong> Now check the Java home path<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">ls \/usr\/lib\/jvm\/java-8-openjdk-amd64\/<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/list-of-files-in-java.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69737\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/list-of-files-in-java.jpg\" alt=\"list of files in java - Hadoop 3.1.2 Installation Steps\" width=\"1006\" height=\"829\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/list-of-files-in-java.jpg 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/list-of-files-in-java-150x124.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/list-of-files-in-java-300x247.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/list-of-files-in-java-768x633.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/list-of-files-in-java-520x429.jpg 520w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><\/p>\n<p><strong>Step 15:<\/strong> Open the <strong>hadoop-env.sh<\/strong> file in the nano editor. This file is located in <strong>~\/hadoop\/etc\/hadoop<\/strong> (Hadoop configuration directory).<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">nano hadoop-env.sh<\/pre>\n<p><span style=\"font-weight: 400\">Now, Set JAVA_HOME path:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">export JAVA_HOME=&lt;path-to-the-root-of-your-Java-installation&gt; (eg: \/usr\/lib\/jvm\/java-8-openjdk-amd64\/)<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-env_file.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69739\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-env_file.jpg\" alt=\"hadoop env_file - Install Hadoop 3.1.2\" width=\"939\" height=\"837\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-env_file.jpg 939w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-env_file-150x134.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-env_file-300x267.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-env_file-768x685.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-env_file-520x464.jpg 520w\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" \/><\/a><\/p>\n<p>To save the changes you&#8217;ve made, press <strong>Ctrl+O<\/strong>. To exit the nano editor, press <strong>Ctrl+X<\/strong> and then press <strong>\u2018Y\u2019<\/strong> to exit the editor.<\/p>\n<p><strong>Step 16:<\/strong> Open the <strong>core-site.xml<\/strong> file in the nano editor. This file is also located in the\u00a0<strong>~\/hadoop\/etc\/hadoop<\/strong> (Hadoop configuration directory).<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">nano core-site.xml<\/pre>\n<p><span style=\"font-weight: 400\">Add the following configuration properties:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;configuration&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;property&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;name&gt;fs.defaultFS&lt;\/name&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;value&gt;hdfs:\/\/localhost:9000&lt;\/value&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;\/property&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;property&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;name&gt;hadoop.tmp.dir&lt;\/name&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;value&gt;\/home\/dataflair\/hdata&lt;\/value&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;\/property&gt;\r\n&lt;\/configuration&gt;<\/pre>\n<p><i><span style=\"font-weight: 400\">Note: \/home\/dataflair\/hdata is a sample location; please specify a location where you have Read Write privileges<\/span><\/i><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-core-site_xml.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69740\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-core-site_xml.jpg\" alt=\"configure core site_xml\" width=\"1005\" height=\"837\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-core-site_xml.jpg 1005w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-core-site_xml-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-core-site_xml-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-core-site_xml-768x640.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-core-site_xml-520x433.jpg 520w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/a><\/p>\n<p><strong>Step 17:<\/strong> Open the<strong> hdfs-site.xml<\/strong> file in the nano editor. This file is also located in\u00a0<strong>~\/hadoop\/etc\/hadoop\u00a0<\/strong>(Hadoop configuration directory):<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">nano hdfs-site.xml<\/pre>\n<p>Add the following entries in core-site.xml:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;configuration&gt;\r\n    &lt;property&gt;\r\n        &lt;name&gt;dfs.replication&lt;\/name&gt;\r\n        &lt;value&gt;1&lt;\/value&gt;\r\n    &lt;\/property&gt;\r\n&lt;\/configuration&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-hdfs-site_xml.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69741\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-hdfs-site_xml.jpg\" alt=\"configure hdfs site_xml - Install Hadoop 3.1.2\" width=\"1002\" height=\"837\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-hdfs-site_xml.jpg 1002w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-hdfs-site_xml-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-hdfs-site_xml-300x251.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-hdfs-site_xml-768x642.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-hdfs-site_xml-520x434.jpg 520w\" sizes=\"auto, (max-width: 1002px) 100vw, 1002px\" \/><\/a><\/p>\n<p><strong>Step 18:<\/strong> Open the <strong>mapred-site.xml<\/strong> file in the nano editor. This file is also located in\u00a0<strong>~\/hadoop\/etc\/hadoop\u00a0<\/strong>(Hadoop configuration directory).<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">nano mapred-site.xml<\/pre>\n<p>Add the following entries in core-site.html:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;configuration&gt;\r\n    &lt;property&gt;\r\n        &lt;name&gt;mapreduce.framework.name&lt;\/name&gt;\r\n        &lt;value&gt;yarn&lt;\/value&gt;\r\n    &lt;\/property&gt;\r\n    &lt;property&gt;\r\n        &lt;name&gt;yarn.app.mapreduce.am.env&lt;\/name&gt;\r\n        &lt;value&gt;HADOOP_MAPRED_HOME=\/home\/dataflair\/hadoop&lt;\/value&gt;\r\n    &lt;\/property&gt;\r\n    &lt;property&gt;\r\n        &lt;name&gt;mapreduce.map.env&lt;\/name&gt;\r\n        &lt;value&gt;HADOOP_MAPRED_HOME=\/home\/dataflair\/hadoop&lt;\/value&gt;\r\n    &lt;\/property&gt;\r\n    &lt;property&gt;\r\n        &lt;name&gt;mapreduce.reduce.env&lt;\/name&gt;\r\n        &lt;value&gt;HADOOP_MAPRED_HOME=\/home\/dataflair\/hadoop&lt;\/value&gt;\r\n    &lt;\/property&gt;\r\n&lt;\/configuration&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-mapred-site_xml.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69742\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-mapred-site_xml.jpg\" alt=\"configure mapred site_xml\" width=\"1005\" height=\"837\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-mapred-site_xml.jpg 1005w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-mapred-site_xml-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-mapred-site_xml-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-mapred-site_xml-768x640.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-mapred-site_xml-520x433.jpg 520w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/a><\/p>\n<p><strong>Step 19:<\/strong> Open the <strong>yarn-site.xml<\/strong> file in the nano editor.\u00a0This file is also located in\u00a0<strong>~\/hadoop\/etc\/hadoop\u00a0<\/strong>(Hadoop configuration directory).<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">nano yarn-site.xml<\/pre>\n<p><span style=\"font-weight: 400\">Add the following entries in the yarn-site.xml:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;configuration&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;property&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;name&gt;yarn.nodemanager.aux-services&lt;\/name&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;value&gt;mapreduce_shuffle&lt;\/value&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;\/property&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;property&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;name&gt;yarn.nodemanager.aux-services.mapreduce.shuffle.class&lt;\/name&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;value&gt;org.apache.hadoop.mapred.ShuffleHandler&lt;\/value&gt;\r\n\u00a0\u00a0\u00a0\u00a0&lt;\/property&gt;\u00a0\r\n&lt;\/configuration&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-yarn-site_xml.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69743\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-yarn-site_xml.jpg\" alt=\"configure yarn site_xml - Hadoop Installation\" width=\"1005\" height=\"837\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-yarn-site_xml.jpg 1005w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-yarn-site_xml-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-yarn-site_xml-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-yarn-site_xml-768x640.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/configure-yarn-site_xml-520x433.jpg 520w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/a><\/p>\n<p><strong>Step 20:<\/strong> Open the bashrc files in the nano editor using the following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">nano .bashrc<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-2-2-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69792\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-2-2-1.jpg\" alt=\"bashrc file in nano editor 2 - Hadoop 3.1.2 Installation\" width=\"1005\" height=\"838\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-2-2-1.jpg 1005w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-2-2-1-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-2-2-1-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-2-2-1-768x640.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/bashrc-file-in-nano-editor-2-2-1-520x434.jpg 520w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\">Edit .bashrc file located in the user\u2019s home directory and add the following parameters:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">export HADOOP_HOME=\"\/home\/dataflair\/hadoop\"\r\nexport PATH=$PATH:$HADOOP_HOME\/bin\r\nexport PATH=$PATH:$HADOOP_HOME\/sbin\u00a0\r\nexport HADOOP_MAPRED_HOME=${HADOOP_HOME}\r\nexport HADOOP_COMMON_HOME=${HADOOP_HOME}\r\nexport HADOOP_HDFS_HOME=${HADOOP_HOME}\r\nexport YARN_HOME=${HADOOP_HOME}<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-hadoop-home-variable-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69794\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-hadoop-home-variable-2.jpg\" alt=\"set hadoop home variable\" width=\"1038\" height=\"862\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-hadoop-home-variable-2.jpg 1038w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-hadoop-home-variable-2-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-hadoop-home-variable-2-300x249.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-hadoop-home-variable-2-768x638.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-hadoop-home-variable-2-1024x850.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/set-hadoop-home-variable-2-520x432.jpg 520w\" sizes=\"auto, (max-width: 1038px) 100vw, 1038px\" \/><\/a><\/p>\n<p>To save the changes you&#8217;ve made, press <strong>Ctrl+O<\/strong>. To exit the nano editor, press <strong>Ctrl+X<\/strong> and then press <strong>\u2018Y\u2019<\/strong> to exit the editor.<\/p>\n<p>Now, source the bashrc file so that the changes will come into effect:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">source ~\/.bashrc<\/pre>\n<p><strong>Step 21:<\/strong> Before starting Hadoop, we need to format HDFS, which can be done using the below command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs namenode -format<\/pre>\n<div id=\"attachment_69747\" style=\"width: 1016px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-for-namenode-format.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69747\" class=\"wp-image-69747 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-for-namenode-format.jpg\" alt=\"command for namenode format - install hadoop 3.2.1\" width=\"1006\" height=\"839\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-for-namenode-format.jpg 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-for-namenode-format-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-for-namenode-format-300x250.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-for-namenode-format-768x641.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-for-namenode-format-520x434.jpg 520w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><p id=\"caption-attachment-69747\" class=\"wp-caption-text\">namenode format command<\/p><\/div>\n<div id=\"attachment_69748\" style=\"width: 1017px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/namenode-format.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69748\" class=\"wp-image-69748 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/namenode-format.jpg\" alt=\"namenode format - Hadoop Installation\" width=\"1007\" height=\"836\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/namenode-format.jpg 1007w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/namenode-format-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/namenode-format-300x249.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/namenode-format-768x638.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/namenode-format-520x432.jpg 520w\" sizes=\"auto, (max-width: 1007px) 100vw, 1007px\" \/><\/a><p id=\"caption-attachment-69748\" class=\"wp-caption-text\">namenode format<\/p><\/div>\n<p style=\"text-align: left\"><strong>Step 22:<\/strong> Start the HDFS services:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sbin\/start-dfs.sh<\/pre>\n<div id=\"attachment_69749\" style=\"width: 1016px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-hadoop-cluster.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69749\" class=\"wp-image-69749 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-hadoop-cluster.jpg\" alt=\"command to start hadoop cluster\" width=\"1006\" height=\"836\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-hadoop-cluster.jpg 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-hadoop-cluster-150x125.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-hadoop-cluster-300x249.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-hadoop-cluster-768x638.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-hadoop-cluster-520x432.jpg 520w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><p id=\"caption-attachment-69749\" class=\"wp-caption-text\">command to start hadoop cluster<\/p><\/div>\n<div id=\"attachment_69750\" style=\"width: 949px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-cluster-started.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69750\" class=\"wp-image-69750 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-cluster-started.jpg\" alt=\"hadoop cluster started \" width=\"939\" height=\"836\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-cluster-started.jpg 939w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-cluster-started-150x134.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-cluster-started-300x267.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-cluster-started-768x684.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/hadoop-cluster-started-520x463.jpg 520w\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" \/><\/a><p id=\"caption-attachment-69750\" class=\"wp-caption-text\">hadoop cluster started<\/p><\/div>\n<p><strong>Step 23:<\/strong>\u00a0Open the HDFS web console:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">localhost:9870<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-hadoop-cluster.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69751\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-hadoop-cluster.jpg\" alt=\"verification of hadoop cluster\" width=\"1281\" height=\"893\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-hadoop-cluster.jpg 1281w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-hadoop-cluster-150x105.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-hadoop-cluster-300x209.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-hadoop-cluster-768x535.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-hadoop-cluster-1024x714.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-hadoop-cluster-520x362.jpg 520w\" sizes=\"auto, (max-width: 1281px) 100vw, 1281px\" \/><\/a><\/p>\n<p><strong>Step 24:<\/strong> Now start the yarn services:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sbin\/start-yarn.sh<\/pre>\n<div id=\"attachment_69752\" style=\"width: 949px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-yarn.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69752\" class=\"wp-image-69752 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-yarn.jpg\" alt=\"command to start yarn - Install Hadoop 3.1.2\" width=\"939\" height=\"835\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-yarn.jpg 939w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-yarn-150x133.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-yarn-300x267.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-yarn-768x683.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/command-to-start-yarn-520x462.jpg 520w\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" \/><\/a><p id=\"caption-attachment-69752\" class=\"wp-caption-text\">command to start yarn<\/p><\/div>\n<div id=\"attachment_69753\" style=\"width: 950px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/yarn-started.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-69753\" class=\"wp-image-69753 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/yarn-started.jpg\" alt=\"yarn started - Hadoop 3.1.2 Installation\" width=\"940\" height=\"838\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/yarn-started.jpg 940w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/yarn-started-150x134.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/yarn-started-300x267.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/yarn-started-768x685.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/yarn-started-520x464.jpg 520w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/a><p id=\"caption-attachment-69753\" class=\"wp-caption-text\">yarn started<\/p><\/div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$jps\r\nNameNode\r\nDataNode\r\nResourceManager\r\nNodeManager\r\nSecondaryNameNode\r\n<\/pre>\n<p>The<strong> \u2018jps\u2019<\/strong> command is used to check whether all the Hadoop processes are running or not.<\/p>\n<p><strong>Step 25: <\/strong>Open the yarn web console:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">localhost:8088<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-yarn.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-69754\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-yarn.jpg\" alt=\"yarn verification - Hadoop 3.1.2 Installation\" width=\"1280\" height=\"889\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-yarn.jpg 1280w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-yarn-150x104.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-yarn-300x208.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-yarn-768x533.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-yarn-1024x711.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/09\/verify-yarn-520x361.jpg 520w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/a><\/p>\n<p>We have successfully installed Hadoop 3 on ubuntu. I hope you found the article useful.<\/p>\n<p><em><strong>What Next?<\/strong><\/em><\/p>\n<p>Start working on Hadoop <strong><a href=\"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/\">Hadoop HDFS Commands Tutorial<\/a><\/strong><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:2365,&quot;href&quot;:&quot;https:\\\/\\\/archive.apache.org\\\/dist\\\/hadoop\\\/common\\\/hadoop-3.1.2\\\/hadoop-3.1.2.tar.gz&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20220528113935\\\/https:\\\/\\\/archive.apache.org\\\/dist\\\/hadoop\\\/common\\\/hadoop-3.1.2\\\/hadoop-3.1.2.tar.gz&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 04:28:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-14 06:35:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-18 08:03:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-21 18:52:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-25 21:56:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-01 11:27:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-05 03:40:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-09 07:42:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-15 22:32:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-19 08:36:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-22 11:44:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-26 06:14:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-29 11:45:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-01 18:20:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-05 03:53:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-09 05:04:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-12 05:15:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-18 03:30:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-21 19:51:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-28 04:26:01&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-03 19:56:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 18:14:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-17 19:42:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-21 10:49:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-25 09:47:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-30 04:04:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-03 03:56:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-07 15:03:02&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-11 02:49:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-14 22:05:47&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-18 02:28:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-21 16:06:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-25 10:40:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-29 21:27:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-05 20:53:01&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-10 13:49:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-16 21:57:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-24 13:40:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-27 15:51:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-04 10:19:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-08 04:43:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-15 00:21:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-22 20:12:35&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-22 20:12:35&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With this tutorial, we will learn the complete process to install Hadoop 3 on ubuntu. The process involves some easy-to-follow steps including commands and instructions. Each step is attached with screen images which will&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":70643,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[21070,21090,21069,21071,15127],"class_list":["post-2283","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hadoop","tag-download-hadoop-ubuntu","tag-install-hadoop-3","tag-install-hadoop-linux","tag-single-node-hadoop-cluster","tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Hadoop 3 on Ubuntu - A Step-by step Installation Process - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn the whole process to install Hadoop 3 on Ubuntu with easy steps, commands and screenshots. A hadoop installation tutorial designed for beginners.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Hadoop 3 on Ubuntu - A Step-by step Installation Process - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn the whole process to install Hadoop 3 on Ubuntu with easy steps, commands and screenshots. A hadoop installation tutorial designed for beginners.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-04-26T13:05:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-28T13:44:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/04\/how-to-install-hadoop-3-on-ubuntu.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Hadoop 3 on Ubuntu - A Step-by step Installation Process - DataFlair","description":"Learn the whole process to install Hadoop 3 on Ubuntu with easy steps, commands and screenshots. A hadoop installation tutorial designed for beginners.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Hadoop 3 on Ubuntu - A Step-by step Installation Process - DataFlair","og_description":"Learn the whole process to install Hadoop 3 on Ubuntu with easy steps, commands and screenshots. A hadoop installation tutorial designed for beginners.","og_url":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2017-04-26T13:05:11+00:00","article_modified_time":"2025-03-28T13:44:02+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/04\/how-to-install-hadoop-3-on-ubuntu.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"How to Install Hadoop 3 on Ubuntu &#8211; A Step-by step Installation Process","datePublished":"2017-04-26T13:05:11+00:00","dateModified":"2025-03-28T13:44:02+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/"},"wordCount":857,"commentCount":23,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/04\/how-to-install-hadoop-3-on-ubuntu.jpg","keywords":["download hadoop ubuntu","Install Hadoop 3","install hadoop linux","single node Hadoop cluster","ubuntu"],"articleSection":["Hadoop Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/","url":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/","name":"How to Install Hadoop 3 on Ubuntu - A Step-by step Installation Process - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/04\/how-to-install-hadoop-3-on-ubuntu.jpg","datePublished":"2017-04-26T13:05:11+00:00","dateModified":"2025-03-28T13:44:02+00:00","description":"Learn the whole process to install Hadoop 3 on Ubuntu with easy steps, commands and screenshots. A hadoop installation tutorial designed for beginners.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/04\/how-to-install-hadoop-3-on-ubuntu.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/04\/how-to-install-hadoop-3-on-ubuntu.jpg","width":802,"height":420,"caption":"how to install hadoop 3 on ubuntu - easy steps for beginners"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/installation-of-hadoop-3-on-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Hadoop Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/hadoop\/"},{"@type":"ListItem","position":3,"name":"How to Install Hadoop 3 on Ubuntu &#8211; A Step-by step Installation Process"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/2283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=2283"}],"version-history":[{"count":20,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/2283\/revisions"}],"predecessor-version":[{"id":144664,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/2283\/revisions\/144664"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/70643"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=2283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=2283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=2283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}