“mrjob.conf” is the name of both this module, and the global config file for mrjob.
Look for mrjob.conf, and return its path. Places we look:
Return None if we can’t find it.
Load a list of dictionaries representing the options in a given mrjob.conf for a specific runner. Returns [(path, values)]. If conf_path is not found, return [(None, {})].
Parameters: |
---|
Load a list of dictionaries representing the options in a given list of mrjob config files for a specific runner. Returns [(path, values)]. If a path is not found, use (None, {}) as its value. If conf_paths is None, look for a config file in the default locations.
Parameters: |
|
---|
Combiner functions take a list of values to combine, with later options taking precedence over earlier ones. None values are always ignored.
Return the last value in values that is not None.
The default combiner; good for simple values (booleans, strings, numbers).
Concatenate the given sequences into a list. Ignore None values.
Generally this is used for a list of commands we want to run; the “default” commands get run before any commands specific to your job.
Combine zero or more dictionaries. Values from dicts later in the list take precedence over values earlier in the list.
If you pass in None in place of a dictionary, it will be ignored.
Take zero or more commands to run on the command line, and return the last one that is not None. Each command should either be a list containing the command plus switches, or a string, which will be parsed with shlex.split(). The string must either be a byte string or a unicode string containing no non-ASCII characters.
Returns either None or a list containing the command plus arguments.
Concatenate the given commands into a list. Ignore None values, and parse strings with shlex.split().
Returns a list of lists (each sublist contains the command plus arguments).
Combine zero or more dictionaries containing environment variables.
Environment variables later from dictionaries later in the list take priority over those earlier in the list. For variables ending with PATH, we prepend (and add a colon) rather than overwriting.
If you pass in None in place of a dictionary, it will be ignored.
Same as combine_envs(), except that paths are combined using the local path separator (e.g ; on Windows rather than :).
Returns the last value in paths that is not None. Resolve ~ (home dir) and environment variables.
Concatenate the given sequences into a list. Ignore None values. Resolve ~ (home dir) and environment variables, and expand globs that refer to the local filesystem.