MCPcopy Create free account

hub / github.com/Yelp/mrjob / functions

Functions4,468 in github.com/Yelp/mrjob

↓ 3 callersMethod_ls_history_logs
Yield history log matches, logging a message for each one.
mrjob/logs/mixin.py:174
↓ 3 callersMethod_ls_step_stderr_logs
Yield step log matches, logging a message for each one.
mrjob/emr.py:2019
↓ 3 callersFunction_make_cluster_lock
Return the contents of a tag used to lock a cluster. *expiry* is the unix timestamp for when the lock is no longer valid
mrjob/pool.py:560
↓ 3 callersMethod_make_log_filter
(self, log_name=None, extra_values=None)
mrjob/dataproc.py:1003
↓ 3 callersMethod_mr_job_extra_args
Return arguments to add to every invocation of MRJob. :type local: boolean :param local: if this is True, use files' local paths rath
mrjob/runner.py:923
↓ 3 callersMethod_num_cores
(self)
mrjob/sim.py:404
↓ 3 callersMethod_num_instances
How many of the given instance type do we want?
mrjob/emr.py:1073
↓ 3 callersMethod_num_mappers
(self, step_num)
mrjob/sim.py:407
↓ 3 callersMethod_num_output_files
(self, runner)
tests/spark/test_runner.py:428
↓ 3 callersMethod_num_reducers
(self, step_num)
mrjob/sim.py:411
↓ 3 callersMethod_num_times_address_of_master_logged
(self)
tests/test_emr.py:5915
↓ 3 callersFunction_parse_raw_args
Simulate parsing by *parser*, return a list of tuples of (dest, option_string, args). If *args* contains unknown args or is otherwise malform
mrjob/options.py:1706
↓ 3 callersFunction_parse_step_syslog_from_log4j_records
Pulls errors, counters, IDs, etc. from log4j records emitted by Hadoop. This powers :py:func:`_parse_step_syslog` and :py:func:`_interpre
mrjob/logs/step.py:275
↓ 3 callersMethod_parse_task_counters
Parse all stderr files from the given task (if any).
mrjob/sim.py:228
↓ 3 callersMethod_path_in_dist_cache_dir
(self, name, step_num)
mrjob/sim.py:582
↓ 3 callersFunction_pre_yarn_history_unescape
Un-escape string from a pre-YARN history file.
mrjob/logs/history.py:422
↓ 3 callersMethod_quick_runner
(self)
tests/test_emr.py:2044
↓ 3 callersMethod_quick_runner
(self)
tests/test_dataproc.py:1211
↓ 3 callersMethod_reference_job
( self, job_class, input_bytes=b'', input_paths=(), runner_alias='inline', job_args=[]
tests/spark/test_harness.py:123
↓ 3 callersMethod_render_substep
(self, step_num, mrc)
mrjob/bin.py:252
↓ 3 callersFunction_run_on_all_nodes
Given an :py:class:`EMRJobRunner`, run the command specified by *cmd_args* on all nodes in the cluster and save the stdout and stderr of each
mrjob/tools/emr/mrboss.py:110
↓ 3 callersMethod_run_spark_submit
Run the spark submit binary in a subprocess, using a PTY if possible :param spark_submit_args: spark-submit binary and arguments, as as list
mrjob/bin.py:800
↓ 3 callersMethod_run_task_func
Returns a no-args function that runs one mapper, reducer, or combiner. This sets up everything the task needs to run, then passes it
mrjob/sim.py:197
↓ 3 callersFunction_runner_class
Get the runner subclass corresponding to the given alias (importing code only as needed).
mrjob/runner.py:1534
↓ 3 callersMethod_setup_wrapper_script_content
Return a (Bourne) shell script that runs the setup commands and then executes whatever is passed to it (this will be our mapper/reducer),
mrjob/bin.py:545
↓ 3 callersMethod_simulate_progress
Simulate progress on the given cluster. This is automatically run when we call :py:meth:`describe_step`, and, when the cluster is ``TE
tests/mock_boto3/emr.py:1534
↓ 3 callersMethod_spark_master
(self)
mrjob/runner.py:887
↓ 3 callersMethod_ssh_bin
(self)
mrjob/emr.py:852
↓ 3 callersMethod_ssh_launch
Copy SSH keys if necessary, then launch the given command over SSH and return a Popen.
mrjob/fs/ssh.py:107
↓ 3 callersMethod_ssh_run
Run the given SSH command, and raise an IOError if it fails. Return ``(stdout, stderr)`` Use this for commands with a bounded amount
mrjob/fs/ssh.py:121
↓ 3 callersMethod_ssh_worker_hosts
(self, *args)
tests/test_emr.py:5393
↓ 3 callersMethod_step_type_uses_spark
Does this step run on Spark? (This is re-defined in the Spark runner to include streaming steps, and used by mrjob.logs.mixin)
mrjob/runner.py:871
↓ 3 callersMethod_stream_step_log_dirs
Get lists of directories to look for the step log in.
mrjob/emr.py:2027
↓ 3 callersMethod_test_backoff
(self, expected_backoff, **runner_kwargs)
tests/test_emr.py:5889
↓ 3 callersMethod_test_cmd
(self, mrc)
tests/test_bin.py:375
↓ 3 callersMethod_test_create_master_bootstrap_script
( self, image_version=None, expected_python_bin=PYTHON_BIN)
tests/test_emr.py:1515
↓ 3 callersMethod_test_mode
(self, mode)
tests/test_dataproc.py:1200
↓ 3 callersMethod_test_pre_filter
(self, mrc)
tests/test_bin.py:465
↓ 3 callersMethod_test_run_combiner
(self, sort_values=False, num_reducers=None)
tests/spark/test_harness.py:807
↓ 3 callersMethod_test_shuffle_and_sort
(self, sort_values=False, num_reducers=None)
tests/spark/test_harness.py:858
↓ 3 callersMethod_test_streaming_substep
(self, mrc)
tests/test_bin.py:344
↓ 3 callersMethod_test_uses_instance_fleets
(self, opts)
tests/test_emr.py:965
↓ 3 callersFunction_to_job_id
Convert e.g. ``'task_201601081945_0005_m_000005'`` or ``'application_201601081945_0005'`` to to ``'job_201601081945_0005'``.
mrjob/logs/ids.py:207
↓ 3 callersMethod_upload_attr
Helper for :py:meth:`archives`, :py:meth:`dirs`, and :py:meth:`files`
mrjob/job.py:1514
↓ 3 callersMethod_wait_for_api
(self, msg)
mrjob/dataproc.py:574
↓ 3 callersMethod_wait_for_s3_eventual_consistency
Sleep for a little while, to give S3 a chance to sync up.
mrjob/emr.py:1005
↓ 3 callersMethod_wait_for_steps_to_complete
Wait for every step of the job to complete, one by one.
mrjob/emr.py:1553
↓ 3 callersMethod_wrap_protocols
Pick the protocol classes to use for reading and writing for the given step. Returns a tuple of ``(read_lines, write_line)``
mrjob/job.py:952
↓ 3 callersMethod_write_setup_script
Write a setup script and return its path.
mrjob/bin.py:490
↓ 3 callersFunction_zone_to_region
Convert a zone (like us-west1-b) to the corresponding region (like us-west1).
mrjob/dataproc.py:191
↓ 3 callersMethodabs_paths
(self, *paths)
tests/sandbox.py:170
↓ 3 callersMethodadd_entry
(self, container_id, logname, message)
tests/test_dataproc.py:1706
↓ 3 callersMethodadd_files_for_upload
(self, runner)
tests/test_hadoop.py:1385
↓ 3 callersMethodadd_split
(self, container_id, cluster=LOGGING_CLUSTER_NAME)
tests/test_dataproc.py:1697
↓ 3 callersMethodassert_silently_exits
(self)
tests/test_emr.py:3420
↓ 3 callersMethodassert_upload_succeeds
Write the data to a temp file, and then upload it to (mock) S3, checking that the data successfully uploaded.
tests/test_emr.py:2910
↓ 3 callersMethodcan_handle_path
We can handle any path handled by any (non-disabled) filesystem.
mrjob/fs/composite.py:84
↓ 3 callersFunctioncombine_paths
Returns the last value in *paths* that is not ``None``. Resolve ``~`` (home dir) and environment variables.
mrjob/conf.py:519
↓ 3 callersMethoddelete
(self)
tests/mock_boto3/s3.py:273
↓ 3 callersMethodget_all_bucket_names
Get a list of the names of all buckets owned by this user on S3.
mrjob/fs/s3.py:327
↓ 3 callersMethodget_hadoop_version
Invoke the hadoop executable to determine its version
mrjob/hadoop.py:208
↓ 3 callersMethodget_job_steps
Fetch the steps submitted by this runner from the EMR API. .. deprecated:: 0.7.4 .. versionadded:: 0.6.1
mrjob/emr.py:1540
↓ 3 callersMethodinternal_protocol
Instance of the protocol to use to communicate between steps. Default behavior is to return an instance of :py:attr:`INTERNAL_PROTOCOL
mrjob/job.py:1238
↓ 3 callersMethodlist_entries
(self, projects=None, filter_=None, order_by=None, page_size=None, page_token=None)
tests/mock_google/logging.py:44
↓ 3 callersMethodls
(self, path_glob)
mrjob/fs/composite.py:138
↓ 3 callersFunctionmain
(args=None)
mrjob/tools/emr/audit_usage.py:86
↓ 3 callersMethodmake_client
(self, **kwargs)
tests/test_emr.py:1367
↓ 3 callersFunctionmake_mrc_job
(mrc, step_num)
mrjob/spark/harness.py:216
↓ 3 callersMethodmake_runner
Make a runner based on command-line arguments, so we can launch this job on EMR, on Hadoop, or locally. :rtype: :py:class:`mrjob.runn
mrjob/job.py:689
↓ 3 callersMethodmock_rdd
Make a mock RDD that returns itself.
tests/spark/test_harness.py:780
↓ 3 callersFunctionmock_ssh_dir
Create a directory at ``path`` relative to the temp directory for ``host``, where ``path`` is a POSIX path
tests/mockssh.py:58
↓ 3 callersMethodpaginate
(self, **kwargs)
tests/mock_boto3/util.py:61
↓ 3 callersMethodpick_protocols
Use RawProtocol to read output from the jar.
mrjob/examples/mr_jar_step_example.py:92
↓ 3 callersMethodput
Upload a file on the local filesystem (*src*) to *path*. Like with :py:func:`shutil.copyfile`, *path* should be the full path of the n
mrjob/fs/base.py:122
↓ 3 callersMethodput_job_output_parts
Generate fake output on GCS for the given Dataproc runner.
tests/mock_google/case.py:183
↓ 3 callersMethodrun_reducer
Run the reducer for the given step. :type step_num: int :param step_num: which step to run (0-indexed) Called from :py:meth:
mrjob/job.py:783
↓ 3 callersFunctionsave_cwd
Context manager that saves the current working directory, and chdir's back to it after execution.
mrjob/util.py:185
↓ 3 callersMethodsetUp
(self)
tests/test_job.py:206
↓ 3 callersMethodsetUp
(self)
tests/test_local.py:779
↓ 3 callersMethodsetUp
disable all logging handlers
tests/sandbox.py:96
↓ 3 callersMethodsetUp
(self)
tests/spark/test_runner.py:623
↓ 3 callersMethodstep_ids
(self, cluster_id)
tests/test_emr_pooling.py:2242
↓ 3 callersMethodsteps
(self)
tests/test_job.py:1047
↓ 3 callersMethodstorage_client
(self, project=None, credentials=None)
tests/mock_google/case.py:134
↓ 3 callersFunctionto_chunks
Convert *readable*, which is any object supporting ``read()`` (e.g. fileobjs) to a stream of non-empty ``bytes``. If *readable* has an ``__it
mrjob/cat.py:107
↓ 3 callersMethodupload_from_string
(self, data)
tests/mock_google/storage.py:182
↓ 2 callersMethodObject
(self, key)
tests/mock_boto3/s3.py:232
↓ 2 callersFunction_add_deprecated_arg
(parser)
mrjob/tools/spark_submit.py:530
↓ 2 callersMethod_add_extra_cluster_params
Return a dict with the *extra_cluster_params* opt patched into *params*, and ``None`` values removed.
mrjob/cloud.py:359
↓ 2 callersFunction_add_help_arg
(parser)
mrjob/tools/spark_submit.py:524
↓ 2 callersFunction_add_implied_job_id
If *d* has *task_id* or *application_id* but not *job_id*, add it. (We don't infer application_id from job_id because application_id only
mrjob/logs/ids.py:182
↓ 2 callersMethod_add_instance_groups
Add instance groups from *InstanceGroups* to the mock cluster *cluster*.
tests/mock_boto3/emr.py:916
↓ 2 callersFunction_add_job_args
(parser, include_deprecated=True, include_steps=True)
mrjob/options.py:1585
↓ 2 callersFunction_add_missing_roles_to_request
Helper for :py:func:`_igs_satisfy_request`. Add requests for *missing_roles* to *role_to_ig* so that we have a better chance of matching the c
mrjob/pool.py:421
↓ 2 callersFunction_add_runner_alias_arg
(parser)
mrjob/tools/spark_submit.py:515
↓ 2 callersFunction_add_spark_submit_arg
(parser, opt_name)
mrjob/tools/spark_submit.py:469
↓ 2 callersMethod_add_steps
(self, operation_name, Steps, cluster, now=None)
tests/mock_boto3/emr.py:1079
↓ 2 callersMethod_add_tags
(self, operation_name, Tags, cluster)
tests/mock_boto3/emr.py:1194
↓ 2 callersMethod_address_of_master
(self)
tests/test_emr_pooling.py:2324
↓ 2 callersFunction_any_id
(d)
mrjob/logs/ids.py:100
← previousnext →501–600 of 4,468, ranked by callers