Vinod Kumar Vavilapalli
added a comment - 14/Apr/09 11:56
This is due to some configuration problem while creating the capacity-scheduler.xml config file.
Configuration config = new Configuration( false );
LocalFileSystem fs = FileSystem.getLocal(config);
This snippet used to work before, it's failing now with "No FileSystem for scheme: file java.io.IOException: No FileSystem for scheme: file"
Not sure of the exact reason why it never failed before. Loading the default configuration files solves this problem. Will upload a patch.

Attaching a patch. This solves the problem by creating a configuration with default config files loaded and then accessing local file system with this configuration object. Also, replaced HDFS with local FS for the cluster so as to quicken the test a bit.

Vinod Kumar Vavilapalli
added a comment - 14/Apr/09 12:00 Attaching a patch. This solves the problem by creating a configuration with default config files loaded and then accessing local file system with this configuration object. Also, replaced HDFS with local FS for the cluster so as to quicken the test a bit.

Vinod Kumar Vavilapalli
added a comment - 15/Apr/09 07:10 Not sure of the exact reason why it never failed before. Loading the default configuration files solves this problem.
Suman pointed out HADOOP-5585 to me. The changes on this JIRA were the cause for the failure of this test-case.

The failed tests org.apache.hadoop.mapred.TestMRServerPorts.testJobTrackerPorts, org.apache.hadoop.mapred.TestMRServerPorts.testTaskTrackerPorts are not related to this patch and are fixed in HADOOP-5655 perhaps after Hudson ran the patch for this issue. I just ran both TestMRServerPorts and TestQueueCapacities on trunk with patch for this JIRA. Both passed successfully, this patch is committable.

Vinod Kumar Vavilapalli
added a comment - 17/Apr/09 10:26 The failed tests org.apache.hadoop.mapred.TestMRServerPorts.testJobTrackerPorts, org.apache.hadoop.mapred.TestMRServerPorts.testTaskTrackerPorts are not related to this patch and are fixed in HADOOP-5655 perhaps after Hudson ran the patch for this issue. I just ran both TestMRServerPorts and TestQueueCapacities on trunk with patch for this JIRA. Both passed successfully, this patch is committable.