Tag: pyspark

  • Why I’m Loving Spark 4’s Python Data Source (with Direct Arrow Batches)

    Why I’m Loving Spark 4’s Python Data Source (with Direct Arrow Batches)

    Why I’m Loving Spark 4’s Python Data Source (with Direct Arrow Batches) TL;DR: Apache Spark 4 lets you build first-class data sources in pure Python. If your reader yields Arrow RecordBatch objects, Spark ingests them with reduced Python↔JVM serialization overhead. I used this to ship a ROOT data format reader for PySpark. A PySpark reader

    Explore →

  • Enhancing Apache Spark Performance with Flame Graphs: A Practical Example Using Grafana Pyroscope

    Enhancing Apache Spark Performance with Flame Graphs: A Practical Example Using Grafana Pyroscope

    Enhancing Apache Spark Performance with Flame Graphs: A Practical Example Using Grafana Pyroscope TL;DR Explore a step-by-step example of troubleshooting Apache Spark job performance using flame graph visualization and profiling. Discover the seamless integration of Grafana Pyroscope with Spark for streamlined data collection and visualization. The Puzzle of the Slow Query Set within the framework

    Explore →

  • Machine Learning Pipelines for High Energy Physics Using Apache Spark with BigDL and Analytics Zoo

    Machine Learning Pipelines for High Energy Physics Using Apache Spark with BigDL and Analytics Zoo

    Machine Learning Pipelines for High Energy Physics Using Apache Spark with BigDL and Analytics Zoo Topic: This post describes a data pipeline for a machine learning task of interest in high energy physics: building a particle classifier to improve event selection at the particle detectors. The pipeline is built using tools from the “Big Data

    Explore →

  • IPython/Jupyter SQL Magic Functions for PySpark

    IPython/Jupyter SQL Magic Functions for PySpark

    IPython/Jupyter SQL Magic Functions for PySpark Topic: this post is about a simple implementation with examples of IPython custom magic functions for running SQL in Apache Spark using PySpark and Jupyter notebooks. If you are already famialiar with Apache Spark and Jupyter notebooks may want to go directly to the links with the example notebook

    Explore →

  • Integrating Hadoop and Elasticsearch – Part 2 – Writing to and Querying Elasticsearch from Apache Spark

    Integrating Hadoop and Elasticsearch – Part 2 – Writing to and Querying Elasticsearch from Apache Spark

    Integrating Hadoop and Elasticsearch – Part 2 – Writing to and Querying Elasticsearch from Apache Spark Introduction In the part 2 of 'Integrating Hadoop and Elasticsearch' blogpost series we look at bridging Apache Spark and Elasticsearch. I assume that you have access to Hadoop and Elasticsearch clusters and you are faced with the challenge of

    Explore →