Hi, 2009/7/22 Mathias De Maré <mathias.dem...@gmail.com>
> I went over the steps, and it looks like I did the same (only I didn't > create a dedicated user and I didn't disable IPv6, since I can use it here). > Oh, and I noticed one more thing: when I start Hadoop by running > bin/start-dfs.sh, wait about 20 seconds for everything to get set up and > then run bin/start-mapred.sh, everything works fine. > > With the JUnit tests and MiniMRCluster, there's the following error: > 09/07/22 09:15:21 ERROR mapred.MiniMRCluster: Job tracker crashed > java.lang.NullPointerException > at java.io.File.<init>(File.java:222) > at org.apache.hadoop.mapred.JobHistory.init(JobHistory.java:151) > at org.apache.hadoop.mapred.JobTracker.<init>(JobTracker.java:1559) > at > org.apache.hadoop.mapred.JobTracker.startTracker(JobTracker.java:174) > at > org.apache.hadoop.mapred.MiniMRCluster$JobTrackerRunner.run(MiniMRCluster.java:101) > at java.lang.Thread.run(Thread.java:619) > > > Mathias > > I managed to solve the issue (at least temporarily). The "build.log.dir" property was not being set, so I added a line before the MiniMRCluster constructor: System.setProperty("hadoop.log.dir", "build/test/logs"); Mathias