I have several different jobs started from the Python library mrjob, including jobs with multiple steps. How can I replace streamjob
with a custom name? For example, wordcount_step_1
, wordcount_step_2
, etc.
Asked
Active
Viewed 352 times
2

gak
- 32,061
- 28
- 119
- 154
2 Answers
5
Sure, just specify it using the --jobconf option when you execute your job.
For example:
if __name__ == '__main__':
# Be careful, this appends all job args, if you have lots it could be a problem
sys.argv.extend(["--jobconf", "mapred.job.name=%s" % " ".join(sys.argv)])
MRYourJobClass.run()

Shaun Clowes
- 306
- 2
- 3