MCPcopy Create free account

hub / github.com/Yelp/mrjob / functions

Functions4,468 in github.com/Yelp/mrjob

↓ 16 callersMethodpaths
Get a set of all paths tracked by this WorkingDirManager.
mrjob/setup.py:490
↓ 16 callersMethodsimulate_emr_progress
(self, cluster_id)
tests/mock_boto3/case.py:134
↓ 15 callersFunction_format_error
Return string to log/print explaining the given error.
mrjob/logs/errors.py:143
↓ 15 callersMethod_list_cluster_ids_for_pooling
Call ListClusters, and collect cluster IDs relevant to pooling. Optionally, only list clusters created after *created_after*. Return
mrjob/emr.py:2419
↓ 15 callersFunction_parse_task_stderr
Attempt to explain any error in task stderr, be it a Python exception or a problem with a setup command (see #1203). Looks for '+ ' followed
mrjob/logs/task.py:406
↓ 15 callersFunction_pick_error
Pick most recent error from a dictionary possibly containing step, history, and task interpretations. Returns None if there are no errors.
mrjob/logs/errors.py:25
↓ 15 callersMethod_render_substep
(self, cmd_key, pre_filter_key)
mrjob/step.py:276
↓ 15 callersMethodadd
Add a path as either a file or an archive, optionally assigning it a name. :param type: either ``'archive'`` or ``'file'`` :p
mrjob/setup.py:378
↓ 15 callersMethodassertRoundTripOK
Assert that we can encode and decode the given key and value, and get the same key and value we started with.
tests/test_protocol.py:96
↓ 15 callersFunctionexpand_path
Resolve ``~`` (home dir) and environment variables in *path*. If *path* is ``None``, return ``None``.
mrjob/util.py:56
↓ 15 callersFunctionurlparse
A wrapper for :py:func:`urlparse.urlparse` that splits the fragment correctly in all URIs, not just Web-related ones. This behavior was fixed
mrjob/parse.py:79
↓ 14 callersMethod_cluster_spark_support_warning
Helper for _check_cluster_spark_support().
mrjob/emr.py:3035
↓ 14 callersMethod_create_setup_wrapper_scripts
Create the setup wrapper script, and write it into our local temp directory (by default, to a file named setup-wrapper.sh). This will
mrjob/bin.py:417
↓ 14 callersMethod_find_long_running_jobs
(self, cluster_summaries, min_time, now)
tests/tools/emr/test_report_long_jobs.py:295
↓ 14 callersFunction_match_task_log_path
Is this the path/URI of a task log? (Including Spark) If so, return a dictionary containing application_id and container_id (on YARN) or atte
mrjob/logs/task.py:219
↓ 14 callersMethod_step_output_uri
URI to use as output for the given step. This is either an intermediate dir (see :py:meth:`intermediate_output_uri`) or ``self._output
mrjob/runner.py:1299
↓ 14 callersMethodclient
(self, service_name, **kwargs)
tests/mock_boto3/case.py:222
↓ 14 callersMethodget_bucket
Return a :py:class:`google.cloud.storage.bucket.Bucket` Raises an exception if the bucket does not exist.
mrjob/fs/gcs.py:253
↓ 14 callersMethodinterpret_task_logs
(self, **kwargs)
tests/logs/test_task.py:291
↓ 14 callersMethodmake_s3_client
Create a :py:mod:`boto3` S3 client, wrapped in a :py:class:`mrjob.retry.RetryWrapper` :param region: region to use to choose S3 endpo
mrjob/fs/s3.py:273
↓ 14 callersMethodnum_steps
(self, cluster_id)
tests/test_emr_pooling.py:2245
↓ 14 callersMethodrm
Recursively delete the given file/directory, if it exists Corresponds roughly to: ``hadoop fs -rm -R path_glob``
mrjob/fs/base.py:133
↓ 13 callersMethod_assert_output_matches
( self, job_class, input_bytes=b'', input_paths=(), job_args=[], num_reducers=None, ma
tests/spark/test_harness.py:191
↓ 13 callersFunction_parse_hadoop_log4j_records
Parse lines from a hadoop log into log4j records. Yield dictionaries with the following keys: caller_location -- e.g. 'YarnClientImpl.java:su
mrjob/logs/log4j.py:44
↓ 13 callersMethod_step_input_uris
A list of URIs to use as input for the given step. For all except the first step, this list will have a single item (a directory).
mrjob/runner.py:1288
↓ 13 callersMethod_steps_desc
(self)
mrjob/job.py:914
↓ 13 callersMethod_uses_spark
Does this runner use Spark, based on steps, bootstrap actions, and EMR applications? If so, we'll need more memory.
mrjob/emr.py:3006
↓ 13 callersFunctionload_opts_from_mrjob_conf
Load a list of dictionaries representing the options in a given mrjob.conf for a specific runner, resolving includes. Returns ``[(path, values
mrjob/conf.py:233
↓ 12 callersFunction_add_basic_args
Switches for all command line tools
mrjob/options.py:1563
↓ 12 callersFunction_add_runner_args
add switches for the given runner opts to the given ArgumentParser, alphabetically by destination. If *opt_names* is None, include all runner
mrjob/options.py:1492
↓ 12 callersFunction_from_file_uri
(path_or_uri)
mrjob/fs/local.py:106
↓ 12 callersMethodappend_data
(self, uri, new_data)
tests/test_dataproc.py:1324
↓ 12 callersMethodexists
Does the given path/URI exist? Corresponds roughly to: ``hadoop fs -test -e path_glob``
mrjob/fs/base.py:90
↓ 12 callersMethodget_bucket
Get the (:py:mod:`boto3`) bucket, connecting through the appropriate endpoint.
mrjob/fs/s3.py:298
↓ 12 callersFunctionjobconf_from_env
Get the value of a jobconf variable from the runtime environment. For example, a :py:class:`~mrjob.job.MRJob` could use ``jobconf_from_env('m
mrjob/compat.py:571
↓ 12 callersFunctionparse_legacy_hash_path
Parse hash paths from old setup/bootstrap options. This is similar to parsing hash paths out of shell commands (see :py:func:`parse_setup_cmd
mrjob/setup.py:184
↓ 12 callersMethodset_up_logging
Set up logging when running from the command line. This is also used by the various command-line utilities. :param bool quiet: If tru
mrjob/job.py:649
↓ 11 callersMethod_action_on_failure
(self)
mrjob/emr.py:1296
↓ 11 callersMethod_add_job_files_for_upload
Add files needed for running the job (setup and input) to self._upload_mgr.
mrjob/emr.py:833
↓ 11 callersMethod_assert_script_protocols
Given a list of (read_protocol_class, write_protocol_class) tuples for *each substep*, assert that the given _steps_desc() output for each
tests/test_job.py:491
↓ 11 callersMethod_get_python_wrapper_content
(self, job_class, args)
tests/test_bin.py:1761
↓ 11 callersMethod_jobconf_for_step
Get the jobconf dictionary, optionally including step-specific jobconf info. Also translate jobconfs to the current Hadoop version, i
mrjob/runner.py:1313
↓ 11 callersMethod_pick_error
Pick probable cause of failure (only call this if job fails).
mrjob/logs/mixin.py:118
↓ 11 callersMethodadd_stack_trace
(self, container_id, cluster=LOGGING_CLUSTER_NAME)
tests/test_dataproc.py:1700
↓ 11 callersFunctioncombine_lists
Concatenate the given sequences into a list. Ignore ``None`` values. Generally this is used for a list of commands we want to run; the "defau
mrjob/conf.py:390
↓ 11 callersMethodcounters
(self)
mrjob/emr.py:2162
↓ 11 callersMethodcreate_bucket
Create a bucket on GCS, optionally setting location constraint. and time-to-live.
mrjob/fs/gcs.py:258
↓ 11 callersMethoddescribe_cluster
(self, ClusterId)
tests/mock_boto3/emr.py:1269
↓ 11 callersFunctionfile_ext
return the file extension, including the ``.`` >>> file_ext('foo.tar.gz') '.tar.gz' >>> file_ext('.emacs') '' >>> file_ext('.mr
mrjob/util.py:67
↓ 11 callersFunctionfully_qualify_hdfs_path
If path isn't an ``hdfs://`` URL, turn it into one.
mrjob/hadoop.py:108
↓ 11 callersMethodget_hadoop_version
(self)
mrjob/emr.py:2857
↓ 11 callersFunctionjobconf_from_dict
Get the value of a jobconf variable from the given dictionary. :param dict jobconf: jobconf dictionary :param string name: name of the jobcon
mrjob/compat.py:599
↓ 11 callersFunctionmain
(cl_args=None)
mrjob/tools/emr/terminate_cluster.py:63
↓ 11 callersFunctionmock_hadoop_uses_yarn
(environ)
tests/mockhadoop.py:194
↓ 11 callersFunctionparse_mr_job_stderr
Parse counters and status messages out of MRJob output. :param stderr: a filehandle, a list of lines (bytes), or bytes :param counters: Count
mrjob/parse.py:115
↓ 11 callersMethodprepare_runner_for_ssh
(self, runner, num_workers=0)
tests/mock_boto3/case.py:140
↓ 11 callersMethodsave_conf
(self, name, conf)
tests/test_runner.py:630
↓ 11 callersFunctionto_uri
If *path_or_uri* is not a URI already, convert it to a ``file:///`` URI.
mrjob/parse.py:69
↓ 11 callersFunctiontranslate_jobconf
Translate *variable* to Hadoop version *version*. If it's not a variable we recognize, leave as-is.
mrjob/compat.py:657
↓ 11 callersFunctionuses_yarn
Basically, is this Hadoop 2? This also handles versions in the zero series (0.23+) where YARN originated.
mrjob/compat.py:718
↓ 10 callersMethod_add_master_node_setup_files_for_upload
Add files necesary for the master node setup script to self._master_node_setup_mgr() and self._upload_mgr(). Create the master node s
mrjob/emr.py:813
↓ 10 callersMethod_args_for_streaming_step
(self, step_num)
mrjob/hadoop.py:476
↓ 10 callersFunction_cluster_to_full_summary
Convert a cluster to a full summary for use in creating a report, including billing/usage information. :param cluster: a :py:mod:`boto3` clus
mrjob/tools/emr/audit_usage.py:255
↓ 10 callersMethod_get_mock_cluster
Get the mock cluster with the given ID, or raise an InvalidRequestException.
tests/mock_boto3/emr.py:1227
↓ 10 callersMethod_has_spark_steps
Are any of our steps Spark steps? (e.g. spark, spark_jar, spark_script) Generally used to determine if we need to install Spark on a
mrjob/runner.py:853
↓ 10 callersFunction_interpret_hadoop_jar_command_stderr
Parse *lines* from the ``hadoop jar`` command's stderr (lines can be either bytes or unicode). Works like :py:func:`_parse_step_syslog` (same
mrjob/logs/step.py:222
↓ 10 callersFunction_parse_spark_log
Parse a Spark log, looking for errors and application_id
mrjob/logs/spark.py:30
↓ 10 callersMethod_py_files
Everything in the *py_files* opt, plus a .zip of the mrjob library if needed.
mrjob/bin.py:406
↓ 10 callersMethod_spark_script_args
A list of args to the spark script/jar/MRJob, used by _args_for_spark_step(). *last_step_num* is only used by the Spark runner, where
mrjob/runner.py:943
↓ 10 callersMethodadd_transient_error
(self, ex)
tests/test_aws.py:61
↓ 10 callersMethodassert_mock_cluster_is
( self, mock_cluster, starting=False, bootstrapping=False, don
tests/tools/emr/test_terminate_idle_clusters.py:367
↓ 10 callersMethodassert_rejects_image
(self, **kwargs)
tests/test_ami.py:102
↓ 10 callersMethoderror
(msg=None)
tests/test_cmd.py:34
↓ 10 callersMethodget_runner_kwargs
(self)
tests/tools/test_spark_submit.py:98
↓ 10 callersMethodmake_runner
Make a runner for a two step job and launch it.
tests/test_emr.py:4399
↓ 10 callersFunctionrandom_identifier
A random 16-digit hex string.
mrjob/util.py:127
↓ 10 callersMethodrequire_sudo
(self)
tests/fs/test_ssh.py:58
↓ 10 callersMethodrun_job
(self, args=())
tests/test_job.py:925
↓ 10 callersMethodsetUp
(self)
tests/test_bin.py:520
↓ 10 callersMethodsetUp
(self)
tests/test_runner.py:97
↓ 10 callersFunctionunique
Yield items from *item* in order, skipping duplicates.
mrjob/util.py:321
↓ 9 callersFunction_InvalidRequestException
(operation_name, message)
tests/mock_boto3/emr.py:1782
↓ 9 callersMethod_add_bootstrap_files_for_upload
Add files needed by the bootstrap script to self._upload_mgr. Create the master bootstrap script if necessary. persistent -- set by
mrjob/emr.py:787
↓ 9 callersFunction_cat_log_lines
Yield lines from the given log. Log errors rather than raising them.
mrjob/logs/wrap.py:28
↓ 9 callersMethod_do
Handle the common case, where a method operates on a single path.
mrjob/fs/composite.py:122
↓ 9 callersFunction_format_counters
Convert a map from group -> counter name -> amount to a message similar to that printed by the Hadoop binary, with no trailing newline.
mrjob/logs/counters.py:19
↓ 9 callersMethod_get_project_id_and_gce_config
(self, *args)
tests/test_dataproc.py:2243
↓ 9 callersMethod_interpret_task_logs
Scan node manager log to find failed container IDs of failed tasks, and then scan the corresponding stderr and syslogs.
mrjob/dataproc.py:869
↓ 9 callersMethod_ls_logs
Call _ls_logs() with self.mock_fs and self.mock_matcher, and return a list.
tests/logs/test_wrap.py:142
↓ 9 callersFunction_match_history_log_path
Yield paths/uris of all job history files in the given directories, optionally filtering by *job_id*.
mrjob/logs/history.py:95
↓ 9 callersFunction_parse_pre_yarn_history_log
Collect useful info from a pre-YARN history file. See :py:func:`_parse_yarn_history_log` for return format.
mrjob/logs/history.py:287
↓ 9 callersMethod_test_stream_history_log_dirs
( self, ssh, image_version=_DEFAULT_IMAGE_VERSION, expected_hdfs_dir_name='history',
tests/test_emr.py:3573
↓ 9 callersMethodadd_mock_ec2_image
Add information about a mock EC2 Image (AMI) to be returned by mock :py:meth:`~tests.mock_boto3.ec2.MockEC2Client.describe_images`. T
tests/mock_boto3/case.py:97
↓ 9 callersMethodadd_traceback
(self, container_id, cluster=LOGGING_CLUSTER_NAME)
tests/test_dataproc.py:1703
↓ 9 callersMethodcan_handle_path
Can we handle this path at all?
mrjob/fs/base.py:50
↓ 9 callersMethodcleanup
(self, mode=None)
mrjob/emr.py:942
↓ 9 callersFunctioncombine_cmds
Take zero or more commands to run on the command line, and return the last one that is not ``None``. Each command should either be a list cont
mrjob/conf.py:416
↓ 9 callersFunctionfind_mrjob_conf
Look for :file:`mrjob.conf`, and return its path. Places we look: - The location specified by :envvar:`MRJOB_CONF` - :file:`~/.mrjob.conf`
mrjob/conf.py:42
↓ 9 callersMethodget_ssh_args
(self, *args, **kwargs)
tests/test_emr.py:4801
↓ 9 callersFunctionhdfs_uri_to_real_path
Map an HDFS URI to a path on the filesystem.
tests/mockhadoop.py:210
← previousnext →101–200 of 4,468, ranked by callers