Running JUnit tests with Hadoop 2.2 on Windows 7 Running JUnit tests with Hadoop 2.2 on Windows 7 hadoop hadoop

Running JUnit tests with Hadoop 2.2 on Windows 7


In the time since the answer was posted, Hadoop 3 has come out. However, the focus remains strongly on non-windows systems. Based on this page even the distribution of Microsoft no longer is available on Windows.

Though testing is a different matter, the consequence is that the testing for windows is not likely to receive much love, and a workaround remains required.

This answer, got accepted to answer a very similar question, the key steps:

  1. Download winutils.exe from http://public-repo-1.hortonworks.com/hdp-win-alpha/winutils.exe.
  2. SetUp your HADOOP_HOME environment variable on the OS level or programmatically: System.setProperty("hadoop.home.dir", "full path to the folder with winutils");

If this is still an important topic for people, note that posting on stack overflow will likely not help (if there was a nicer solution, someone likely would have posted it by now). Instead, I would recommend them to log a request on the hadoop jira , and adding a link to it in the comments here to avoid duplicates.