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
↓ 4 callers
Method
_assert_adds_steps_one_at_a_time
(self, *job_args)
tests/test_emr.py:6203
↓ 4 callers
Method
_assert_installs_python3_on_py3
(self, *args)
tests/test_emr.py:3017
↓ 4 callers
Method
_assert_partition_count_different
(self, cls, num_reducers)
tests/spark/test_harness.py:561
↓ 4 callers
Function
_attempt_to_unlock_cluster
Release our lock on the given pooled cluster. Only do this if you know the cluster is currently running steps (so other jobs won't try to join
mrjob/pool.py:713
↓ 4 callers
Method
_bootstrap_actions
Parse *bootstrap_actions* option into dictionaries with keys *path*, *args*, adding Spark bootstrap action if needed. (This doesn't h
mrjob/emr.py:2229
↓ 4 callers
Method
_bootstrap_mrjob
Should we bootstrap mrjob?
mrjob/runner.py:1062
↓ 4 callers
Function
_cluster_path
(project_id, region, cluster_name)
tests/mock_google/dataproc.py:379
↓ 4 callers
Function
_describe_source
return either '<path>' or 'line N of <path>' or 'lines M-N of <path>'.
mrjob/logs/errors.py:197
↓ 4 callers
Function
_endpoint_url
If *host_or_uri* is non-empty and isn't a URI, prepend ``'https://'``. Otherwise, pass through as-is.
mrjob/fs/s3.py:56
↓ 4 callers
Method
_find_spark_submit_bin
(self)
mrjob/emr.py:1387
↓ 4 callers
Method
_gce_instance_group_summary
(self, instance_group)
tests/test_dataproc.py:732
↓ 4 callers
Method
_get_input_paths
Get the paths to input files, dumping STDIN to a local file if need be.
mrjob/runner.py:1069
↓ 4 callers
Function
_im_func
Wrapper to get at the underlying function belonging to a method. Python 2 is slightly different because classes have "unbound methods" which
mrjob/job.py:71
↓ 4 callers
Method
_launch_and_get_progress_html
(self, ssh_tunnel=True)
tests/test_emr.py:5563
↓ 4 callers
Method
_launch_and_log_progress
(self, *args)
tests/test_emr.py:5482
↓ 4 callers
Method
_launch_cluster
Create an empty cluster on Dataproc, and set self._cluster_id to its ID.
mrjob/dataproc.py:622
↓ 4 callers
Function
_list_all_bootstrap_actions
Get bootstrap action for the runner's cluster as a list.
tests/test_emr.py:133
↓ 4 callers
Method
_ls_paths
(self, log_dir_stream, **kwargs)
tests/logs/test_task.py:148
↓ 4 callers
Method
_ls_task_logs
Yield task log matches.
mrjob/logs/mixin.py:251
↓ 4 callers
Method
_master_node_setup_working_dir
Where to place files used by the master node setup script.
mrjob/emr.py:2336
↓ 4 callers
Method
_master_private_ip
Get the internal ("private") address of the master node, so we can direct our SSH tunnel to it.
mrjob/emr.py:2869
↓ 4 callers
Function
_match_emr_step_syslog_path
Match path of a step syslog, optionally filtering by *step_id*. If there is a match, return a dict with the keys *step_id* and *timestamp* (a
mrjob/logs/step.py:121
↓ 4 callers
Method
_mock_bucket_keys
(self, operation_name)
tests/mock_boto3/s3.py:368
↓ 4 callers
Function
_no_such_bucket_error
(bucket_name, operation_name)
tests/mock_boto3/s3.py:402
↓ 4 callers
Method
_output_dir_for_step
(self, step_num)
mrjob/sim.py:601
↓ 4 callers
Function
_parse_cluster_lock
Return (job_key, expiry) or raise ValueError Raises TypeError if *lock* is not a string.
mrjob/pool.py:567
↓ 4 callers
Function
_parse_progress_from_job_tracker
Pull (map_percent, reduce_percent) from running job from job tracker HTML as floats, or return (None, None). This assumes at most one running
mrjob/parse.py:172
↓ 4 callers
Method
_prepare_for_launch
Set up files needed for the job.
mrjob/emr.py:715
↓ 4 callers
Method
_region
(self)
mrjob/dataproc.py:461
↓ 4 callers
Function
_rev
(s)
tests/mr_sort_and_group_reversed_text.py:20
↓ 4 callers
Method
_run_job
(self, job_class, *extra_args)
tests/spark/test_runner.py:629
↓ 4 callers
Method
_runner_class
Runner class as indicated by ``--runner``. Defaults to ``'inline'``.
mrjob/job.py:715
↓ 4 callers
Function
_s3_cleanup
Delete all files older than *time_old* in *path*. If *dry_run* is true, then just log the files that need to be deleted without actually dele
mrjob/tools/emr/s3_tmpwatch.py:77
↓ 4 callers
Method
_set_up_ssh_tunnel_and_hdfs
(self)
mrjob/emr.py:856
↓ 4 callers
Method
_simulate_jobconf_for_step
( self, task_type, step_num, task_num, map_split=None)
mrjob/sim.py:352
↓ 4 callers
Function
_sort_for_spark
Sort the given list/sequence of dicts in forward order by task/container ID, with most recent attempts first. This is used for finding errors on
mrjob/logs/ids.py:27
↓ 4 callers
Method
_spark_master
Use the local-cluster master, which simulates a Spark cluster.
mrjob/local.py:233
↓ 4 callers
Method
_spark_script_path
The path of the spark script or JAR, used by _args_for_spark_step().
mrjob/bin.py:996
↓ 4 callers
Method
_spark_upload_args
(self)
mrjob/bin.py:985
↓ 4 callers
Method
_step_dir
(self, step_num)
mrjob/sim.py:587
↓ 4 callers
Method
_step_key
(self, step_num, step_type)
mrjob/job.py:980
↓ 4 callers
Method
_stream_log_dirs
Stream log dirs for any kind of log. Our general strategy is first, if SSH is enabled, to SSH into the master node (and possibly work
mrjob/emr.py:2034
↓ 4 callers
Method
_task_output_path
Where to output data for the given task. Usually this is just a file named "output" in the task's directory, but if it's the last tas
mrjob/sim.py:627
↓ 4 callers
Method
_test_file_upload_args
(self, job_class, spark_master)
tests/spark/test_runner.py:527
↓ 4 callers
Method
_test_interpret_all_logs
(self, log_interpretation)
tests/logs/test_mixin.py:703
↓ 4 callers
Method
_test_task_interpretation_already_filled
( self, log_interpretation, step_type='streaming', **kwargs)
tests/logs/test_mixin.py:224
↓ 4 callers
Method
_write_script
Write text of a setup script, input manifest, etc. to the given file. By default, this writes binary data. Redefine :py:meth:`write_l
mrjob/runner.py:1472
↓ 4 callers
Method
add_tags
Simulate successful creation of new metadata tags for the specified resource id.
tests/mock_boto3/emr.py:1252
↓ 4 callers
Method
assertRanIdleTimeoutScriptWith
(self, runner, args)
tests/test_emr.py:1892
↓ 4 callers
Method
assert_no_retry
(self, ex)
tests/test_aws.py:84
↓ 4 callers
Method
blob
(self, blob_name, chunk_size=None)
tests/mock_google/storage.py:61
↓ 4 callers
Method
cat_log
(self, path)
tests/logs/test_wrap.py:39
↓ 4 callers
Method
client
(self)
mrjob/fs/gcs.py:86
↓ 4 callers
Function
combine_path_lists
Concatenate the given sequences into a list. Ignore None values. Resolve ``~`` (home dir) and environment variables, and expand globs that ref
mrjob/conf.py:525
↓ 4 callers
Method
create
(self, location=None)
tests/mock_google/storage.py:65
↓ 4 callers
Method
download_as_string
(self, client=None, start=None, end=None)
tests/mock_google/storage.py:151
↓ 4 callers
Method
get_bucket
(self, bucket_name)
tests/mock_google/storage.py:35
↓ 4 callers
Method
get_hadoop_version
Invoke the hadoop executable to determine its version
mrjob/fs/hadoop.py:124
↓ 4 callers
Method
get_runner_and_job
(self, *args)
tests/test_dataproc.py:2192
↓ 4 callers
Function
gzip_compress
return the gzip-compressed version of the given bytes.
tests/compress.py:22
↓ 4 callers
Method
interpret_emr_step_stderr
(self, **kwargs)
tests/logs/test_step.py:647
↓ 4 callers
Function
load_mrjob_conf
Shortcut for automatically loading mrjob.conf from one of the predefined locations and returning the de-YAMLed object
tests/test_conf.py:50
↓ 4 callers
Function
main
(args=None)
mrjob/tools/emr/report_long_jobs.py:76
↓ 4 callers
Method
make_simple_runner
Make an EMRJobRunner that is ready to try to find a pool to join
tests/test_emr_pooling.py:185
↓ 4 callers
Function
mock_log4j
(message, level='INFO', logger='mapreduce.JOB', now=None)
tests/mockhadoop.py:720
↓ 4 callers
Function
mock_stdout_or_stderr
Use this to make a mock stdout/stderr (e.g. for a method that calls print()). In Python 2, this is just a StringIO. In Python 3, this is
tests/py2.py:55
↓ 4 callers
Method
monkey_patch_argv
(self, *args)
tests/tools/emr/__init__.py:27
↓ 4 callers
Method
monkey_patch_stdout
(self)
tests/tools/emr/__init__.py:32
↓ 4 callers
Method
output_protocol
Instance of the protocol to use to convert Python objects to output lines. Default behavior is to return an instance of :py:attr:`OUTP
mrjob/job.py:1248
↓ 4 callers
Function
rel_posix_to_abs_local
Convert a POSIX path to the current system's format and prepend the tmp directory the host's files are in
tests/mockssh.py:100
↓ 4 callers
Method
set_in_mrjob_conf
(self, **kwargs)
tests/test_dataproc.py:774
↓ 4 callers
Method
set_status
Set the job status in hadoop streaming by printing to stderr. This is also a good way of doing a keepalive for a job that goes a long
mrjob/job.py:585
↓ 4 callers
Method
wait
(self)
tests/fs/__init__.py:67
↓ 3 callers
Method
_add_steps_to_cluster
Add steps (from _steps_to_submit()) to our cluster and append their IDs to self._step_ids
mrjob/emr.py:1529
↓ 3 callers
Method
_args_for_step
(self, step_num)
mrjob/hadoop.py:464
↓ 3 callers
Method
_assert_adds_steps_in_batch
(self, *job_args)
tests/test_emr.py:6200
↓ 3 callers
Function
_blank_out_conflicting_opts
Utility for :py:meth:`MRJobRunner._combine_opts()`: if multiple configs specify conflicting opts, blank them out in all but the last config (s
mrjob/runner.py:1509
↓ 3 callers
Method
_blob_uri
(self)
tests/mock_google/storage.py:194
↓ 3 callers
Method
_check_and_fix_s3_dir
Helper for __init__
mrjob/emr.py:645
↓ 3 callers
Method
_check_bucket_exists
(self, bucket_name, operation_name)
tests/mock_boto3/s3.py:79
↓ 3 callers
Method
_check_role_exists
(self, RoleName, OperationName)
tests/mock_boto3/iam.py:118
↓ 3 callers
Method
_check_type
(self, type)
mrjob/setup.py:514
↓ 3 callers
Function
_cluster_state_value
(state_name)
tests/mock_google/dataproc.py:92
↓ 3 callers
Method
_copy_files_to_wd_mirror
Upload working dir files to the working dir mirror, if necessary. This does not handle archives, which we always rename with hash pat
mrjob/runner.py:1240
↓ 3 callers
Method
_emulate_archives_on_spark
True if spark-submit's --archives doesn't work on the given Spark master, which means we'll need to emulate archives in setup scripts.
mrjob/runner.py:911
↓ 3 callers
Function
_fix_env
Convert environment dictionary to strings (Python 2.7 on Windows doesn't allow unicode).
mrjob/runner.py:1497
↓ 3 callers
Function
_fix_java_stack_trace
(s)
mrjob/dataproc.py:1344
↓ 3 callers
Function
_gcp_instance_group_config
( project, zone, count, instance_type, is_preemptible=False)
mrjob/dataproc.py:154
↓ 3 callers
Function
_get_cluster_lock
(cluster)
mrjob/pool.py:585
↓ 3 callers
Method
_get_cluster_properties
(self, *args)
tests/test_dataproc.py:508
↓ 3 callers
Method
_get_step
Get a single step (calls :py:meth:`_get_steps`).
mrjob/runner.py:836
↓ 3 callers
Method
_hadoop_streaming_jar_args
The arguments that come after ``hadoop jar <streaming jar path>`` when running a Hadoop streaming job.
mrjob/bin.py:307
↓ 3 callers
Method
_handle
Call method named *name* on the first (non-disabled) filesystem that says it can handle every path in *paths_to_handle*. If it raises
mrjob/fs/composite.py:96
↓ 3 callers
Method
_intermediate_output_dir
A directory for intermediate output for the given step number.
mrjob/runner.py:1271
↓ 3 callers
Method
_interpolate_jar_step_args
Like :py:meth:`_interpolate_step_args` except it also replaces `~mrjob.step.GENERIC_ARGS` with :py:meth:`_hadoop_generic_args_for_step
mrjob/bin.py:386
↓ 3 callers
Function
_is_cluster_bootstrapping
Return ``True`` if *cluster_summary* is currently bootstrapping.
mrjob/tools/emr/terminate_idle_clusters.py:246
↓ 3 callers
Function
_is_cluster_done
Return True if the given cluster is done running.
mrjob/tools/emr/terminate_idle_clusters.py:236
↓ 3 callers
Function
_is_cluster_starting
(cluster_summary)
mrjob/tools/emr/terminate_idle_clusters.py:242
↓ 3 callers
Method
_kill_ssh_tunnel
Send SIGKILL to SSH tunnel, if it's running.
mrjob/cloud.py:485
↓ 3 callers
Method
_ls
Helper method for :py:meth:`ls`; yields tuples of ``(uri, blob)`` where *blob* is the corresponding :py:class:`google.cloud.storage.bl
mrjob/fs/gcs.py:110
← previous
next →
401–500 of 4,468, ranked by callers