apache-spark-data-processing_skill

This skill helps you master Apache Spark data processing from RDDs to streaming and ML workflows for scalable analytics and production pipelines.
  • Shell

40

GitHub Stars

3

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill manutej/luxor-claude-marketplace --skill apache-spark-data-processing

  • EXAMPLES.md57.4 KB
  • README.md17.2 KB
  • SKILL.md47.4 KB

Overview

This skill is a complete guide to Apache Spark data processing covering RDDs, DataFrames, Spark SQL, streaming primitives, MLlib, and production deployment patterns. It focuses on building scalable distributed pipelines, optimizing queries, and applying machine learning at scale. The content is practical, with examples for transformations, caching, partitioning, and common production concerns.

How this skill works

The guide explains core Spark abstractions (RDD, DataFrame, Dataset) and how lazy evaluation builds a DAG that Spark optimizes and executes across a cluster. It covers reading/writing common formats (Parquet, ORC, JSON, CSV), Spark SQL features (Catalyst, AQE), and shared-variable patterns (broadcasts and accumulators). It also describes caching strategies, partition tuning, UDF usage, and window functions for advanced analytics.

When to use it

  • Process datasets larger than a single machine (TB+).
  • Run parallel distributed computations and ETL/ELT pipelines.
  • Combine batch and streaming workloads or handle real-time streams.
  • Train or serve machine learning models on large data using MLlib.
  • Perform complex aggregations, joins, and SQL analytics at scale.

Best practices

  • Prefer DataFrames/Datasets over low-level RDDs for performance and optimizer benefits.
  • Tune partition count: aim for 2–4 tasks per CPU core; use repartition/coalesce carefully.
  • Cache only data reused multiple times; choose MEMORY_AND_DISK for large intermediate sets.
  • Use built-in Spark functions or Pandas UDFs instead of Python UDFs to avoid serialization overhead.
  • Broadcast small lookup tables; use accumulators for driver-side aggregated counters.

Example use cases

  • Large-scale ETL: ingest JSON/CSV, transform with DataFrame API, write partitioned Parquet for analytics.
  • Streaming analytics: process Kafka streams with Structured Streaming and maintain aggregations or stateful windows.
  • ML at scale: preprocess features with DataFrame ops, train MLlib models, and persist models to a shared store.
  • Ad-hoc interactive analysis: explore petabyte-scale datasets via Spark SQL and cached intermediate results.
  • Complex joins and windowed reports: compute ranked leaderboards and running totals with window functions.

FAQ

Use RDDs for fine-grained control over partitioning or when working with unstructured/binary data; otherwise prefer DataFrames for optimizer benefits.

How do I choose a storage level for caching?

Use MEMORY_ONLY for speed if data fits, MEMORY_AND_DISK to avoid recomputation when memory is limited, and DISK_ONLY when memory is scarce and recompute cost is high.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
apache-spark-data-processing skill by manutej/luxor-claude-marketplace | VeilStrat