-
Notifications
You must be signed in to change notification settings - Fork 11
Running Ex1 on Windows
alexeygrigorev edited this page Oct 22, 2014
·
1 revision
If you try to run the first exercise on Windows, most likely you'll see something like this:
java.io.IOException: Failed to set permissions of path: \tmp\hadoop-username\mapred\staging\username1953997422\.staging to 0700
If you don't want to use a virtual machine, here's a workaroud:
First, download this jar and add it to the classpath
Then modify the first couple of lines in HadoopJob#prepareJob()
Configuration conf = getConf();
conf.set("hadoop.tmp.dir", "c:/tmp/");
conf.set("fs.file.impl", "com.conga.services.hadoop.patch.HADOOP_7682.WinLocalFileSystem");
Job job = new Job(new Configuration(conf));
That's it, now you can run the unit tests
Source: