Wednesday, September 14, 2016

Hadoop 2.7.3 on Windows 7

1. Download Hadoop 2.7.3 from Apache
2. Decompress to C:\env, thus HADOOP_HOME=C:\env\hadoop-2.7.3
3. Dowload Windows specific stuff ( and copy to %HADOOP_HOME%\bin
4. Set env variable HADOOP_HOME=C:\env\hadoop-2.7.3 and update PATH=%PATH%;%HADOOP_HOME%\bin
5. Update Hadoop conf (single node cluster setup instructions)
6. Execute %HADOOP_HOME%\sbin\start-dfs.cmd and %HADOOP_HOME%\sbin\start-yarn.cmd

Note: If you followed the instructions as is, NameNode Port is 9000.

So try some HDFS command like

hdfs dfs -put test.txt hdfs://localhost:9000/sample.text
hdfs dfs -ls hdfs://localhost:9000/

That's it!


Mahesh said...

This is very helpful worked for me.
Some other may be obvious things are that java home should not have space.
I wasted a lot of time on that part inspite of having java experience over 13 years.. :D

Unknown said...

It is not helpful since it does not provide instructions for setting up single node on windows.

SQL Server Windows 7 said...

Check this one out. It has some detail instructions on setting up Hadoop version 2.7.1 as Psudo-Distributed on a personal laptop with windows 10

setting up Hadoop version 2.7.1 as Psudo-Distributed on a personal laptop with windows 10

Rajapriya R said...

Helpful blog to everyone.. After reading this blog i learnt more useful information from this blog which really helpful to cracking the hadoop interviews

hadoop training in chennai velachery | big data training in chennai velachery | hadoop training institute in adyar

Ananthi S said...

Great and helpful blog to everyone.. Installation procedure are very clear and step by so easy to understand.. All installation commands are very clear and i learnt installation procedure easily form this blog so i install hadoop in my system very quickly.. thanks a lot for sharing this blog to us...

hadoop training institute in adyar | big data training institute in adyar | hadoop training in chennai adyar