MCPcopy Create free account

hub / github.com/Yelp/mrjob / functions

Functions4,468 in github.com/Yelp/mrjob

↓ 6 callersMethod_runner_with_steps
(self, steps, **kwargs)
tests/test_emr.py:2221
↓ 6 callersMethod_s3_log_dir
Get the URI of the log directory for this job's cluster.
mrjob/emr.py:634
↓ 6 callersMethod_script_runner_jar_uri
(self)
mrjob/emr.py:2340
↓ 6 callersMethod_task_dir
(self, task_type, step_num, task_num)
mrjob/sim.py:612
↓ 6 callersMethod_task_input_path
(self, task_type, step_num, task_num)
mrjob/sim.py:615
↓ 6 callersMethod_task_stderr_path
(self, task_type, step_num, task_num)
mrjob/sim.py:619
↓ 6 callersMethod_test_cleanup_after_with_statement
(self, mode, should_exist)
tests/test_runner.py:60
↓ 6 callersMethod_test_spark_executor_memory
(self, conf_value, megs)
tests/test_local.py:1022
↓ 6 callersFunction_validate_param_enum
(value, allowed)
tests/mock_boto3/emr.py:1774
↓ 6 callersMethodassertRoundTripWithTrailingTabOK
Assert that we can encode the given key and value, add a trailing tab (which Hadoop sometimes does), and decode it to get the same key
tests/test_protocol.py:102
↓ 6 callersMethodassert_retry
(self, ex)
tests/test_aws.py:79
↓ 6 callersMethodbucket
(self, bucket_name)
tests/mock_google/storage.py:32
↓ 6 callersMethodcommunicate
(self, input=None)
tests/fs/__init__.py:63
↓ 6 callersMethodget_debug_printout
(self, **opts)
tests/test_emr.py:5686
↓ 6 callersFunctionget_mock_hdfs_root
Get the path of mock root of HDFS. Creates the directory if it doesn't already exist.
tests/mockhadoop.py:188
↓ 6 callersMethodget_value
(self, job)
tests/test_job.py:2100
↓ 6 callersMethodinterpret_spark_logs
(self, **kwargs)
tests/logs/test_spark.py:218
↓ 6 callersMethodlaunch_runner
make and launch runner, so cluster is created and files are uploaded.
tests/test_emr.py:2410
↓ 6 callersMethodmake_iam_client
Create a :py:mod:`boto3` IAM client. :return: a :py:class:`botocore.client.IAM` wrapped in a :py:class:`mrjob.retry.RetryWrap
mrjob/emr.py:2972
↓ 6 callersMethodmake_image
Return a copy of BASE_EMR_IMAGE with the given fields added. You can blank out fields by setting them to None.
tests/test_ami.py:56
↓ 6 callersMethodmake_s3_resource
Create a :py:mod:`boto3` S3 resource, with its client wrapped in a :py:class:`mrjob.retry.RetryWrapper` :param region: region to use
mrjob/fs/s3.py:252
↓ 6 callersMethodmake_worker_file
(self, worker_num, path, contents)
tests/fs/test_ssh.py:65
↓ 6 callersMethodmr_job_script
Path of this script. This returns the file containing this class, or ``None`` if there isn't any (e.g. it was defined from the command
mrjob/job.py:921
↓ 6 callersMethodput
(self, Body)
tests/mock_boto3/s3.py:315
↓ 6 callersFunctionsave_current_environment
Context manager that saves os.environ and loads it back again after execution
mrjob/util.py:170
↓ 6 callersMethodsetUp
(self)
tests/logs/test_mixin.py:679
↓ 6 callersMethodset_in_mrjob_conf
(self, **kwargs)
tests/test_emr.py:973
↓ 6 callersMethodsort_values
A method that by default, just returns the value of :py:attr:`SORT_VALUES`. Mostly exists for the sake of consistency, but you could o
mrjob/job.py:1588
↓ 6 callersFunctionstrip_microseconds
Return the given :py:class:`datetime.timedelta`, without microseconds. Useful for printing :py:class:`datetime.timedelta` objects.
mrjob/util.py:248
↓ 6 callersMethodtouchz
Make an empty file in the given location. Raises an error if a non-zero length file already exists in that location. Correponds to: `
mrjob/fs/base.py:140
↓ 6 callersFunctiontranslate_jobconf_dict
Translates the configuration property name to match those that are accepted in hadoop_version. Prints a warning message if any configuration p
mrjob/compat.py:677
↓ 6 callersMethodupdate_step_interpretation
(self)
tests/test_dataproc.py:1440
↓ 6 callersMethoduse_sudo_over_ssh
Use this to turn on *sudo* (we do this depending on the AMI version on EMR).
mrjob/fs/ssh.py:218
↓ 5 callersFunction_add_implied_task_id
If *d* (a dictionary) has *attempt_id* but not *task_id*, add it. Use this on errors.
mrjob/logs/ids.py:170
↓ 5 callersMethod_args_for_jar_step
(self, step_num)
mrjob/hadoop.py:484
↓ 5 callersMethod_args_for_spark_step
The actual arguments used to run the spark-submit command. This handles both all Spark step types (``spark``, ``spark_jar``, and ``sp
mrjob/bin.py:784
↓ 5 callersMethod_assert_emr_config_trusts_registries
(self, c, registries)
tests/test_emr.py:5975
↓ 5 callersMethod_check_for_failed_bootstrap_action
If our bootstrap actions failed, parse the stderr to find out why.
mrjob/emr.py:1873
↓ 5 callersFunction_check_for_nonzero_return_code
Given a reason for cluster termination, check if it's because a bootstrap action terminated with an error. If it is, return a dictionary with
mrjob/logs/bootstrap.py:52
↓ 5 callersFunction_cluster_state_name
(state_value)
mrjob/dataproc.py:136
↓ 5 callersMethod_count_output_files
(self, runner)
tests/spark/test_harness.py:184
↓ 5 callersFunction_extract_non_mrjob_tags
get tags from a cluster as a dict, excluding tags starting with ``__mrjob_``
tests/test_emr.py:147
↓ 5 callersMethod_find_binaries_and_jars
Find hadoop and (if needed) spark-submit bin up-front, before continuing with the job. (This is just for user-interaction purposes; t
mrjob/hadoop.py:331
↓ 5 callersMethod_get_blob
(self, uri, chunk_size=None)
mrjob/fs/gcs.py:287
↓ 5 callersMethod_get_cluster_info
(self, key)
mrjob/emr.py:2886
↓ 5 callersMethod_get_cluster_lock
(self)
tests/test_pool.py:315
↓ 5 callersMethod_get_gce_cluster_config
(self, *args)
tests/test_dataproc.py:447
↓ 5 callersMethod_get_s3_key
Get the boto3 s3.Object matching the given S3 uri, or return None if that key doesn't exist. uri is an S3 URI: ``s3://foo/bar``
mrjob/fs/s3.py:318
↓ 5 callersMethod_get_step_log_interpretation
Fetch and interpret the step log.
mrjob/emr.py:1977
↓ 5 callersMethod_interpret_history_log
Does nothing. We can't get the history logs, and we don't need them.
mrjob/dataproc.py:859
↓ 5 callersFunction_is_spark_step_type
Does the given step type indicate that it uses Spark?
mrjob/step.py:574
↓ 5 callersFunction_job_state_value
(state_name)
tests/mock_google/dataproc.py:96
↓ 5 callersMethod_launch_and_get_progress_html
(self, *args)
tests/test_emr.py:5633
↓ 5 callersMethod_log_counters
(self, step_num)
mrjob/sim.py:674
↓ 5 callersMethod_make_bucket
(self, name, location=None)
tests/test_dataproc.py:676
↓ 5 callersFunction_parse_pre_yarn_counters
Parse a COUNTERS field from a pre-YARN history file. Returns a map from group to counter to amount.
mrjob/logs/history.py:395
↓ 5 callersFunction_parse_progress_from_resource_manager
Pull progress_precent for running job from job tracker HTML, as a float, or return None. This assumes at most one running job (designed for E
mrjob/parse.py:196
↓ 5 callersFunction_parse_step_syslog
Parse the syslog from the ``hadoop jar`` command. Returns a dictionary which potentially contains the following keys: application_id: a stri
mrjob/logs/step.py:252
↓ 5 callersMethod_pick_counters
Pick counters from our log interpretation, interpreting history logs if need be.
mrjob/logs/mixin.py:98
↓ 5 callersMethod_spark_cmdenv
Returns a dictionary mapping environment variable to value, including mapping PYSPARK_PYTHON to self._python_bin()
mrjob/bin.py:1017
↓ 5 callersMethod_spark_deploy_mode
(self)
mrjob/emr.py:1397
↓ 5 callersMethod_ssh_tunnel_config
Look up AMI version, and return a dict with the following keys: name: "job tracker" or "resource manager" path: path to start page of
mrjob/emr.py:861
↓ 5 callersMethod_step_type_uses_spark
Treat streaming steps as Spark steps that use Python.
mrjob/spark/runner.py:509
↓ 5 callersFunction_strip_clear_tag
remove the clear tag from the given value.
mrjob/conf.py:206
↓ 5 callersMethod_test_conflict
(self, **kwargs)
tests/test_step.py:231
↓ 5 callersMethod_test_end_to_end
(self, args=())
tests/test_hadoop.py:618
↓ 5 callersMethod_test_runner_kwargs
(self, runner_alias)
tests/test_job.py:1369
↓ 5 callersMethod_test_stream_bootstrap_log_dirs
( self, ssh=False, action_num=0, node_id='i-b659f519', expected_s3_dir_nam
tests/test_emr.py:3523
↓ 5 callersMethod_test_stream_task_log_dirs
( self, ssh, application_id=None, image_version=_DEFAULT_IMAGE_VERSION, expected_local
tests/test_emr.py:3732
↓ 5 callersMethod_upload_part_size
Part size for uploads, in bytes, or ``None``, from :mrjob-opt:`cloud_part_size_mb`
mrjob/runner.py:1263
↓ 5 callersMethod_uses_input_manifest
Does the first step take an input manifest?
mrjob/runner.py:844
↓ 5 callersMethod_wait_for_logs_on_s3
If the cluster is already terminating, wait for it to terminate, so that logs will be transferred to S3. Don't print anything unless
mrjob/emr.py:2112
↓ 5 callersFunctionadd_mock_hadoop_output
Add mock output which will be used by the next fake streaming job that mockhadoop will run. Args: parts -- a list of the contents of part
tests/mockhadoop.py:132
↓ 5 callersMethodarchive_and_unarchive
(self, extension, archive_template, added_files=[])
tests/test_util.py:217
↓ 5 callersMethodassert_local_tmp_in
(self, runner, path)
tests/test_runner.py:982
↓ 5 callersMethodassert_new_tmp_bucket
Assert that if we create an EMRJobRunner with the given keyword args, it'll create a new tmp bucket with the given location constraint
tests/test_emr.py:839
↓ 5 callersMethodassert_new_tmp_bucket
Assert that if we create an DataprocJobRunner with the given keyword args, it'll create a new tmp bucket with the given location const
tests/test_dataproc.py:649
↓ 5 callersMethodassert_waits_ten_minutes
(self)
tests/test_emr.py:3407
↓ 5 callersFunctioncombine_opts
The master combiner, used to combine dictionaries of options with appropriate sub-combiners. :param combiners: a map from option name to a co
mrjob/conf.py:545
↓ 5 callersMethodcreate_bucket
Create a bucket on S3 with a location constraint matching the given region.
mrjob/fs/s3.py:334
↓ 5 callersFunctiondescribe_base_emr_images
Fetch a list of Amazon Linux AMI images that are usable with EMR, with the most recent first. This can take several seconds. :param ec2_clien
mrjob/ami.py:25
↓ 5 callersMethodexecute
(self)
mrjob/job.py:671
↓ 5 callersMethodget_bucket_location
(self, Bucket)
tests/mock_boto3/s3.py:113
↓ 5 callersMethodinterpret_bootstrap_stderr
Wrap _interpret_emr_bootstrap_stderr(), since fs doesn't matter
tests/logs/test_bootstrap.py:137
↓ 5 callersMethodinterpret_emr_step_syslog
(self, **kwargs)
tests/logs/test_step.py:492
↓ 5 callersMethodinterpret_history_log
Wrap _interpret_history_log(), since fs doesn't matter.
tests/logs/test_history.py:126
↓ 5 callersMethodis_task
True if this is a mapper, combiner, reducer, or Spark script. This is mostly useful inside :py:meth:`load_args`, to disable loading a
mrjob/job.py:1215
↓ 5 callersMethodlist_buckets
(self)
tests/mock_boto3/s3.py:125
↓ 5 callersFunctionload_opts_from_mrjob_confs
Load a list of dictionaries representing the options in a given list of mrjob config files for a specific runner. Returns ``[(path, values), .
mrjob/conf.py:306
↓ 5 callersMethodmd5sum
Generate the md5 sum of the file at *path*
mrjob/fs/base.py:148
↓ 5 callersFunctionparse_doc_filename
Parse a filename like ``some_id-cat1-cat2-not_cat3.txt`` into ``dict(id='some_id', cats=dict(cat1=True, cat2=True, cat3=False))``
mrjob/examples/mr_text_classifier.py:65
↓ 5 callersMethodpass_arg_through
Pass the given argument through to the job.
mrjob/job.py:1203
↓ 5 callersFunctionpath_for_host
Get the filesystem path that the given host is being faked at
tests/mockssh.py:88
↓ 5 callersMethodrun_job_flow
(self, **kwargs)
tests/mock_boto3/emr.py:222
↓ 5 callersMethodrun_mapper
Run the mapper and final mapper action for the given step. :type step_num: int :param step_num: which step to run (0-indexed)
mrjob/job.py:748
↓ 5 callersFunctionsave_sys_std
Context manager that saves the current values of `sys.stdin`, `sys.stdout`, and `sys.stderr`, and flushes these filehandles before and after s
mrjob/util.py:198
↓ 5 callersMethodsteps
Re-define this to make a multi-step job. If you don't re-define this, we'll automatically create a one-step job using any of :py:meth
mrjob/job.py:497
↓ 5 callersFunctiontranslate_jobconf_for_all_versions
Get all known variants of the given jobconf variable. Unlike :py:func:`translate_jobconf`, returns a list.
mrjob/compat.py:670
↓ 4 callersMethod__init__
Set all attributes to the corresponding value in *kwargs*, or the default value. Raise :py:class:`TypeError` for unknown arguments or
mrjob/step.py:361
↓ 4 callersMethod_add_steps_in_batch
(self)
mrjob/emr.py:1309
← previousnext →301–400 of 4,468, ranked by callers