You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Sreekanth Ramakrishnan (JIRA)" <ji...@apache.org> on 2009/05/05 16:10:30 UTC
[jira] Updated: (HADOOP-5771) Create unit test for
LinuxTaskController
[ https://issues.apache.org/jira/browse/HADOOP-5771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sreekanth Ramakrishnan updated HADOOP-5771:
-------------------------------------------
Attachment: HADOOP-5771-1.patch
Attaching patch which adds unit test for HADOOP-4490.
Following is approach used in running unit tests. HADOOP-4490 unit tests require following extra parameter to be passed alongwith the ant test target.
* {{taskcontroller-path}} - path to built task controller executable
* {{taskcontroller-user}} - ugi of the user as who we should be executing the task.
If any of the above two parameter is not passed the HADOOP-4490 test cases would not be executed and test case would be successful.
An example for running a HADOOP-4490 test case is as follows
{noformat}
ant test -Dtestcase=TestJobExecutionAsDifferentUser -Dtaskcontroller-path=/tmp/hadoop/bin -Dtaskcontroller-user=mapred,users
{noformat}
For pipes related test cases you would have to pass compile.c++ flag.
Following are the test cases added to the patch:
* {{TestJobExecutionAsDifferentUser}} :- Core test case which launches a {{SleepJob}} and {{WordCount}} job as a different user.
* {{TestKillSubProcessesWithTaskController}} :- Test case which checks if the process trees of launched tasks are cleaned up properly. Currently, fails with trunk when HADOOP-5420 is commited would work fine.
* {{TestPipesAsDifferentUser}} :- Runs a pipes job as a different user.
* {{TestStreamingAsDifferentUser}} :- Runs a streaming job as different user.
> Create unit test for LinuxTaskController
> ----------------------------------------
>
> Key: HADOOP-5771
> URL: https://issues.apache.org/jira/browse/HADOOP-5771
> Project: Hadoop Core
> Issue Type: Improvement
> Reporter: Sreekanth Ramakrishnan
> Assignee: Sreekanth Ramakrishnan
> Attachments: HADOOP-5771-1.patch
>
>
> Add unit tests to test {{LinuxTaskController}} functionality introduced by HADOOP-4490
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.