Folks, I am getting started on the http://wiki.apache.org/hadoop/HowToContribute section of Hadoop.
I attempted to run all the unit test cases on a fresh checked-out code from the hadoop common trunk (http://svn.apache.org/repos/asf/hadoop/common/trunk: revision - 1513368). But I am seem to be getting the following failures/errors. =================================================================== Results : Failed tests: testGracefulFailoverFailBecomingActive(org.apache.hadoop.ha.TestZKFailoverController): Did not fail to graceful failover when target failed to become active! testGracefulFailoverFailBecomingStandby(org.apache.hadoop.ha.TestZKFailoverController): expected:<1> but was:<0> testGracefulFailoverFailBecomingStandbyAndFailFence(org.apache.hadoop.ha.TestZKFailoverController): Failover should have failed when old node wont fence testCachingRelaysResolveQueries(org.apache.hadoop.net.TestStaticMapping): Expected two entries in the map Mapping: cached switch mapping relaying to static mapping with single switch = false(..) testCachingCachesNegativeEntries(org.apache.hadoop.net.TestStaticMapping): Expected two entries in the map Mapping: cached switch mapping relaying to static mapping with single switch = false(..) testResolve(org.apache.hadoop.net.TestTableMapping): expected:</[rack1]> but was:</[default-rack]> testTableCaching(org.apache.hadoop.net.TestTableMapping): expected:</[rack1]> but was:</[default-rack]> testClearingCachedMappings(org.apache.hadoop.net.TestTableMapping): expected:</[rack1]> but was:</[default-rack]> testNormalizeHostName(org.apache.hadoop.net.TestNetUtils): expected:<[67.215.65.145]> but was:<[UnknownHost123]> Tests in error: testGracefulFailover(org.apache.hadoop.ha.TestZKFailoverController): test timed out after 25000 milliseconds testChgrp(org.apache.hadoop.fs.TestFsShellReturnCode): test timed out after 30000 milliseconds Tests run: 2096, Failures: 9, Errors: 2, Skipped: 71 =================================================================== Is there a pre-requisite for running these JUnit test cases? or any service to be up and running on my Ubuntu machine? As given in the contribute section, I would like to get the unit cases to run successfully before I start compiling my patch changes. Could anybody help here? Thanks in advance, Elizabeth