<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pyspark on Naci Simsek</title><link>https://nacisimsek.com/tags/pyspark/</link><description>Recent content in Pyspark on Naci Simsek</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2026 Naci Simsek</copyright><lastBuildDate>Sun, 09 Jun 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://nacisimsek.com/tags/pyspark/index.xml" rel="self" type="application/rss+xml"/><item><title>Change Data Capture (CDC) Pipeline with Debezium, Kafka, Spark and Flink</title><link>https://nacisimsek.com/posts/20240609-debezium-cdc-flink/</link><pubDate>Sun, 09 Jun 2024 00:00:00 +0000</pubDate><guid>https://nacisimsek.com/posts/20240609-debezium-cdc-flink/</guid><description>Capture inserts, updates and deletes from PostgreSQL with Debezium, stream them through Kafka, parse the change events with Spark Structured Streaming and write them to MinIO, then run the same pipeline with PyFlink.</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://nacisimsek.com/posts/20240609-debezium-cdc-flink/featured.png"/></item><item><title>Optimizing Spark Applications: Joins, Caching, Partitions and AQE</title><link>https://nacisimsek.com/posts/20240609-spark-optimization/</link><pubDate>Sun, 09 Jun 2024 00:00:00 +0000</pubDate><guid>https://nacisimsek.com/posts/20240609-spark-optimization/</guid><description>Practical Spark tuning with explain plans and sample timings: where settings come from, resources and parallelism, cache and persist, broadcast hash join versus sort merge join, bucketing, partitioning, spark.sql.shuffle.partitions and Adaptive Query Execution.</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://nacisimsek.com/posts/20240609-spark-optimization/featured.png"/></item><item><title>Processing Complex Nested JSON with Spark</title><link>https://nacisimsek.com/posts/20240609-spark-json-process/</link><pubDate>Sun, 09 Jun 2024 00:00:00 +0000</pubDate><guid>https://nacisimsek.com/posts/20240609-spark-json-process/</guid><description>Turn JSON arrays that are stored as text inside a CSV file into flat Spark tables with from_json and explode, without losing the rows that have an empty list.</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://nacisimsek.com/posts/20240609-spark-json-process/featured.png"/></item><item><title>Spark Structured Streaming Hands On: From Kafka to Kafka</title><link>https://nacisimsek.com/posts/20240609-spark-streaming/</link><pubDate>Sun, 09 Jun 2024 00:00:00 +0000</pubDate><guid>https://nacisimsek.com/posts/20240609-spark-streaming/</guid><description>Build a Spark Structured Streaming job that reads IoT temperature readings from one Kafka topic, parses and enriches them with event-time fields, and writes JSON results to a second Kafka topic, with checkpoints, triggers and output modes explained.</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://nacisimsek.com/posts/20240609-spark-streaming/featured.png"/></item><item><title>Submitting a PySpark Application with spark-submit</title><link>https://nacisimsek.com/posts/20240608-spark-submit/</link><pubDate>Sat, 08 Jun 2024 00:00:00 +0000</pubDate><guid>https://nacisimsek.com/posts/20240608-spark-submit/</guid><description>Turn notebook code into a PySpark application with a main script and a helper module, run it with spark-submit, and check the settings, paths and packaging before it goes to a cluster.</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://nacisimsek.com/posts/20240608-spark-submit/featured.png"/></item><item><title>Spark DataFrame Operations on a Multi-Table Retail Dataset</title><link>https://nacisimsek.com/posts/20240607-spark-dataframe/</link><pubDate>Fri, 07 Jun 2024 00:00:00 +0000</pubDate><guid>https://nacisimsek.com/posts/20240607-spark-dataframe/</guid><description>Answer seven business questions on a six-table retail dataset with PySpark DataFrames: distinct counts, joins, filters, group by and sum, date functions, Parquet output and a wide table written to PostgreSQL over JDBC.</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://nacisimsek.com/posts/20240607-spark-dataframe/featured.png"/></item><item><title>Clean Up Dirty Data with PySpark</title><link>https://nacisimsek.com/posts/20240606-spark-cleanup-data/</link><pubDate>Thu, 06 Jun 2024 00:00:00 +0000</pubDate><guid>https://nacisimsek.com/posts/20240606-spark-cleanup-data/</guid><description>Clean a dirty retail transactions CSV with PySpark: remove special characters from text columns, strip currency signs from prices, trim spaces, cast to the right types and compare two cleaning rules with real outputs.</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://nacisimsek.com/posts/20240606-spark-cleanup-data/featured.png"/></item><item><title>Deploy a Spark Cluster: Local, Docker and Kubernetes</title><link>https://nacisimsek.com/posts/20240605-spark-deploy/</link><pubDate>Wed, 05 Jun 2024 00:00:00 +0000</pubDate><guid>https://nacisimsek.com/posts/20240605-spark-deploy/</guid><description>Set up Apache Spark three ways: a local install on a Mac with Homebrew and Jupyter, a standalone cluster with MinIO on Docker Compose, and spark-submit to a local Kubernetes cluster.</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://nacisimsek.com/posts/20240605-spark-deploy/featured.png"/></item></channel></rss>