MCPcopy Create free account

hub / github.com/Yelp/mrjob / functions

Functions4,468 in github.com/Yelp/mrjob

↓ 4 callersMethod_assert_adds_steps_one_at_a_time
(self, *job_args)
tests/test_emr.py:6203
↓ 4 callersMethod_assert_installs_python3_on_py3
(self, *args)
tests/test_emr.py:3017
↓ 4 callersMethod_assert_partition_count_different
(self, cls, num_reducers)
tests/spark/test_harness.py:561
↓ 4 callersFunction_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 callersMethod_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 callersMethod_bootstrap_mrjob
Should we bootstrap mrjob?
mrjob/runner.py:1062
↓ 4 callersFunction_cluster_path
(project_id, region, cluster_name)
tests/mock_google/dataproc.py:379
↓ 4 callersFunction_describe_source
return either '<path>' or 'line N of <path>' or 'lines M-N of <path>'.
mrjob/logs/errors.py:197
↓ 4 callersFunction_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 callersMethod_find_spark_submit_bin
(self)
mrjob/emr.py:1387
↓ 4 callersMethod_gce_instance_group_summary
(self, instance_group)
tests/test_dataproc.py:732
↓ 4 callersMethod_get_input_paths
Get the paths to input files, dumping STDIN to a local file if need be.
mrjob/runner.py:1069
↓ 4 callersFunction_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 callersMethod_launch_and_get_progress_html
(self, ssh_tunnel=True)
tests/test_emr.py:5563
↓ 4 callersMethod_launch_and_log_progress
(self, *args)
tests/test_emr.py:5482
↓ 4 callersMethod_launch_cluster
Create an empty cluster on Dataproc, and set self._cluster_id to its ID.
mrjob/dataproc.py:622
↓ 4 callersFunction_list_all_bootstrap_actions
Get bootstrap action for the runner's cluster as a list.
tests/test_emr.py:133
↓ 4 callersMethod_ls_paths
(self, log_dir_stream, **kwargs)
tests/logs/test_task.py:148
↓ 4 callersMethod_ls_task_logs
Yield task log matches.
mrjob/logs/mixin.py:251
↓ 4 callersMethod_master_node_setup_working_dir
Where to place files used by the master node setup script.
mrjob/emr.py:2336
↓ 4 callersMethod_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 callersFunction_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 callersMethod_mock_bucket_keys
(self, operation_name)
tests/mock_boto3/s3.py:368
↓ 4 callersFunction_no_such_bucket_error
(bucket_name, operation_name)
tests/mock_boto3/s3.py:402
↓ 4 callersMethod_output_dir_for_step
(self, step_num)
mrjob/sim.py:601
↓ 4 callersFunction_parse_cluster_lock
Return (job_key, expiry) or raise ValueError Raises TypeError if *lock* is not a string.
mrjob/pool.py:567
↓ 4 callersFunction_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 callersMethod_prepare_for_launch
Set up files needed for the job.
mrjob/emr.py:715
↓ 4 callersMethod_region
(self)
mrjob/dataproc.py:461
↓ 4 callersFunction_rev
(s)
tests/mr_sort_and_group_reversed_text.py:20
↓ 4 callersMethod_run_job
(self, job_class, *extra_args)
tests/spark/test_runner.py:629
↓ 4 callersMethod_runner_class
Runner class as indicated by ``--runner``. Defaults to ``'inline'``.
mrjob/job.py:715
↓ 4 callersFunction_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 callersMethod_set_up_ssh_tunnel_and_hdfs
(self)
mrjob/emr.py:856
↓ 4 callersMethod_simulate_jobconf_for_step
( self, task_type, step_num, task_num, map_split=None)
mrjob/sim.py:352
↓ 4 callersFunction_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 callersMethod_spark_master
Use the local-cluster master, which simulates a Spark cluster.
mrjob/local.py:233
↓ 4 callersMethod_spark_script_path
The path of the spark script or JAR, used by _args_for_spark_step().
mrjob/bin.py:996
↓ 4 callersMethod_spark_upload_args
(self)
mrjob/bin.py:985
↓ 4 callersMethod_step_dir
(self, step_num)
mrjob/sim.py:587
↓ 4 callersMethod_step_key
(self, step_num, step_type)
mrjob/job.py:980
↓ 4 callersMethod_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 callersMethod_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 callersMethod_test_file_upload_args
(self, job_class, spark_master)
tests/spark/test_runner.py:527
↓ 4 callersMethod_test_interpret_all_logs
(self, log_interpretation)
tests/logs/test_mixin.py:703
↓ 4 callersMethod_test_task_interpretation_already_filled
( self, log_interpretation, step_type='streaming', **kwargs)
tests/logs/test_mixin.py:224
↓ 4 callersMethod_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 callersMethodadd_tags
Simulate successful creation of new metadata tags for the specified resource id.
tests/mock_boto3/emr.py:1252
↓ 4 callersMethodassertRanIdleTimeoutScriptWith
(self, runner, args)
tests/test_emr.py:1892
↓ 4 callersMethodassert_no_retry
(self, ex)
tests/test_aws.py:84
↓ 4 callersMethodblob
(self, blob_name, chunk_size=None)
tests/mock_google/storage.py:61
↓ 4 callersMethodcat_log
(self, path)
tests/logs/test_wrap.py:39
↓ 4 callersMethodclient
(self)
mrjob/fs/gcs.py:86
↓ 4 callersFunctioncombine_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 callersMethodcreate
(self, location=None)
tests/mock_google/storage.py:65
↓ 4 callersMethoddownload_as_string
(self, client=None, start=None, end=None)
tests/mock_google/storage.py:151
↓ 4 callersMethodget_bucket
(self, bucket_name)
tests/mock_google/storage.py:35
↓ 4 callersMethodget_hadoop_version
Invoke the hadoop executable to determine its version
mrjob/fs/hadoop.py:124
↓ 4 callersMethodget_runner_and_job
(self, *args)
tests/test_dataproc.py:2192
↓ 4 callersFunctiongzip_compress
return the gzip-compressed version of the given bytes.
tests/compress.py:22
↓ 4 callersMethodinterpret_emr_step_stderr
(self, **kwargs)
tests/logs/test_step.py:647
↓ 4 callersFunctionload_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 callersFunctionmain
(args=None)
mrjob/tools/emr/report_long_jobs.py:76
↓ 4 callersMethodmake_simple_runner
Make an EMRJobRunner that is ready to try to find a pool to join
tests/test_emr_pooling.py:185
↓ 4 callersFunctionmock_log4j
(message, level='INFO', logger='mapreduce.JOB', now=None)
tests/mockhadoop.py:720
↓ 4 callersFunctionmock_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 callersMethodmonkey_patch_argv
(self, *args)
tests/tools/emr/__init__.py:27
↓ 4 callersMethodmonkey_patch_stdout
(self)
tests/tools/emr/__init__.py:32
↓ 4 callersMethodoutput_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 callersFunctionrel_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 callersMethodset_in_mrjob_conf
(self, **kwargs)
tests/test_dataproc.py:774
↓ 4 callersMethodset_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 callersMethodwait
(self)
tests/fs/__init__.py:67
↓ 3 callersMethod_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 callersMethod_args_for_step
(self, step_num)
mrjob/hadoop.py:464
↓ 3 callersMethod_assert_adds_steps_in_batch
(self, *job_args)
tests/test_emr.py:6200
↓ 3 callersFunction_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 callersMethod_blob_uri
(self)
tests/mock_google/storage.py:194
↓ 3 callersMethod_check_and_fix_s3_dir
Helper for __init__
mrjob/emr.py:645
↓ 3 callersMethod_check_bucket_exists
(self, bucket_name, operation_name)
tests/mock_boto3/s3.py:79
↓ 3 callersMethod_check_role_exists
(self, RoleName, OperationName)
tests/mock_boto3/iam.py:118
↓ 3 callersMethod_check_type
(self, type)
mrjob/setup.py:514
↓ 3 callersFunction_cluster_state_value
(state_name)
tests/mock_google/dataproc.py:92
↓ 3 callersMethod_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 callersMethod_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 callersFunction_fix_env
Convert environment dictionary to strings (Python 2.7 on Windows doesn't allow unicode).
mrjob/runner.py:1497
↓ 3 callersFunction_fix_java_stack_trace
(s)
mrjob/dataproc.py:1344
↓ 3 callersFunction_gcp_instance_group_config
( project, zone, count, instance_type, is_preemptible=False)
mrjob/dataproc.py:154
↓ 3 callersFunction_get_cluster_lock
(cluster)
mrjob/pool.py:585
↓ 3 callersMethod_get_cluster_properties
(self, *args)
tests/test_dataproc.py:508
↓ 3 callersMethod_get_step
Get a single step (calls :py:meth:`_get_steps`).
mrjob/runner.py:836
↓ 3 callersMethod_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 callersMethod_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 callersMethod_intermediate_output_dir
A directory for intermediate output for the given step number.
mrjob/runner.py:1271
↓ 3 callersMethod_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 callersFunction_is_cluster_bootstrapping
Return ``True`` if *cluster_summary* is currently bootstrapping.
mrjob/tools/emr/terminate_idle_clusters.py:246
↓ 3 callersFunction_is_cluster_done
Return True if the given cluster is done running.
mrjob/tools/emr/terminate_idle_clusters.py:236
↓ 3 callersFunction_is_cluster_starting
(cluster_summary)
mrjob/tools/emr/terminate_idle_clusters.py:242
↓ 3 callersMethod_kill_ssh_tunnel
Send SIGKILL to SSH tunnel, if it's running.
mrjob/cloud.py:485
↓ 3 callersMethod_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
← previousnext →401–500 of 4,468, ranked by callers