|
[
Permlink
| « Hide
]
Vinod K V added a comment - 11/Dec/08 05:35 AM
This particular JIRA should address the following:
Vinod K V made changes - 11/Dec/08 05:35 AM
Vinod K V made changes - 11/Dec/08 05:40 AM
Vinod K V made changes - 11/Dec/08 05:45 AM
Vinod K V made changes - 11/Dec/08 05:52 AM
Vinod K V made changes - 11/Dec/08 05:56 AM
Vinod K V made changes - 11/Dec/08 06:01 AM
Attaching patch. This includes
Vinod K V made changes - 22/Dec/08 01:02 PM
Vinod K V made changes - 22/Dec/08 01:04 PM
Some comments:
ControlledMapReduceJob:
ClusterWithCapacityScheduler:
TestClusterWithCapacityScheduler doesn't seem specifically needed. A lot of the tests will exercise this and it will be very obvious if it doesn't work. Unlike the TestControlledMapReduceJob which is a simple test that can be easily verified for correctness with the default scheduler. TestQueueCapacities:
Attaching a new patch incorporating the review comments. Notes on some particular points follow.
This is replaced with a ClusterWithCapacityScheduler.WaitTillAllTasksAreOccupied to test that all the slots of a particular type are occupied in the cluster. And this is done by looking at the ClusterStatus and waiting till the total number of tasks runing becomes equal to the maximum number of slots in the cluster.
The original intention was to test invalid configuration. Moved this out, it may be done later. Or if possible, we should move the invalid configuration related checks into CapacitySchedulerConf itself instead of having them in CapacityTaskScheduler.start() Others:
Vinod K V made changes - 29/Dec/08 05:36 AM
Vinod K V made changes - 31/Dec/08 12:19 PM
Looking good. A few comments:
When I ran the test on my system, it failed because of missing some classes related to Jetty: org/mortbay/jetty/servlet/Context
java.lang.NoClassDefFoundError: org/mortbay/jetty/servlet/Context
at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:220)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:202)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:279)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:955)
at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:275)
at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:119)
at org.apache.hadoop.mapred.ClusterWithCapacityScheduler.startCluster(ClusterWithCapacityScheduler.java:101)
at org.apache.hadoop.mapred.TestQueueCapacities.testSingleQueue(TestQueueCapacities.java:54)
This may be that we need to fix something in ivy.xml of the capacity scheduler. Copying the ivy.xml from streaming ran the test successfully. Also, in the next version, can you please update test-patch results, so I can commit the patch ?
Attaching a new patch. Incorporated the above review comments. Notes about particular points follow:
As pointed out, there is no real difference. The original intention was to ensure that so and so number of tasks are really running on TaskTrackers. But on retrospection, I came to conclude that the number of tasks scheduled(JIP.runningTasks()) should suffice. This is because the number of tasks scheduled is same as the number of tasks running in the test environment(no lost trackers). Made changes to use JIP.runningTasks() regarding the same.
Made changes to ivy.xml in capacity scheduler src to include the needed jars. But, as Hemanth also concurs during a discussion, it may become cumbersome in future to add every new jar that capacity scheduler might not need directly but still needed to be included because of the dependency on underlying projects/modules say mapred/hdfs. Will file a new issue to see if this can be addressed generally. While running tests, found that some tests were timing out. The actual reason turned out to be ant test-patch results: [exec] +1 overall.
[exec]
[exec] +1 @author. The patch does not contain any @author tags.
[exec]
[exec] +1 tests included. The patch appears to include 15 new or modified tests.
[exec]
[exec] +1 javadoc. The javadoc tool did not generate any warning messages.
[exec]
[exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
[exec]
[exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
[exec]
[exec] +1 Eclipse classpath. The patch retains Eclipse classpath integrity.
Vinod K V made changes - 06/Jan/09 10:52 AM
I just committed this to trunk and branch 0.20, as they are test cases and no change to functionality. Thanks, Vinod !
Hemanth Yamijala made changes - 07/Jan/09 05:59 AM
Nigel Daley made changes - 23/Apr/09 07:17 PM
Owen O'Malley made changes - 08/Jul/09 04:40 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||