~/talk

How to structure PySpark application

Talkat PyData Warsaw 2019 · 2019-12-12..12-13· [developer-experience, python]
links:none on file
slides:none on file

Shows a concrete PySpark app layout: extract input/output and app name to a config file, add a main entrypoint that loads a job from a jobs package, move UDFs to a shared module, and register third‑party libs via a requirements.txt and zipped site‑packages deployed with --py-files. Uses a Makefile (make build) to produce a dist/ with job and shared zips, runs tests with pytest and pytest-spark plus pandas.testing, deploys artifacts to S3 via Terraform and CI, and runs reliably on AWS Glue/EMR for ~200 small jobs.

AI-written summary · about

  1. 0:00PySpark introduction
  2. 1:42PySpark structure matters
  3. 3:11Spark submit setup
  4. 4:15First ETL jobs
  5. 5:41Extracting configs
  6. 7:29Main entry point
  7. 9:16Refactoring structure
  8. 10:24Makefile packaging
  9. 12:16UDFs for data ops
  10. 14:03Third-party dependencies
  11. 16:54Testing importance
  12. 18:46Automated tests
  13. 19:10Final structure deployment
  14. 21:23Structured approach benefits
  15. 24:44Q&A: AWS Spark jobs
  16. 26:44Q&A: Debugging workflow
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.