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
↓ 1 callers
Function
_dump_yaml_with_clear_tags
(data, stream=None, **kwds)
mrjob/conf.py:146
↓ 1 callers
Function
_ebs_volume_satisfies
Does the given actual EBS volume satisfy the given request?
mrjob/pool.py:516
↓ 1 callers
Function
_ebs_volumes_satisfy
Does the given list of actual EBS volumes satisfy the given request? Just compare them one by one (we want each actual device to be bigger/fa
mrjob/pool.py:498
↓ 1 callers
Function
_emr_proof_steps_desc
(steps_desc)
mrjob/spark/runner.py:516
↓ 1 callers
Method
_env_for_task
Set up environment variables for a subprocess (mapper, etc.) This combines, in decreasing order of priority: * environment variables
mrjob/sim.py:320
↓ 1 callers
Method
_expected_region
(self)
tests/mock_google/dataproc.py:123
↓ 1 callers
Method
_file_archive_hash_paths
Helper function for the *upload_args methods. The names of archives to pass to the ``--files`` switch of ``spark-submit``, since we ca
mrjob/runner.py:1421
↓ 1 callers
Method
_file_arg_hash_paths
Helper function for the *upload_args methods. The names of all arguments to ``-files`` (or ``--files`` on Spark). If *always_use_hash
mrjob/runner.py:1398
↓ 1 callers
Function
_filter_clusters
Filter out clusters that have tags matching any specified in exclude_strings. :param cluster_summaries: a list of :py:mod:`boto3` cluster sum
mrjob/tools/emr/report_long_jobs.py:116
↓ 1 callers
Method
_find_hadoop_bin
Look for the hadoop binary in any plausible place. If all else fails, return ``['hadoop']``.
mrjob/fs/hadoop.py:88
↓ 1 callers
Method
_find_spark_submit_bin
Attempt to find the spark binary. Returns a list of arguments. Defaults to ``['spark-submit']``. Re-define this in your subclass if y
mrjob/bin.py:878
↓ 1 callers
Method
_fix_cleanup_opt
Fix a cleanup option, or raise ValueError.
mrjob/runner.py:443
↓ 1 callers
Function
_fix_configuration_opt
Return copy of *c* with *Properties* is always set (defaults to {}) and with *Configurations* is not set if empty. Convert all values to strin
mrjob/emr.py:3265
↓ 1 callers
Method
_fix_opts
Take an options dictionary, and either return a sanitized version of it, or raise an exception. *source* is either a string describin
mrjob/runner.py:376
↓ 1 callers
Method
_fix_s3_tmp_and_log_uri_opts
Fill in cloud_tmp_dir and cloud_log_dir (in self._opts) if they aren't already set. Helper for __init__.
mrjob/emr.py:591
↓ 1 callers
Function
_fix_subnet_opt
Return either None, a string, or a list with at least two items.
mrjob/emr.py:3318
↓ 1 callers
Method
_fix_zone_and_region_opts
Ensure that exactly one of region and zone is set.
mrjob/dataproc.py:333
↓ 1 callers
Function
_fleet_for_same_role_satisfies
(actual_fleet, req_fleet)
mrjob/pool.py:293
↓ 1 callers
Function
_fleet_spec_satsifies
Make sure the specification for the given instance type is as good or better than the requested spec. Specs must have the same weight, but "b
mrjob/pool.py:361
↓ 1 callers
Function
_format_error_helper
Return string to log/print explaining the given error.
mrjob/logs/errors.py:152
↓ 1 callers
Function
_format_timedelta
Format a timedelta for use in a columnar format. This just tweaks stuff like ``'3 days, 9:00:00'`` to line up with ``'3 days, 10:00:00'``
mrjob/tools/emr/report_long_jobs.py:236
↓ 1 callers
Function
_fs_ls
(path)
mrjob/logs/wrap.py:63
↓ 1 callers
Function
_fully_qualify_network_uri
(uri, project_id)
tests/mock_google/dataproc.py:388
↓ 1 callers
Function
_fully_qualify_scope_uri
(uri)
mrjob/dataproc.py:1402
↓ 1 callers
Function
_fully_qualify_subnetwork_uri
(uri, project_id, region)
tests/mock_google/dataproc.py:398
↓ 1 callers
Method
_get_app_versions
Returns a map from lowercase app name to version for our cluster. For apps other than Hadoop, this only works for AMI 4.x and later.
mrjob/emr.py:2874
↓ 1 callers
Method
_get_collection_type
Return the collection type of the cluster (either ``'INSTANCE_FLEET'`` or ``'INSTANCE_GROUP'``).
mrjob/emr.py:2881
↓ 1 callers
Method
_get_job
(self, job_id)
mrjob/dataproc.py:1220
↓ 1 callers
Function
_get_job_steps
Efficiently fetch steps for a particular mrjob run from the EMR API. :param emr_client: a boto3 EMR client. See :py:meth:`
mrjob/emr.py:3215
↓ 1 callers
Function
_get_runner_opt_kwargs
Extract the options for the given runner class from *options*.
mrjob/tools/spark_submit.py:428
↓ 1 callers
Function
_get_spark_args
(parser, cl_args)
mrjob/tools/spark_submit.py:456
↓ 1 callers
Function
_get_step
(emr_client, cluster_id, step_id=None)
mrjob/tools/diagnose.py:103
↓ 1 callers
Function
_get_step
Extract the step from the runner options.
mrjob/tools/spark_submit.py:435
↓ 1 callers
Method
_get_step_log_interpretation
Return interpretation of the step log. Either implement this, or fill ``'step'`` yourself (e.g. from Hadoop binary's output.
mrjob/logs/mixin.py:90
↓ 1 callers
Method
_get_step_output_uri
Figure out the output dir for a step by parsing step.args and looking for an -output argument.
tests/mock_boto3/emr.py:1524
↓ 1 callers
Method
_get_tmpdir
Helper for _fix_tmpdir
mrjob/dataproc.py:427
↓ 1 callers
Function
_group_records_for_split
Helper for _split_records().
mrjob/sim.py:693
↓ 1 callers
Method
_group_steps
Group streaming steps together.
mrjob/spark/runner.py:296
↓ 1 callers
Function
_hadoop_cmd_line
Escape args of a command line in a way that Hadoop can process them.
mrjob/bin.py:1051
↓ 1 callers
Function
_hadoop_escape_arg
Escape a single command argument in a way that Hadoop can process it.
mrjob/bin.py:1057
↓ 1 callers
Function
_hadoop_ls_line
(real_path, scheme, netloc, size=0, max_size=0, environ={})
tests/mockhadoop.py:411
↓ 1 callers
Function
_hadoop_prefix_from_bin
Given a path to the hadoop binary, return the path of the implied hadoop home, or None if we don't know. Don't return the parent directory of
mrjob/hadoop.py:581
↓ 1 callers
Method
_hadoop_streaming_commands
(self, step_num)
mrjob/bin.py:354
↓ 1 callers
Method
_hadoop_streaming_jar_dirs
Yield all possible places to look for the Hadoop streaming jar. May yield duplicates.
mrjob/hadoop.py:277
↓ 1 callers
Method
_hadoop_streaming_jar_uri
(self)
mrjob/dataproc.py:616
↓ 1 callers
Function
_hyphen_to_camel
Convert a string like ``root-device-type`` to ``RootDeviceType``
tests/mock_boto3/ec2.py:76
↓ 1 callers
Function
_ig_satisfies_bid_price
Does the actual instance group definition satisfy the bid price (or lack thereof) of the requested instance group?
mrjob/pool.py:167
↓ 1 callers
Function
_ig_satisfies_mem
Does the actual instance group satisfy the memory requirements of the requested instance group?
mrjob/pool.py:197
↓ 1 callers
Function
_igs_for_same_role_satisfy
Does the *actual* list of instance groups satisfy the *requested* one?
mrjob/pool.py:147
↓ 1 callers
Function
_igs_satisfy_cpu
Does the list of actual instance groups satisfy the CPU requirements of the requested instance group?
mrjob/pool.py:219
↓ 1 callers
Function
_infer_step_type
(step)
mrjob/tools/diagnose.py:128
↓ 1 callers
Method
_input_paths_for_step
(self, step_num)
mrjob/sim.py:590
↓ 1 callers
Method
_instance_bid_price
What's the bid price for the given role (if any)?
mrjob/emr.py:1083
↓ 1 callers
Function
_instance_fleets_satisfy
Common code for :py:func:` :py:func:`_instance_groups_satisfy_fleets` and :py:func:`_instance_groups_satisfy`.
mrjob/pool.py:257
↓ 1 callers
Function
_instance_groups_satisfy
Do the actual instance groups from a cluster satisfy the requested ones, for the purpose of pooling?
mrjob/pool.py:106
↓ 1 callers
Method
_instance_is_worker
Do instances of the given role run tasks? True for non-master instances and sole master instance.
mrjob/emr.py:1063
↓ 1 callers
Method
_instance_profile
(self)
mrjob/emr.py:1271
↓ 1 callers
Method
_instance_type
What instance type should we use for the given role? (one of 'MASTER', 'CORE', 'TASK')
mrjob/emr.py:1036
↓ 1 callers
Method
_instance_type_config_to_spec
( self, operation_name, InstanceTypeConfig, Name, InstanceFleetType)
tests/mock_boto3/emr.py:759
↓ 1 callers
Method
_instance_type_configs_to_specs
Validate InstanceTypeConfigs from fleet request, and convert to InstanceTypeSpecifications (from ListInstanceFleets).
tests/mock_boto3/emr.py:732
↓ 1 callers
Method
_interpolate_spark_script_path
Redefine this in your subclass if the given path needs to be translated to a URI when running spark (e.g. on EMR).
mrjob/bin.py:1012
↓ 1 callers
Function
_interpret_new_dataproc_step_stderr
Incrementally update *step_interpretation* (a dict) with information from new lines read from Hadoop job driver output on Dataproc.
mrjob/logs/step.py:182
↓ 1 callers
Function
_interpret_task_logs
Look for errors in task syslog/stderr. If *partial* is true (the default), stop when we find the first error that includes a *task_error*.
mrjob/logs/task.py:252
↓ 1 callers
Method
_interpret_task_logs
Fetch task syslogs and stderr, and add 'task' to interpretation.
mrjob/logs/mixin.py:199
↓ 1 callers
Method
_invoke_task_func
Return a function that runs the given mapper/reducer. This needs to be pickleable if tasks are going to be invoked through multiproces
mrjob/sim.py:110
↓ 1 callers
Function
_is_pyspark_step_type
Does the given step type indicate that it uses Spark and Python?
mrjob/step.py:579
↓ 1 callers
Method
_jar_step_job_kwarg
Returns a map from ``'hadoop_job'`` to a dict representing a Hadoop job that runs a JAR
mrjob/dataproc.py:594
↓ 1 callers
Method
_job_kwargs
Keyword arguments to the runner class that can be specified by the job/launcher itself.
mrjob/job.py:236
↓ 1 callers
Method
_job_tracker_host
(self)
mrjob/dataproc.py:1266
↓ 1 callers
Method
_job_tracker_url
Not actually used to set up the SSH tunnel, used to run curl over SSH to fetch from the job tracker directly.
mrjob/emr.py:930
↓ 1 callers
Method
_kwargs_from_switches
(self, keys)
mrjob/job.py:230
↓ 1 callers
Method
_last_task_type_in_step
(self, step_num)
mrjob/sim.py:563
↓ 1 callers
Method
_launch
(self)
mrjob/dataproc.py:471
↓ 1 callers
Method
_launch_ssh_proc
The command used to create a :py:class:`subprocess.Popen` to run the SSH tunnel. You usually don't need to redefine this.
mrjob/cloud.py:393
↓ 1 callers
Method
_launch_step
(self, step_num)
mrjob/dataproc.py:689
↓ 1 callers
Function
_load_opts_from_mrjob_conf
Helper for :py:func:`load_opts_from_mrjob_conf` for recursive use. This doesn't expand or default *conf_path*.
mrjob/conf.py:263
↓ 1 callers
Method
_log_cause_of_error
Log why the job failed.
mrjob/sim.py:132
↓ 1 callers
Function
_log_filter_str
return a map from name to value into a log filter query that requires each name to equal the given value.
mrjob/dataproc.py:1302
↓ 1 callers
Function
_log_key
Helper method for _ls_task_logs() and _ls_spark_task_logs().
mrjob/logs/task.py:213
↓ 1 callers
Function
_log_log4j_record
Log a log4j message at the appropriate logging level
mrjob/logs/step.py:410
↓ 1 callers
Function
_ls_emr_bootstrap_stderr_logs
Find all stderr from bootstrap actions in the given dir. Sort so the most recent one comes first, using node ID as a tiebreaker. (In practice
mrjob/logs/bootstrap.py:67
↓ 1 callers
Function
_ls_history_logs
Yield matching files, optionally filtering by *job_id*. Yields dicts with the keys: job_id: job_id in path (must match *job_id* if set) p
mrjob/logs/history.py:78
↓ 1 callers
Method
_ls_spark_paths
(self, log_dir_stream, **kwargs)
tests/logs/test_task.py:152
↓ 1 callers
Function
_make_arg_parser
()
mrjob/tools/diagnose.py:142
↓ 1 callers
Function
_make_arg_parser
()
mrjob/tools/spark_submit.py:488
↓ 1 callers
Function
_make_arg_parser
()
mrjob/tools/emr/audit_usage.py:106
↓ 1 callers
Function
_make_arg_parser
()
mrjob/tools/emr/create_cluster.py:228
↓ 1 callers
Function
_make_arg_parser
()
mrjob/tools/emr/s3_tmpwatch.py:117
↓ 1 callers
Function
_make_arg_parser
()
mrjob/tools/emr/report_long_jobs.py:250
↓ 1 callers
Function
_make_arg_parser
()
mrjob/tools/emr/terminate_idle_clusters.py:317
↓ 1 callers
Function
_make_arg_parser
()
mrjob/spark/harness.py:645
↓ 1 callers
Function
_make_basic_help_parser
Make an arg parser that's used only for printing basic help. This prints help very similar to spark-submit itself. Runner args are not includ
mrjob/tools/spark_submit.py:579
↓ 1 callers
Method
_make_job
(self, steps)
tests/test_job.py:476
↓ 1 callers
Method
_make_matcher
(self, filter_)
tests/mock_google/logging.py:59
↓ 1 callers
Method
_make_popen_class
(outer, func, env)
tests/fs/__init__.py:34
↓ 1 callers
Method
_make_request
(self)
tests/mock_boto3/util.py:36
↓ 1 callers
Method
_make_unique_job_key
Come up with a useful unique ID for this job. Optionally, you can specify a custom label or owner (otherwise we use :py:meth:`_label`
mrjob/runner.py:740
↓ 1 callers
Method
_manifest_download_commands
Return a list of ``(glob, cmd)``, where *glob* matches a path or URI to download, and download command is a command to download it (e.
mrjob/bin.py:736
↓ 1 callers
Method
_manifest_download_content
write the part of the manifest setup script after setup, that downloads the input file, runs the script, and then deletes the file.
mrjob/bin.py:655
↓ 1 callers
Method
_manifest_uncompress_commands
Return a list of ``(ext, cmd)`` where ``ext`` is a file extension (e.g. ``gz``) and ``cmd`` is a command to uncompress it (e.g. ``gunz
mrjob/bin.py:746
← previous
next →
901–1,000 of 4,468, ranked by callers