Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yelp/mrjob
/ functions
Functions
4,468 in github.com/Yelp/mrjob
⨍
Functions
4,468
◇
Types & classes
673
↳
Endpoints
1
↓ 2 callers
Function
_parse_task_syslog_records
Helper for _parse_task_syslog(); takes log4j records rather than lines
mrjob/logs/task.py:359
↓ 2 callers
Method
_pick_protocol_instances
(self, step_num, step_type)
mrjob/job.py:1017
↓ 2 callers
Function
_plural
Utility for logging messages
mrjob/emr.py:3368
↓ 2 callers
Method
_pool_hash
(self)
mrjob/emr.py:2808
↓ 2 callers
Method
_progress_html_from_tunnel
Fetch progress by calling :py:func:`urlopen` on our ssh tunnel, or return ``None``.
mrjob/emr.py:1765
↓ 2 callers
Method
_progress_html_over_ssh
Fetch progress by running :command:`curl` over SSH, or return ``None``
mrjob/emr.py:1786
↓ 2 callers
Method
_release_cluster_lock
(self)
mrjob/emr.py:1517
↓ 2 callers
Function
_role_matches
Does the given role data structure have the given policy document and the given policy ARN attached? (Roles can have up to two policy ARNs at
mrjob/iam.py:138
↓ 2 callers
Function
_run_combiner
Run our job's combiner, and group lines with the same key together. :param combiner_job: an instance of our job, instantiated to be the mapper
mrjob/spark/harness.py:439
↓ 2 callers
Method
_run_multiple
Run multiple no-args functions, possibly in parallel using :py:mod:`multiprocessing` (if so all *funcs* must be pickleable). By defau
mrjob/sim.py:123
↓ 2 callers
Function
_run_reducer
Run our job's combiner, and group lines with the same key together. :param reducer_job: an instance of our job, instantiated to be the mapper
mrjob/spark/harness.py:545
↓ 2 callers
Function
_runner_kwargs
Parse command line arguments into arguments for :py:class:`EMRJobRunner`
mrjob/tools/emr/create_cluster.py:209
↓ 2 callers
Method
_set_md5_hash
(self)
tests/mock_google/storage.py:203
↓ 2 callers
Method
_set_up_ssh_tunnel
Call this whenever you think it is possible to SSH to your cluster. This sets :py:attr:`_ssh_proc`. Does nothing if :mrjob-opt:`ssh_tunnel`
mrjob/cloud.py:404
↓ 2 callers
Method
_setup_working_dir
(self, task_type, step_num, task_num)
mrjob/sim.py:550
↓ 2 callers
Method
_sh_pre_commands
A list of lines to put at the very start of any sh script (e.g. ``set -e`` when ``sh -e`` wont work, see #1549)
mrjob/bin.py:766
↓ 2 callers
Method
_sh_pre_commands
(self)
mrjob/emr.py:665
↓ 2 callers
Function
_shuffle_and_sort
Simulate Hadoop's shuffle-and-sort step, so that data will be in the format the reducer expects. :param rdd: an RDD containing lines represen
mrjob/spark/harness.py:512
↓ 2 callers
Method
_sort_input_func
Returns a function that sorts lines from one or more input paths into a new file. Takes the arguments *input_path* and *output_path*.
mrjob/sim.py:651
↓ 2 callers
Method
_sorted_reducer_input_path
(self, step_num)
mrjob/sim.py:648
↓ 2 callers
Function
_split_records
Given a stream of records (bytestrings, usually lines), yield groups of records (as generators such that the total number of bytes in each group
mrjob/sim.py:774
↓ 2 callers
Method
_ssh_finish_run
Close file handles and do error handling on a ``Popen`` who we've read stdout from but done nothing else.
mrjob/fs/ssh.py:136
↓ 2 callers
Method
_ssh_tunnel_config
Redefine this in your subclass. Should return a dict with the following keys: *localhost*: once we SSH in, is the web interface?
mrjob/cloud.py:381
↓ 2 callers
Method
_ssh_tunnel_opts
Options to SSH related to setting up a tunnel (rather than SSHing in). Helper for :py:meth:`_ssh_tunnel_args`.
mrjob/cloud.py:511
↓ 2 callers
Method
_ssh_worker_hosts
Get the hostnames of all core and task nodes, that are currently running, so we can SSH to them through the master nodes and read thei
mrjob/emr.py:2089
↓ 2 callers
Method
_start_of_sh_script
Return a list of lines (without trailing newlines) containing the shell script shebang and pre-commands.
mrjob/cloud.py:341
↓ 2 callers
Function
_step_num
Number that indicates this is the nth task to be launched on the cluster. The second number in any ID. For example, in container_156701349369
mrjob/logs/ids.py:118
↓ 2 callers
Method
_step_type_uses_pyspark
Does this step involve running Python on Spark? (This is re-defined in the Spark runner to include streaming steps, and used by mrjob
mrjob/runner.py:879
↓ 2 callers
Method
_steps_to_submit
Return a step data structures to pass to ``boto3``
mrjob/emr.py:1317
↓ 2 callers
Method
_store_cluster_info
Set self._image_version and self._hadoop_version.
mrjob/dataproc.py:1039
↓ 2 callers
Method
_stream_bootstrap_log_dirs
Stream a single directory on S3 containing the relevant bootstrap stderr. Optionally, use *action_num* and *node_id* to narrow it down
mrjob/emr.py:1908
↓ 2 callers
Method
_substep_args
(self, step_num, mrc)
mrjob/bin.py:224
↓ 2 callers
Function
_sum_counters
Combine many maps from group to counter to amount.
mrjob/logs/counters.py:47
↓ 2 callers
Function
_symlink_or_copy
Symlink from *dest* to *path*, using relative paths if possible. If symlinks aren't available, copy path to dest instead.
mrjob/sim.py:793
↓ 2 callers
Method
_task_working_dir
(self, task_type, step_num, task_num)
mrjob/sim.py:643
↓ 2 callers
Method
_test_environment_variables
(self, *args)
tests/test_local.py:941
↓ 2 callers
Method
_test_file_upload_args_loaded_at_init
(self, spark_master)
tests/spark/test_runner.py:563
↓ 2 callers
Method
_test_no_non_mapper
(self, mrc)
tests/test_bin.py:401
↓ 2 callers
Method
_test_normalized_emr_configurations
(self, emr_configurations)
tests/test_emr.py:4171
↓ 2 callers
Method
_test_reading_from
(self, job_class, expect_input_path)
tests/test_inline.py:215
↓ 2 callers
Method
_test_recoverable_error
(self, ex)
tests/logs/test_wrap.py:61
↓ 2 callers
Method
_test_recoverable_error
(self, ex)
tests/logs/test_wrap.py:258
↓ 2 callers
Method
_test_round_trip
(self, conf)
tests/test_conf.py:321
↓ 2 callers
Method
_test_run_reducer
(self, num_reducers=None)
tests/spark/test_harness.py:886
↓ 2 callers
Method
_test_sh_bin
(self, image_version, expected_bin, expected_pre_commands)
tests/test_emr.py:5420
↓ 2 callers
Method
_test_step
(self, step_num)
tests/test_bin.py:131
↓ 2 callers
Method
_test_stream_step_log_dirs
(self, ssh, read_logs=True)
tests/test_emr.py:3686
↓ 2 callers
Function
_time_last_active
When did something last happen with the given cluster? Things we look at: * cluster's ``CreationDateTime`` (always set) * cluster's ``Re
mrjob/tools/emr/terminate_idle_clusters.py:269
↓ 2 callers
Function
_timestamp
cluster timestamp. the first number in any ID. For example, in container_1567013493699_0003_01_000002, it's 1567013493699.
mrjob/logs/ids.py:110
↓ 2 callers
Function
_to_str
(s)
mrjob/runner.py:1500
↓ 2 callers
Function
_unarchive_cmd
Look up the unarchive command to use with the given file extension, or raise KeyError if there is no matching command.
mrjob/bin.py:76
↓ 2 callers
Method
_update_step_interpretation
( self, step_interpretation, driver_output_uri)
mrjob/dataproc.py:797
↓ 2 callers
Method
_upload_args_helper
( self, files_opt_str, files, archives_opt_str, archives, always_use_hash=True, emulat
mrjob/runner.py:1368
↓ 2 callers
Method
_usage
(self)
mrjob/job.py:163
↓ 2 callers
Function
_wait_for
(msg, sleep_secs)
mrjob/dataproc.py:171
↓ 2 callers
Method
_wait_for_fs_sync
Sleep for a little while, to give FS a chance to sync up.
mrjob/dataproc.py:577
↓ 2 callers
Method
_yield_split_fileobjs
Used to split input for the given mapper/reducer. Yields writeable fileobjs for input splits (check their *name* attribute to get the
mrjob/sim.py:539
↓ 2 callers
Method
add_files_for_upload
(self, runner)
tests/test_hadoop.py:1035
↓ 2 callers
Method
add_files_for_upload
(self, runner)
tests/test_runner.py:355
↓ 2 callers
Method
add_job_flow_steps
(self, JobFlowId, Steps)
tests/mock_boto3/emr.py:1245
↓ 2 callers
Function
add_mock_hadoop_counters
Add counters for a subsequent run of the hadoop jar command (streaming or otherwise), as a map from group name to counter name to amount.
tests/mockhadoop.py:160
↓ 2 callers
Method
add_mock_log_entry
( self, payload, logger, insert_id=None, timestamp=None, labels=None, severity=None, h
tests/mock_google/case.py:137
↓ 2 callers
Function
add_mock_s3_data
Update *mock_s3_fs* with a map from bucket name to key name to data. :param age: a timedelta :param location string: the bucket's location co
tests/mock_boto3/s3.py:134
↓ 2 callers
Method
add_mrjob_to_pythonpath
call this for tests that are going to invoke a subprocess that needs to find mrjob. (Merely using the local runner won't require this
tests/sandbox.py:173
↓ 2 callers
Method
all
(self)
tests/mock_boto3/s3.py:214
↓ 2 callers
Method
assert_conns_use_session_token
(self, runner, session_token)
tests/test_emr.py:2964
↓ 2 callers
Function
combine_local_envs
Same as :py:func:`combine_envs`, except that paths are combined using the local path separator (e.g ``;`` on Windows rather than ``:``).
mrjob/conf.py:477
↓ 2 callers
Method
combine_pairs
Runs :py:meth:`combiner_init`, :py:meth:`combiner`, and :py:meth:`combiner_final` for one reduce task in one step. Takes in a
mrjob/job.py:837
↓ 2 callers
Method
create_instance_profile
(self, InstanceProfileName)
tests/mock_boto3/iam.py:149
↓ 2 callers
Function
create_mock_ssh_script
Dump a wrapper script to the given file object that runs this python script.
tests/mockssh.py:46
↓ 2 callers
Method
create_role
(self, AssumeRolePolicyDocument, RoleName)
tests/mock_boto3/iam.py:84
↓ 2 callers
Method
create_temp_counter_dir
(self)
tests/spark/test_harness.py:450
↓ 2 callers
Function
encode
Rot13-encode the given string.
tests/rot13lib/text.py:17
↓ 2 callers
Function
fail
(path, msg)
tests/mockhadoop.py:641
↓ 2 callers
Function
fake_record
()
mrjob/logs/log4j.py:75
↓ 2 callers
Method
filter
(self, Prefix=None)
tests/mock_boto3/s3.py:248
↓ 2 callers
Method
get_cluster
(self, job_args, job_class=MRTwoStepJob)
tests/test_emr_pooling.py:159
↓ 2 callers
Method
get_hadoop_bin
Return the hadoop binary, searching for it if need be.
mrjob/fs/hadoop.py:78
↓ 2 callers
Method
get_hadoop_streaming_jar
Find the path of the hadoop streaming jar, or None if not found.
mrjob/hadoop.py:216
↓ 2 callers
Method
get_hadoop_version
Return the version number of the Hadoop environment as a string if Hadoop is being used or simulated. Return None if not applicable.
mrjob/runner.py:702
↓ 2 callers
Function
get_mock_hadoop_cmd_args
Get a list for each invocation of hadoop, each containing a list of arguments (not including the hadoop binary's path).
tests/mockhadoop.py:198
↓ 2 callers
Method
get_paginator
(self, operation_name)
tests/mock_boto3/iam.py:76
↓ 2 callers
Method
gz_test
(self, dir_path_name)
tests/test_local.py:250
↓ 2 callers
Method
hadoop_input_format
Optional Hadoop ``InputFormat`` class to parse input for the first step of the job. Normally, setting :py:attr:`HADOOP_INPUT_FORMAT`
mrjob/job.py:1315
↓ 2 callers
Method
hadoop_output_format
Optional Hadoop ``OutputFormat`` class to write output for the last step of the job. Normally, setting :py:attr:`HADOOP_OUTPUT_FORMAT
mrjob/job.py:1335
↓ 2 callers
Method
input_protocol
Instance of the protocol to use to convert input lines to Python objects. Default behavior is to return an instance of :py:attr:`INPUT
mrjob/job.py:1228
↓ 2 callers
Function
invoke_cmd
Helper function to call command and subcommands of the hadoop binary. Basically, combines prefix and cmd to make a function name, and calls i
tests/mockhadoop.py:238
↓ 2 callers
Function
is_gcs_uri
Return True if *uri* can be parsed into an S3 URI, False otherwise.
mrjob/fs/gcs.py:303
↓ 2 callers
Function
iso_now
Return the current time as YYmmdd.HH:MM:SS.uuuuuu. Use this to ensure that mock data added stays in alphabetical order.
tests/mockhadoop.py:109
↓ 2 callers
Method
jobconf
(self)
tests/test_job.py:631
↓ 2 callers
Method
list_blobs
(self, prefix=None)
tests/mock_google/storage.py:110
↓ 2 callers
Method
list_buckets
List buckets on GCS.
mrjob/fs/gcs.py:247
↓ 2 callers
Method
list_clusters
(self, CreatedAfter=None, CreatedBefore=None, ClusterStates=None)
tests/mock_boto3/emr.py:1295
↓ 2 callers
Method
log_name
(self, name)
tests/test_dataproc.py:1720
↓ 2 callers
Method
log_resource
(self)
tests/test_dataproc.py:1723
↓ 2 callers
Function
log_to_null
Set up a null handler for the given stream, to suppress "no handlers could be found" warnings.
mrjob/util.py:87
↓ 2 callers
Function
log_to_stream
Set up logging. :type name: str :param name: name of the logger, or ``None`` for the root logger :type stream: file object :param str
mrjob/util.py:94
↓ 2 callers
Function
make_refnode
(text)
docs/options_extension.py:371
↓ 2 callers
Method
map_pairs
Runs :py:meth:`mapper_init`, :py:meth:`mapper`/:py:meth:`mapper_raw`, and :py:meth:`mapper_final` for one map task in one step.
mrjob/job.py:798
↓ 2 callers
Method
mock_popen
Main func should take the arguments (stdin, stdout, stderr, argv, environ_dict).
tests/fs/__init__.py:23
← previous
next →
701–800 of 4,468, ranked by callers