Steps of Hadoop installation
Steps of Hadoop installation
Hadoop is built on Java, so you must have Java installed on your PC. You can get the most
recent version of Java from the official website. After downloading, follow the installation
wizard to install Java on your system.
JDK: https://www.oracle.com/java/technologies/javase-downloads.html
Hadoop: https://hadoop.apache.org/releases.html
Click “New” under System Variables to add a new variable. Enter the variable name
“HADOOP_HOME” and the path to the Hadoop folder as the variable value. Then press “OK.”
Then, under System Variables, locate the “Path” variable and click “Edit.” Click “New” in the
Edit Environment Variable window and enter “%HADOOP_HOME%bin” as the variable
value. To close all the windows, use the “OK” button.
• core-site.xml
• hdfs-site.xml
• mapred-site.xml
Open each file in a text editor and edit the following properties:
In core-site.xml
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
In hdfs-site.xml
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>file:/hadoop-3.3.1/data/namenode</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>file:/hadoop-3.3.1/data/datanode</value>
</property>
</configuration>
In mapred-site.xml
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:54311</value>
</property>
</configuration>
start-all.cmd
This command will start all the required Hadoop services, including the NameNode, DataNode,
and JobTracker. Wait for a few minutes until all the services are started.