Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix sleep time errors for hadoop sleep test #560

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

docularxu
Copy link

In hadoop-mapreduce-client-jobclient-2.8.4-tests.jar (or other versions), input parameter for ReduceSleepTime should be 'rt', not 'mt'. Also, map and reduce sleep times' unit is millisecond, not second.

See this usage as well:
SleepJob [-m numMapper] [-r numReducer] [-mt mapSleepTime (msec)] [-rt reduceSleepTime (msec)] [-recordt recordSleepTime (msec)]

Cross-checked the source code as well:
https://github.com/apache/hadoop/blob/trunk/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/SleepJob.java

In hadoop-mapreduce-client-jobclient-2.8.4-tests.jar, input parameter for ReduceSleepTime should be 'rt', not 'mt'.

See this usage:
SleepJob [-m numMapper] [-r numReducer] [-mt mapSleepTime (msec)] [-rt reduceSleepTime (msec)] [-recordt recordSleepTime (msec)]
Reading the code of hadoop-mapreduce-client-jobclient-2.8.4-tests.jar (or other versions), 
The unit of mapSleepTime and reduceSleepTime is millisecond, not second.

Also refer to its usage print:
SleepJob [-m numMapper] [-r numReducer] [-mt mapSleepTime (msec)] [-rt reduceSleepTime (msec)] [-recordt recordSleepTime (msec)]
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant