I am building on some old code from a few years back using the commoncrawl dataset with EMR using MRJob. The code uses the following inside MRJob subclass mapper function to determine whether running locally or on emr:
self.options.runner == 'emr'
This seems to either have never worked or no longer works, self.options.runner is not passed through to the tasks and therefore is always set to the default of 'inline'
. Question is, is there a way to determine whether the code is running locally or on emr with the current version of MRJob (v0.5.0).