Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yelp/mrjob
/ functions
Functions
4,468 in github.com/Yelp/mrjob
⨍
Functions
4,468
◇
Types & classes
673
↳
Endpoints
1
↓ 2 callers
Function
mrjob_pythonpath
The directory containing the mrjob package that we've imported.
tests/sandbox.py:228
↓ 2 callers
Method
partitioner
Optional Hadoop partitioner class to use to determine how mapper output should be sorted and distributed to reducers. By default, ret
mrjob/job.py:1399
↓ 2 callers
Method
patch_args_for_step
(self, runner, bad_hadoop_bin)
tests/test_hadoop.py:1201
↓ 2 callers
Method
put
Uploads a local file to a specific destination.
mrjob/fs/s3.py:204
↓ 2 callers
Function
random_seed
Temporarily change the seed of the random number generator.
tests/sandbox.py:76
↓ 2 callers
Function
real_path_to_hdfs_uri
Map a real path to an hdfs:/// URI.
tests/mockhadoop.py:223
↓ 2 callers
Method
reduce_pairs
Runs :py:meth:`reducer_init`, :py:meth:`reducer`, and :py:meth:`reducer_final` for one reduce task in one step. Takes in a se
mrjob/job.py:853
↓ 2 callers
Method
remove_tags
Simulate successful creation of new metadata tags for the specified resource id.
tests/mock_boto3/emr.py:1460
↓ 2 callers
Function
resolve_possible_pending_xrefs
If any node is a pending_xref, attempt to resolve it. If it cannot be resolved, replace it with its children.
docs/options_extension.py:126
↓ 2 callers
Function
save_sys_path
Context manager that saves sys.path and restores it after execution.
mrjob/util.py:227
↓ 2 callers
Method
setUp
(self)
tests/test_conf.py:62
↓ 2 callers
Method
setUp
(self)
tests/test_emr_pooling.py:2575
↓ 2 callers
Method
setUp
(self)
tests/logs/test_step.py:296
↓ 2 callers
Method
setUp
(self)
tests/tools/test_spark_submit.py:52
↓ 2 callers
Method
setUp
(self)
tests/fs/test_gcs.py:31
↓ 2 callers
Method
set_hadoop_bin
Manually set the hadoop binary, as a list of args.
mrjob/fs/hadoop.py:84
↓ 2 callers
Method
set_up_mock_hadoop
(self)
tests/fs/test_hadoop.py:45
↓ 2 callers
Function
suppressed
(switches)
mrjob/options.py:1525
↓ 2 callers
Function
unarchive
Extract the contents of a tar or zip file at *archive_path* into the directory *dest*. :type archive_path: str :param archive_path: path
mrjob/util.py:333
↓ 1 callers
Method
Bucket
(self, name)
tests/mock_boto3/s3.py:204
↓ 1 callers
Method
INPUT_PROTOCOL
(self)
tests/test_job.py:1013
↓ 1 callers
Method
INTERNAL_PROTOCOL
(self)
tests/test_job.py:1016
↓ 1 callers
Method
OUTPUT_PROTOCOL
(self)
tests/test_job.py:1019
↓ 1 callers
Method
__eq__
(self, other)
tests/test_protocol.py:60
↓ 1 callers
Method
__init__
Arguments to this constructor may also appear in :file:`mrjob.conf` under ``runners/local``. :py:class:`~mrjob.local.LocalMRJobRunner
mrjob/local.py:92
↓ 1 callers
Method
__str__
Human-readable version of the exception. Note that this 1-indexes *step_num*.
mrjob/step.py:128
↓ 1 callers
Method
__wrap_method_with_call_and_maybe_retry
Wrap method f in a retry loop.
mrjob/retry.py:99
↓ 1 callers
Method
_add_bootstrap_actions
Handle BootstrapActions param from run_job_flow(). (there isn't any other way to add bootstrap actions)
tests/mock_boto3/emr.py:449
↓ 1 callers
Method
_add_instance_fleets
Add instance fleets from *InstanceFleets* to the mock cluster *cluster*. This is just a helper for :py:meth:`add_instances`; there is
tests/mock_boto3/emr.py:595
↓ 1 callers
Method
_add_instances
Handle Instances param from run_job_flow()
tests/mock_boto3/emr.py:482
↓ 1 callers
Method
_add_job_files_for_upload
Add files needed for running the job (setup and input) to self._upload_mgr.
mrjob/hadoop.py:347
↓ 1 callers
Method
_add_job_files_for_upload
Add files needed for running the job (setup and input) to self._upload_mgr.
mrjob/dataproc.py:508
↓ 1 callers
Function
_add_runner_args_for_opt
Add switches for a single option (*opt_name*) to the given parser.
mrjob/options.py:1509
↓ 1 callers
Function
_add_step_args
Add switches that determine what part of the job a MRJob runs.
mrjob/options.py:1631
↓ 1 callers
Method
_add_tags
Add tags in the dict *tags* to cluster *cluster_id*. Do nothing if *tags* is empty or ``None``
mrjob/emr.py:1150
↓ 1 callers
Method
_archive_arg_hash_paths
Helper function for the *upload_args methods. The names of all arguments to ``-archives`` (or ``--archives`` on Spark).
mrjob/runner.py:1446
↓ 1 callers
Method
_assert_maps_list_to_list_of_same_size
(self, f)
tests/spark/test_harness.py:841
↓ 1 callers
Function
_attempt_id_to_task_id
Convert e.g. ``'attempt_201601081945_0005_m_000005_0'`` to ``'task_201601081945_0005_m_000005'``
mrjob/logs/ids.py:201
↓ 1 callers
Function
_attempt_num
Which attempt this is for a particular task; typically tasks that fail are retried one or two times. This applies to both attempt and containe
mrjob/logs/ids.py:157
↓ 1 callers
Function
_basename
(path_or_uri)
mrjob/runner.py:1565
↓ 1 callers
Method
_bootstrap_python
Redefine this to return a (possibly empty) list of parsed commands (in the same format as returned by parse_setup_cmd())' to make sure a
mrjob/cloud.py:187
↓ 1 callers
Method
_build_debugging_step
(self)
mrjob/emr.py:2345
↓ 1 callers
Function
_build_instance_group
Helper method for creating instance groups. For use when creating a cluster using a list of InstanceGroups - role is either 'MASTER', 'CO
mrjob/emr.py:3333
↓ 1 callers
Method
_cancel_job
(self, job_id)
mrjob/dataproc.py:1226
↓ 1 callers
Method
_cat_blob
:py:meth:`cat_file`, minus decompression.
mrjob/fs/gcs.py:159
↓ 1 callers
Method
_cat_file
(self, path)
mrjob/fs/hadoop.py:264
↓ 1 callers
Method
_check_bucket_exists
(self, operation_name)
tests/mock_boto3/s3.py:373
↓ 1 callers
Method
_check_cluster_spark_support
Issue a warning if our cluster doesn't support Spark. This should only be called if you are going to run one or more Spark steps.
mrjob/emr.py:3025
↓ 1 callers
Method
_check_for_missing_default_iam_roles
If cluster couldn't start due to missing IAM roles, tell user what to do.
mrjob/emr.py:1850
↓ 1 callers
Method
_check_for_pooled_cluster_self_termination
If failure could have been due to a pooled cluster self-terminating, raise _PooledClusterSelfTerminatedException
mrjob/emr.py:1811
↓ 1 callers
Method
_check_input_path
Raise :py:class:`IOError` if the given input does not exist or is otherwise invalid. Override this to provide custom check behavior.
mrjob/runner.py:1135
↓ 1 callers
Method
_check_input_paths
Check that input exists prior to running the job, if the `check_input_paths` option is true.
mrjob/runner.py:1126
↓ 1 callers
Method
_check_instance_profile_does_not_exist
( self, InstanceProfileName, OperationName)
tests/mock_boto3/iam.py:196
↓ 1 callers
Method
_check_instance_profile_exists
( self, InstanceProfileName, OperationName)
tests/mock_boto3/iam.py:207
↓ 1 callers
Method
_check_output_not_exists
Verify the output path does not already exist. This avoids provisioning a cluster only to have Hadoop refuse to launch.
mrjob/emr.py:776
↓ 1 callers
Method
_check_output_not_exists
Verify the output path does not already exist. This avoids provisioning a cluster only to have Hadoop refuse to launch.
mrjob/dataproc.py:483
↓ 1 callers
Method
_check_role_does_not_exist
(self, RoleName, OperationName)
tests/mock_boto3/iam.py:110
↓ 1 callers
Method
_check_spark_tmp_dir_opt
(self)
mrjob/spark/runner.py:141
↓ 1 callers
Function
_check_step
Check that the given step description is for a MRStep with no input manifest
mrjob/spark/harness.py:611
↓ 1 callers
Method
_check_step
Raise an exception if the given step is invalid (:py:class:`ValueError`) or not handled by this runner (:py:class:`NotImplementedError
mrjob/runner.py:797
↓ 1 callers
Method
_check_steps
Look at the step definition (*steps*). If it is not supported by the runner, raise :py:class:`NotImplementedError`. If it is not suppo
mrjob/runner.py:783
↓ 1 callers
Function
_clean_json_dict_keys
Cast any dictionary keys in the given JSON object to str. We can assume that x isn't a recursive data structure, and that this is only called
mrjob/dataproc.py:1373
↓ 1 callers
Function
_cleanse_gcp_job_id
(job_id)
mrjob/dataproc.py:176
↓ 1 callers
Method
_cleanup_cloud_tmp
Cleanup any files/directories on cloud storage (e.g. S3) we created while running this job. Should be safe to run this at any time, or
mrjob/runner.py:571
↓ 1 callers
Method
_cleanup_cluster
Terminate the cluster if there is one.
mrjob/runner.py:604
↓ 1 callers
Method
_cleanup_cluster
(self)
mrjob/dataproc.py:561
↓ 1 callers
Method
_cleanup_hadoop_tmp
Cleanup any files/directories on HDFS we created while running this job. Should be safe to run this at any time, or multiple times.
mrjob/runner.py:578
↓ 1 callers
Method
_cleanup_job
Stop any jobs that we created that are still running.
mrjob/runner.py:613
↓ 1 callers
Method
_cleanup_local_tmp
Cleanup any files/directories on the local machine we created while running this job. Should be safe to run this at any time, or multiple
mrjob/runner.py:585
↓ 1 callers
Method
_cleanup_logs
Cleanup any log files that are created as a side-effect of the job.
mrjob/runner.py:608
↓ 1 callers
Method
_cleanup_mode
Actual cleanup action to take based on various options
mrjob/runner.py:564
↓ 1 callers
Function
_client_error_code
Get the error code for the given ClientError
mrjob/aws.py:221
↓ 1 callers
Method
_cluster_create_kwargs
(self)
mrjob/dataproc.py:1080
↓ 1 callers
Method
_cluster_description_matches
Do we want to join the cluster with the given description?
mrjob/emr.py:2582
↓ 1 callers
Method
_cluster_has_adequate_capacity
Check if the cluster has an instance group/fleet configuration that works as well or better. This either calls ``ListInstanceFleets``
mrjob/emr.py:2519
↓ 1 callers
Method
_cluster_kwargs
Build kwargs for emr_client.run_job_flow()
mrjob/emr.py:1167
↓ 1 callers
Function
_cluster_name_suffix
(hash, name)
mrjob/pool.py:69
↓ 1 callers
Function
_cluster_to_usage_data
r"""Break billing/usage information for a cluster down by job. :param cluster: a :py:mod:`boto3` cluster data structure :param basic_summary:
mrjob/tools/emr/audit_usage.py:356
↓ 1 callers
Function
_clusters_to_stats
r"""Aggregate statistics for several clusters into a dictionary. :param clusters: a sequence of dicts with the keys ``cluster``, ``steps``. :
mrjob/tools/emr/audit_usage.py:135
↓ 1 callers
Method
_combine_confs
Combine several opt dictionaries into one. *source_and_opt_list* is a list of tuples of *source*, *opts* where *opts* is a dictionary
mrjob/runner.py:342
↓ 1 callers
Method
_combine_opts
Combine several opt dictionaries into one. *opt_list* is a list of dictionaries containing validated options Override this if you nee
mrjob/runner.py:359
↓ 1 callers
Function
_combiners
(opt_names, runner_alias=None)
mrjob/options.py:1462
↓ 1 callers
Method
_cp_to_local_cmd
Command to copy files from the cloud to the local directory.
mrjob/emr.py:2256
↓ 1 callers
Method
_cp_to_local_cmd
Command to copy files from the cloud to the local directory (usually via Hadoop). Redefine this as needed; for example, on EMR, we som
mrjob/cloud.py:196
↓ 1 callers
Method
_create_cluster
(self, cluster_data)
mrjob/dataproc.py:1193
↓ 1 callers
Method
_create_dir_archives
Call this to create all dir archives
mrjob/runner.py:1009
↓ 1 callers
Method
_create_input_manifest_if_needed
Create a file with a list of URIs of input files.
mrjob/runner.py:1093
↓ 1 callers
Method
_create_job_script_zip
(self)
mrjob/spark/runner.py:253
↓ 1 callers
Method
_create_master_node_setup_script_if_needed
Helper for :py:meth:`_add_bootstrap_files_for_upload`. If we need a master node setup script and write it into our local temp directo
mrjob/emr.py:2273
↓ 1 callers
Method
_default_opts
(cls)
mrjob/runner.py:329
↓ 1 callers
Method
_default_python_bin
The default python command. If local is true, try to use sys.executable. Otherwise use 'python2.7' or 'python3' as appropriate. This
mrjob/bin.py:191
↓ 1 callers
Method
_default_sh_bin
The default sh binary, if :mrjob-opt:`sh_bin` isn't set.
mrjob/bin.py:762
↓ 1 callers
Method
_default_step_output_dir
Where to put output for steps other than the last one, if not specified by the *output_dir* constructor keyword. Usually you want this
mrjob/runner.py:1279
↓ 1 callers
Method
_delete_cluster
(self, cluster_id)
mrjob/dataproc.py:1202
↓ 1 callers
Function
_deprecated_aliases
(opt_names)
mrjob/options.py:1470
↓ 1 callers
Function
_dict_list_to_compat_map
(dict_list)
mrjob/compat.py:555
↓ 1 callers
Method
_docker_cmdenv
(self)
mrjob/emr.py:3130
↓ 1 callers
Method
_docker_emr_configurations
(self)
mrjob/emr.py:3151
↓ 1 callers
Method
_docker_registry
Infer the trusted docker registry from the docker image.
mrjob/emr.py:3121
↓ 1 callers
Function
_du
Get total size of file or files in dir (recursive).
tests/mockhadoop.py:393
← previous
next →
801–900 of 4,468, ranked by callers