Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

does hadoop works same on windows as linux?

avatar
New Contributor

if we install hadoop on windows , Do all commands works same . Lets say we list the content of a folder using following command

haddop ls path

does the same command will work on windows?

4 REPLIES 4

avatar
Master Mentor

@Mohammad Shadab

Windows Operating System is not mentioned in the Tested & Certified Support Matrix list here: https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_support-matrices/content/ch01.html

So it is better to be on the supported versions. If you want to use apache hadoop community version then you should refer to : https://wiki.apache.org/hadoop/Hadoop2OnWindows (although the link seems to be to old and outdated)

Better will be to use the Linux based OS instead of Windows for running hadoop components.

avatar
New Contributor

Hey @Jay Kumar SenSharma Thanks for you reply , I understand its better to use linux . But dont see the answer i was looking for . My concern is if at all i run it on windows will commands will change or will remain same . If you have any idea on this will be great help for me.

avatar
Master Mentor

@Mohammad Shadab

Please provide us exacxt information about which version of Hadoop are you using? From where have you downloaded the Hadoop Binaries (from Apache / Hortonworks repos).

The Hadoop commands are standard commands .. like "hdfs dfs -ls /" and should remain same in different os binaries... however if you are looking out for scripts that we use to start/stop /manage the hadoop on Windows/Unix then it might difffer.

But if you are concerned anout any specific command then please let us know.

avatar
Super Collaborator

Yes, the commands work the same assuming you have winutils.exe on your PATH as well as HADOOP_HOME and HADOOP_CONF_DIR defined as environment variables.

Windows is not as stable or as supported as Linux, however.