MCPcopy Create free account

hub / github.com/Yelp/mrjob / functions

Functions4,468 in github.com/Yelp/mrjob

↓ 1 callersMethod_task_syslog_records
Yield log4j records from a specific syslog.
mrjob/dataproc.py:985
↓ 1 callersFunction_task_type
In task or attempt IDs, whether this is a map or reduce (not used by Spark). For example, in attempt_201601081945_0005_m_000005_0, it's "
mrjob/logs/ids.py:127
↓ 1 callersFunction_terminate_and_notify
(runner, cluster_id, cluster_name, num_steps, is_pending, time_idle,
mrjob/tools/emr/terminate_idle_clusters.py:299
↓ 1 callersFunction_text_file_with_path
Return an RDD that yields (path, line) for each line in the file. *path* must be a single path, not a comma-separated list of paths
mrjob/spark/harness.py:306
↓ 1 callersFunction_time_sort_key
Sort key to sort the given dictionaries containing IDs roughly by time (earliest first). We consider higher attempt_nums "later" than higher
mrjob/logs/ids.py:41
↓ 1 callersFunction_to_java_str
Convert a value (usually for a configuration property) into its Java string representation, falling back to the Python representation if None
mrjob/conf.py:577
↓ 1 callersFunction_to_lines
Take in data as a sequence of bytes, and yield it, one line at a time. Only breaks lines on ``\\n`` (not ``\\r``), and does not add a trailin
mrjob/util.py:271
↓ 1 callersFunction_to_num_bytes
(java_mem_str)
mrjob/local.py:251
↓ 1 callersFunction_trim_spark_error
If *spark_error* contains a stack trace followed by a blank line, trim off the blank line and everything that follows.
mrjob/logs/errors.py:212
↓ 1 callersMethod_upload_args
(self)
mrjob/runner.py:1364
↓ 1 callersMethod_upload_uri_or_remote_path
Return where *path* will be uploaded, or, if it starts with ``'file:///'``, a local path.
mrjob/emr.py:1412
↓ 1 callersFunction_values_to_text
Return a dictionary with the same keys as *d*, but where the non-string, non-bytes values have been JSON-encoded. Used to encode cluster prop
mrjob/dataproc.py:1385
↓ 1 callersMethod_wait_for_cluster_ready
(self, cluster_id)
mrjob/dataproc.py:654
↓ 1 callersMethod_wait_for_cluster_to_terminate
(self, cluster=None)
mrjob/emr.py:1012
↓ 1 callersMethod_wait_for_step_to_complete
Helper for _wait_for_step_to_complete(). Wait for step with the given ID to complete, and fetch counters. If it fails, attempt to diag
mrjob/emr.py:1587
↓ 1 callersMethod_wait_for_step_to_complete
Helper for _wait_for_step_to_complete(). Wait for step with the given ID to complete, and fetch counters. If it fails, attempt to diag
mrjob/dataproc.py:718
↓ 1 callersMethod_wd_filenames_must_match
When we tell Hadoop/Spark to put files in the working directory, must they have the same names as the files in the working dir? This
mrjob/runner.py:1179
↓ 1 callersMethod_write_script_lines
Write text to the given file. By default, this writes binary data, but can be redefined to use local line endings.
mrjob/runner.py:1489
↓ 1 callersFunction_yield_clusters
Get relevant cluster information from EMR. :param float max_days_ago: If set, don't fetch clusters created longer
mrjob/tools/emr/audit_usage.py:583
↓ 1 callersMethod_yield_clusters_to_join
Get a list of IDs of pooled clusters that this runner can join, sorted so that the ones with the greatest CPU capacity come first. yi
mrjob/emr.py:2392
↓ 1 callersMethod_yrm_get
Use curl to perform an HTTP GET on the given path on the YARN Resource Manager. Either return decoded JSON from the call, or raise an
mrjob/emr.py:3176
↓ 1 callersMethodadd_role_to_instance_profile
(self, InstanceProfileName, RoleName)
tests/mock_boto3/iam.py:169
↓ 1 callersMethodarchives
Like :py:attr:`ARCHIVES`, except that it can return a dynamically generated list of archives to upload and unpack. Overriding this met
mrjob/job.py:1466
↓ 1 callersMethodassertDidNotUseIdleTimeoutScript
(self, runner)
tests/test_emr.py:1902
↓ 1 callersMethodassertJobRaisesExceptionOnUndecodableInput
(self, job_args=())
tests/test_job.py:430
↓ 1 callersMethodassertJobRaisesExceptionOnUnencodableOutput
(self, job_args=())
tests/test_job.py:457
↓ 1 callersMethodattach_role_policy
(self, PolicyArn, RoleName)
tests/mock_boto3/iam.py:128
↓ 1 callersMethodblank_out_environment
(self)
tests/test_runner.py:109
↓ 1 callersFunctionbunzip2_stream
Decompress gzipped data on the fly. :param fileobj: object supporting ``read()`` :param bufsize: number of bytes to read from *fileobj* at a
mrjob/cat.py:31
↓ 1 callersFunctioncandidates
()
mrjob/conf.py:51
↓ 1 callersFunctioncat
Mock SSH behavior for running cat <path> over SSH
tests/mockssh.py:161
↓ 1 callersMethodcat
(self, path_glob)
mrjob/fs/composite.py:128
↓ 1 callersMethodcleanup
Clean up running jobs, temp files, and logs, subject to the *cleanup* option passed to the constructor. If you create your runner in
mrjob/runner.py:617
↓ 1 callersMethodcleanup
(self, mode=None)
mrjob/dataproc.py:520
↓ 1 callersMethodcleanup_runner
This method assumes ``prepare_runner_for_ssh()`` was called. That method isn't a "proper" setup method because it requires different a
tests/tools/emr/test_mrboss.py:56
↓ 1 callersFunctioncombiner_helper
(pairs1, pairs2)
mrjob/spark/harness.py:467
↓ 1 callersMethodconfigure_args
Define arguments for this script. Called from :py:meth:`__init__()`. Re-define to define custom command-line arguments or pass throug
mrjob/job.py:1080
↓ 1 callersMethodconfigure_args
(self)
tests/test_job.py:89
↓ 1 callersMethodconfigure_args
(self)
tests/test_sim.py:49
↓ 1 callersFunctioncount_ngrams
Break text down into ngrams, and return a dictionary mapping (n, ngram) to number of times that ngram occurs. n: ngram size ("foo" is a 1-gra
mrjob/examples/mr_text_classifier.py:87
↓ 1 callersMethodcounters
(self)
mrjob/sim.py:239
↓ 1 callersMethodcreate_bucket
(self, Bucket, CreateBucketConfiguration=None)
tests/mock_boto3/s3.py:83
↓ 1 callersMethodcreate_channel
(self, target, credentials=None)
tests/mock_google/case.py:100
↓ 1 callersMethodcreate_cluster
(self, project_id, region, cluster)
tests/mock_google/dataproc.py:145
↓ 1 callersMethodcreate_fake_clusters
(self)
tests/tools/emr/test_terminate_idle_clusters.py:53
↓ 1 callersFunctioncreate_mock_hadoop_script
Dump a wrapper script to the given file object that runs this python script.
tests/mockhadoop.py:97
↓ 1 callersMethoddelete_cluster
(self, project_id, region, cluster_name)
tests/mock_google/dataproc.py:230
↓ 1 callersMethoddescribe_images
(self, Filters=None, Owners=None)
tests/mock_boto3/ec2.py:48
↓ 1 callersMethoddescribe_step
(self, ClusterId, StepId)
tests/mock_boto3/emr.py:1283
↓ 1 callersMethoddescription
(self, step_num=0)
mrjob/step.py:301
↓ 1 callersMethoddirs
Like :py:attr:`DIRS`, except that it can return a dynamically generated list of directories to upload. Overriding this method disables
mrjob/job.py:1482
↓ 1 callersFunctionencode_char
(c)
tests/rot13lib/text.py:20
↓ 1 callersMethodensure_expected_results
(self, added_files=[], excluded_files=[])
tests/test_util.py:188
↓ 1 callersMethodfiles
Like :py:attr:`FILES`, except that it can return a dynamically generated list of files to upload. Overriding this method disables :py:
mrjob/job.py:1498
↓ 1 callersMethodget_blob
(self, blob_name, chunk_size=None)
tests/mock_google/storage.py:83
↓ 1 callersMethodget_hadoop_version
(self)
mrjob/sim.py:242
↓ 1 callersMethodget_job
(self, project_id, region, job_id)
tests/mock_google/dataproc.py:315
↓ 1 callersFunctionget_mock_hadoop_output
Get a path to a directory containing part files to use as mock output.
tests/mockhadoop.py:148
↓ 1 callersFunctionget_or_create_mrjob_instance_profile
Look for a usable instance profile for EMR, and if there is none, create one.
mrjob/iam.py:110
↓ 1 callersFunctionget_or_create_mrjob_service_role
Look for a usable service role for EMR, and if there is none, create one. Either way, return that role's name.
mrjob/iam.py:90
↓ 1 callersMethodget_paginator
(self, operation_name)
tests/mock_boto3/s3.py:73
↓ 1 callersFunctiongunzip_stream
Decompress gzipped data on the fly. :param fileobj: object supporting ``read()`` :param bufsize: number of bytes to read from *fileobj* at a
mrjob/cat.py:54
↓ 1 callersMethodhead_bucket
(self, Bucket)
tests/mock_boto3/s3.py:120
↓ 1 callersMethodinternal_protocol
(self)
tests/test_job.py:300
↓ 1 callersFunctionis_compressed
(path)
mrjob/cat.py:103
↓ 1 callersMethodjobconf
``-D`` args to pass to hadoop streaming. This should be a map from property name to value. By default, returns :py:attr:`JOBCONF`. ..
mrjob/job.py:1556
↓ 1 callersMethodjoin
(self, path, *paths)
mrjob/fs/composite.py:147
↓ 1 callersMethodlarger_conf
(self)
tests/test_runner.py:665
↓ 1 callersMethodlibjars
Optional list of paths of jar files to run our job with using Hadoop's ``-libjars`` option. Normally setting :py:attr:`LIBJARS` is suf
mrjob/job.py:1358
↓ 1 callersMethodlist_attached_role_policies
(self, RoleName)
tests/mock_boto3/iam.py:137
↓ 1 callersMethodlist_instances
stripped-down simulation of list_instances() to support SSH tunneling; only includes state.status and the privateipaddress field.
tests/mock_boto3/emr.py:1338
↓ 1 callersMethodlist_jobs
(self, project_id, region, page_size=None, cluster_name=None, job_state_matcher=None)
tests/mock_google/dataproc.py:329
↓ 1 callersMethodlist_steps
(self, ClusterId, StepIds=None, StepStates=None)
tests/mock_boto3/emr.py:1418
↓ 1 callersMethodload_args
Load command-line options into ``self.options``. Called from :py:meth:`__init__()` after :py:meth:`configure_args`. :type args: list
mrjob/job.py:1104
↓ 1 callersMethodload_stop_words
(self)
mrjob/examples/mr_spark_most_used_word.py:75
↓ 1 callersFunctionls
Mock SSH behavior for running the ``find`` command over SSH
tests/mockssh.py:138
↓ 1 callersMethodls
(self, path_glob)
mrjob/fs/gcs.py:102
↓ 1 callersMethodls
(self, path_glob)
mrjob/fs/local.py:40
↓ 1 callersMethodls
(self, path_glob)
mrjob/fs/ssh.py:173
↓ 1 callersFunctionmain
(cl_args=None)
mrjob/tools/diagnose.py:64
↓ 1 callersFunctionmain
(cl_args=None)
mrjob/tools/spark_submit.py:396
↓ 1 callersFunctionmain
Run the create_cluster tool with arguments from ``sys.argv`` and printing to ``sys.stdout``.
mrjob/tools/emr/create_cluster.py:201
↓ 1 callersFunctionmain
(cl_args=None)
mrjob/tools/emr/mrboss.py:67
↓ 1 callersFunctionmain
(cl_args=None)
mrjob/tools/emr/s3_tmpwatch.py:63
↓ 1 callersFunctionmain
(cl_args=None)
mrjob/tools/emr/terminate_idle_clusters.py:90
↓ 1 callersFunctionmain
(cmd_line_args=None)
mrjob/spark/harness.py:142
↓ 1 callersFunctionmain
()
mrjob/examples/spark_wordcount_script.py:25
↓ 1 callersFunctionmain
Implements hadoop <args>
tests/mockhadoop.py:255
↓ 1 callersFunctionmain
(stdin, stdout, stderr, args, environ)
tests/mockssh.py:116
↓ 1 callersMethodmake_cluster
(self, **kwargs)
tests/tools/emr/__init__.py:42
↓ 1 callersMethodmake_ec2_client
Create a :py:mod:`boto3` EC2 client. :return: a :py:class:`botocore.client.EC2` wrapped in a :py:class:`mrjob.retry.RetryWrap
mrjob/emr.py:2952
↓ 1 callersFunctionmake_increment_counter
(step_num)
mrjob/spark/harness.py:208
↓ 1 callersMethodmake_runner
(self)
tests/tools/emr/test_mrboss.py:46
↓ 1 callersMethodmake_tmp_dir_and_mrjob_conf
(self)
tests/tools/emr/test_s3_tmpwatch.py:36
↓ 1 callersMethodmapper
(self, key, value)
tests/test_job.py:138
↓ 1 callersMethodmapper_init
(self)
tests/test_job.py:135
↓ 1 callersMethodmkdir
Does not actually create a directory on GCS (because GCS doesn't have directories), but creates the underlying bucket if it does not e
mrjob/fs/gcs.py:182
↓ 1 callersMethodmkdir
Make a directory. This doesn't actually create directories on S3 (because there is no such thing), but it will create the corresponding
mrjob/fs/s3.py:187
↓ 1 callersMethodmock_path_matches
(self)
tests/logs/test_step.py:488
↓ 1 callersMethodmock_path_matches
(self)
tests/logs/test_step.py:643
← previousnext →1,101–1,200 of 4,468, ranked by callers