Skip to main content

Spark-optimizer

Build Status

Optimize spark settings (for cluster aka yarn run)

Original source: http://c2fo.io/c2fo/spark/aws/emr/2016/07/06/apache-spark-config-cheatsheet/

Usage

Install:

$ virtualenv env
$ env/bin/pip install spark-optimizer

Dev install:

$ virtualenv env
$ env/bin/pip install -e .

Generate settings for c4.4xlarge with 4 nodes:

$ env/bin/spark-optimizer c4.4xlarge 4
Optimal numPartitions: 162 
{'spark.default.parallelism': '108',
 'spark.driver.cores': '2',
 'spark.driver.maxResultSize': '3481m',
 'spark.driver.memory': '3481m',
 'spark.driver.memoryOverhead': '614m',
 'spark.executor.cores': '2',
 'spark.executor.instances': '27',
 'spark.executor.memory': '3481m',
 'spark.executor.memoryOverhead': '614m'}

Update instance info:

$ env/bin/python spark_optimizer/emr_update.py

CHANGES

0.1.8 (2020-02-14)

  • add calculation for numPartitions
  • dropping pypy and python3.4

0.1.7 (2019-12-09)

  • set long_description_content_type="text/markdown"

0.1.6 (2019-12-09)

  • fix docs

0.1.5 (2019-12-09)

  • update emr_instance.yaml

0.1.4 (2019-03-10)

  • add ec2 and emr cost to yaml

0.1.3 (2019-03-08)

  • add emr cost to yaml
  • export load yaml file
  • make memory_overhead_coefficient editable

0.1.2 (2019-02-20)

  • unpin the versions
  • rename cli from _ to -

0.1.1 (2018-09-12)

  • fix email

0.1.0 (2018-09-12)

  • initial release

Release files for spark-optimizer 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spark-optimizer 0.1.8
File Size Uploaded
spark_optimizer-0.1.8.tar.gz 17.8 kB Details

Release files / spark_optimizer-0.1.8.tar.gz

Download URL spark_optimizer-0.1.8.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
15c1580b2b6d388ad2871ad7e63f36c0f75c6a11a0cd757f455cb3a7209cfe1a
BLAKE2b-256 checksum
How to use checksums
521167b11e28b2276cc6a195a3ef62a02d3fa5ee1519c671a32a24a9bee1d985
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.19.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.1.8 This release

1 release file

0.1.7

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page