MCPcopy Create free account

hub / github.com/Yelp/mrjob / functions

Functions4,468 in github.com/Yelp/mrjob

↓ 2 callersMethod_args_for_task
(self, step_num, mrc)
mrjob/runner.py:917
↓ 2 callersMethod_assert_matches
(self, expected_value, expected_num_steps, job_args)
tests/test_emr.py:6206
↓ 2 callersMethod_assert_prints_basic_help
(self, args, include_deprecated=False)
tests/tools/test_spark_submit.py:304
↓ 2 callersMethod_assert_prints_runner_help
(self, args, runner_alias, expect_switches=(),
tests/tools/test_spark_submit.py:326
↓ 2 callersMethod_assert_tries_to_install_python3_on_py3
(self, *args)
tests/test_emr.py:3025
↓ 2 callersMethod_bash_is_bad
(self)
mrjob/emr.py:654
↓ 2 callersMethod_blob
(self, uri, chunk_size=None)
mrjob/fs/gcs.py:293
↓ 2 callersMethod_bootstrap_pre_commands
A list of hard-coded commands to run at the beginning of the bootstrap script. Currently used by dataproc to cd into a tmp dir.
mrjob/cloud.py:336
↓ 2 callersFunction_boto3_today
()
tests/mock_boto3/s3.py:174
↓ 2 callersMethod_build_master_node_setup_step
(self)
mrjob/emr.py:1420
↓ 2 callersFunction_check_and_fix_fs_dir
Helper for __init__
mrjob/dataproc.py:180
↓ 2 callersMethod_check_name
(self, name)
mrjob/setup.py:504
↓ 2 callersFunction_check_substep
Raise :py:class:`NotImplementedError` if the given substep (e.g. ``'mapper'``) runs subprocesses.
mrjob/spark/harness.py:627
↓ 2 callersFunction_chmod_u_rx
make *path* user readable and executable. If *recursive* is true, make *path* and everything inside it executable.
mrjob/sim.py:680
↓ 2 callersMethod_client_create_kwargs
(self)
mrjob/dataproc.py:389
↓ 2 callersMethod_client_kwargs
Keyword args for creating resources or clients.
mrjob/fs/s3.py:287
↓ 2 callersFunction_cluster_has_pending_steps
Does *cluster* have any steps in the ``PENDING`` state?
mrjob/tools/emr/terminate_idle_clusters.py:264
↓ 2 callersMethod_cluster_name_pooling_suffix
Extra info added to the cluster name, for pooling.
mrjob/emr.py:2819
↓ 2 callersFunction_cluster_to_basic_summary
Extract fields such as creation time, owner, etc. from the cluster. :param cluster: a :py:mod:`boto3` cluster data structure :param now: the
mrjob/tools/emr/audit_usage.py:287
↓ 2 callersFunction_combine_envs_helper
(envs, local)
mrjob/conf.py:484
↓ 2 callersMethod_combine_or_reduce_pairs
Helper for :py:meth:`combine_pairs` and :py:meth:`reduce_pairs`.
mrjob/job.py:869
↓ 2 callersFunction_conf_object_at_path
(conf_path)
mrjob/conf.py:216
↓ 2 callersMethod_copy_file_to_wd_mirror
Upload/copy *path* to the appropriate place in the working dir mirror, if necessary. We don't track whether something has already bee
mrjob/runner.py:1207
↓ 2 callersMethod_counter_output_dir
(self, step_num)
mrjob/spark/runner.py:209
↓ 2 callersMethod_create_cluster
Create an empty cluster on EMR, and return the ID of that job. If the ``tags`` option is set, also tags the cluster (which is
mrjob/emr.py:1110
↓ 2 callersMethod_create_dist_cache_dir
Copy working directory files into a shared directory, simulating the way Hadoop's Distributed Cache works on nodes.
mrjob/sim.py:296
↓ 2 callersMethod_create_master_bootstrap_script_if_needed
Helper for :py:meth:`_add_bootstrap_files_for_upload`. Create the master bootstrap script and write it into our local temp directory.
mrjob/cloud.py:209
↓ 2 callersFunction_create_mrjob_role_with_attached_policy
Create a new role with a random name starting with ``mrjob-`` that has the given policy document and the given policy ARN attached. (Roles ca
mrjob/iam.py:155
↓ 2 callersFunction_create_zip_file
(path)
mrjob/util.py:423
↓ 2 callersMethod_dataproc_job_prefix
(self)
mrjob/dataproc.py:670
↓ 2 callersFunction_deduplicate_emr_configurations
Takes the value of the *emr_configurations* opt, and ensures that later configs overwrite earlier ones with the same Classification. Addition
mrjob/emr.py:3245
↓ 2 callersMethod_default
(self, k)
mrjob/step.py:402
↓ 2 callersMethod_default_instance_type
Default instance type if not set by the user.
mrjob/emr.py:1054
↓ 2 callersFunction_discard_key_and_flatten_values
Helper function for :py:func:`_run_combiner` and :py:func:`_shuffle_and_sort`. Given an RDD containing (key, [line1, line2, ...]), discard *k
mrjob/spark/harness.py:590
↓ 2 callersMethod_dist_cache_dir
(self, step_num)
mrjob/sim.py:577
↓ 2 callersMethod_docker_image
Special-case the "library" registry which is implied on Docker Hub but needs to be specified explicitly on EMR.
mrjob/emr.py:3109
↓ 2 callersMethod_dumps
Encode a single key/value, and return it.
mrjob/protocol.py:79
↓ 2 callersMethod_ebs_block_device_configs_to_block_devices
( self, operation_name, EbsBlockDeviceConfigs)
tests/mock_boto3/emr.py:857
↓ 2 callersFunction_ebs_satisfies
Does *actual* have EBS volumes that satisfy *request*. *actual* is either an instance group from ``ListInstanceGroups`` or an instance fleet
mrjob/pool.py:445
↓ 2 callersFunction_eio_to_eof
Yield lines from a PTY, gracefully handling an ``IOError`` with ``errno == EIO`` as end-of-file.
mrjob/logs/step.py:208
↓ 2 callersMethod_emr_configurations
(self)
mrjob/emr.py:3102
↓ 2 callersFunction_expanded_mrjob_conf_path
Return the path of a single conf file. If *conf_path* is ``False``, return ``None``, and if it's ``None``, return :py:func:`find_mrjob_conf`.
mrjob/conf.py:72
↓ 2 callersMethod_extra_expected_local_files
A list of additional local files expected, as tuples of (path, name). Hook for dealing with cat.py in local mode.
tests/test_sim.py:212
↓ 2 callersFunction_extract_action_num_and_node_id
Helper method: Extract *action_num* and *node_id* from the given regex match. Convert *action_num* to a 0-indexed integer.
mrjob/logs/bootstrap.py:143
↓ 2 callersFunction_extract_errors
Extract all errors from *log_interpretation*, in no particular order.
mrjob/logs/errors.py:49
↓ 2 callersFunction_extract_yarn_counters
Convert Avro-Json counter data structure to our group -> counter -> amount format. This deals gracefully with unexpected data structures.
mrjob/logs/history.py:242
↓ 2 callersFunction_find_long_running_jobs
Identify jobs that have been running or pending for a long time. :param clusters: a list of :py:mod:`boto3` cluster summary data structures :
mrjob/tools/emr/report_long_jobs.py:139
↓ 2 callersMethod_finish_run
(self)
mrjob/emr.py:707
↓ 2 callersMethod_fix_opt
Fix a single option, returning its correct value or raising an exception. This is not called for options that are ``None``. This curr
mrjob/runner.py:430
↓ 2 callersFunction_gcp_zone_uri
(project, zone)
mrjob/dataproc.py:147
↓ 2 callersFunction_get_bucket_region
Look up the given bucket's location constraint and translate it to a region name.
mrjob/fs/s3.py:69
↓ 2 callersMethod_get_new_driver_output_lines
Get a list of complete job driver output lines that are new since the last time we checked.
mrjob/dataproc.py:802
↓ 2 callersFunction_get_timeout_action
(fleet)
mrjob/pool.py:347
↓ 2 callersFunction_get_timeout_duration
(fleet)
mrjob/pool.py:354
↓ 2 callersMethod_hadoop_dirs
Yield all possible hadoop directories (used for streaming jar and logs). May yield duplicates
mrjob/hadoop.py:258
↓ 2 callersFunction_hadoop_fs_du
Implements fs -du and fs -dus.
tests/mockhadoop.py:341
↓ 2 callersFunction_hadoop_fs_ls
Helper for hadoop_fs_ls() and hadoop_fs_lsr().
tests/mockhadoop.py:461
↓ 2 callersFunction_hadoop_fs_rm
Helper for hadoop_fs_rm() and hadoop_fs_rmr().
tests/mockhadoop.py:635
↓ 2 callersMethod_hadoop_generic_args_for_step
Arguments like -D and -libjars that apply to every Hadoop subcommand.
mrjob/bin.py:361
↓ 2 callersMethod_has_hadoop_streaming_steps
Are any of our steps Hadoop Streaming steps?
mrjob/runner.py:848
↓ 2 callersMethod_has_pyspark_steps
Do any of our steps involve running Python on Spark? Includes spark and spark_script types, but not spark_jar. Generally used to tell
mrjob/runner.py:862
↓ 2 callersMethod_has_streaming_steps
Are any of our steps "streaming" steps that would normally run on Hadoop Streaming?
mrjob/spark/runner.py:498
↓ 2 callersMethod_instance_groups
Which instance groups do we want to request? Returns the value of the ``InstanceGroups`` parameter passed to the EMR API.
mrjob/emr.py:1090
↓ 2 callersMethod_interpolate_step_args
Replace :py:data:`~mrjob.step.INPUT` and :py:data:`~mrjob.step.OUTPUT` in arguments to a jar or Spark step.
mrjob/runner.py:971
↓ 2 callersFunction_interpret_emr_bootstrap_stderr
Extract errors from bootstrap stderr. If *partial* is true, stop when we find the first match. (In practice, we usually target a single file
mrjob/logs/bootstrap.py:113
↓ 2 callersFunction_interpret_emr_step_stderr
Extract information from step stderr (see :py:func:`~mrjob.logs.task._parse_task_stderr()`), which may be split into several chunks by timesta
mrjob/logs/step.py:190
↓ 2 callersFunction_interpret_emr_step_syslog
Extract information from step syslog (see :py:func:`_parse_step_log()`), which may be split into several chunks by timestamp
mrjob/logs/step.py:156
↓ 2 callersFunction_interpret_history_log
Extract counters and errors from history log. Matches is a list of dicts with the keys *job_id* and *yarn* (see :py:func:`_ls_history_logs()`
mrjob/logs/history.py:111
↓ 2 callersMethod_interpret_history_log
Fetch history log and add 'history' to log_interpretation.
mrjob/logs/mixin.py:152
↓ 2 callersFunction_interpret_spark_logs
(fs, matches, partial=True, log_callback=None)
mrjob/logs/spark.py:80
↓ 2 callersMethod_interpret_step_logs
Add *step* to the log interpretation, if it's not already there.
mrjob/logs/mixin.py:186
↓ 2 callersFunction_is_cluster_running
(steps)
mrjob/tools/emr/terminate_idle_clusters.py:252
↓ 2 callersFunction_is_counter_log4j_record
Is this the record containing counters? (HadoopJobRunner doesn't want to log this because it's very long and it has its own way of displaying
mrjob/logs/step.py:358
↓ 2 callersFunction_is_step_running
Return true if the given step is currently running.
mrjob/tools/emr/terminate_idle_clusters.py:256
↓ 2 callersFunction_job_path
(project_id, region, job_id)
tests/mock_google/dataproc.py:384
↓ 2 callersMethod_job_script_module_name
A unique module name to use with the MRJob script.
mrjob/spark/runner.py:249
↓ 2 callersFunction_job_state_name
(state_value)
mrjob/dataproc.py:141
↓ 2 callersMethod_job_tracker_host
The host of the job tracker/resource manager, from the master node.
mrjob/emr.py:871
↓ 2 callersMethod_label
Return *label* opt, or if not set, the name of the file containing the MRJob, minus extension, or if none, ``'no_script'``
mrjob/runner.py:758
↓ 2 callersMethod_launch_emr_job
Create an empty cluster on EMR, and set self._cluster_id to its ID.
mrjob/emr.py:1465
↓ 2 callersMethod_libjar_paths
Paths or URIs of libjars, from Hadoop/Spark's point of view. Override this for non-local libjars (e.g. on EMR).
mrjob/bin.py:379
↓ 2 callersMethod_libjar_paths
(self)
mrjob/emr.py:1434
↓ 2 callersMethod_list_steps
Helper for list_steps() and describe_step().
tests/mock_boto3/emr.py:1422
↓ 2 callersMethod_loads
Decode a single key/value, and return it.
mrjob/protocol.py:75
↓ 2 callersMethod_log_address_of_master_once
Log the master node's public DNS, if we haven't already
mrjob/emr.py:1722
↓ 2 callersFunction_log_entries_to_log4j
Convert log entries from a single log file to log4j format, tracking line number. See :py:meth:`mrjob.logs.log4j._parse_hadoop_log4j_records`
mrjob/dataproc.py:1315
↓ 2 callersFunction_log_line_from_driver
Log ``' <line>'``. *line* should be a string. Optionally specify a logging level (default is logging.INFO).
mrjob/logs/step.py:402
↓ 2 callersMethod_log_step_progress
Tunnel to the job tracker/resource manager and log the progress of the current step. (This takes no arguments; we just assume the mos
mrjob/emr.py:1739
↓ 2 callersFunction_logs_exist
Do ``fs.exists(path)``, and return ``None`` if it raises ``IOError``
mrjob/logs/wrap.py:102
↓ 2 callersMethod_ls_bootstrap_stderr_logs
_ls_bootstrap_stderr_logs(), with logging for each log we parse.
mrjob/emr.py:1894
↓ 2 callersFunction_ls_emr_step_stderr_logs
Yield matching step logs, optionally filtering by *step_id*. Yields dicts with the keys: path: path/URI of step file step_id: step_id in
mrjob/logs/step.py:101
↓ 2 callersFunction_ls_emr_step_syslogs
Yield matching step logs, optionally filtering by *step_id*. Yields dicts with the keys: path: path/URI of step file step_id: step_id in
mrjob/logs/step.py:88
↓ 2 callersFunction_ls_spark_task_logs
Yield matching Spark logs, optionally filtering by application_id or job_id. This will yield matches for stderr logs only. stderr logs wi
mrjob/logs/task.py:113
↓ 2 callersMethod_ls_step_syslogs
Yield step log matches, logging a message for each one.
mrjob/emr.py:2011
↓ 2 callersFunction_ls_task_logs
Yield matching logs, optionally filtering by application_id or job_id. This will yield matches for stderr logs first, followed by syslogs. st
mrjob/logs/task.py:96
↓ 2 callersFunction_ls_task_logs_helper
Helper for _ls_task_logs() and _ls_spark_task_logs(). *syslog_type* is the type of the log to pair with stderr logs. This is actually a bit
mrjob/logs/task.py:131
↓ 2 callersFunction_make_arg_parser
()
mrjob/tools/emr/terminate_cluster.py:78
↓ 2 callersFunction_match_emr_step_log_path
Helper for :py:func:`_match_emr_step_syslog_path` and :py:func:`_match_emr_step_stderr_path`
mrjob/logs/step.py:139
↓ 2 callersFunction_maybe_terminate_clusters
(dry_run=False, max_mins_idle=None, now=None,
mrjob/tools/emr/terminate_idle_clusters.py:120
↓ 2 callersMethod_owner
Return *owner* opt (which defaults to :py:func:`getpass.getuser`), or ``'no_user'`` if not set.
mrjob/runner.py:768
← previousnext →601–700 of 4,468, ranked by callers