← Articles
Towards Data Science · November 07, 2018

Getting Started With Apache Spark, Python and PySpark

This tutorial describes a single-node installation of Apache Spark 2.3.1 on Ubuntu 16.04 in an environment containing Hadoop and Kafka. It covers configuring Spark services, placing Spark libraries in HDFS, preparing a Python virtual environment and using FindSpark to locate the installed PySpark libraries.

Two examples demonstrate how to load a CSV file from HDFS into a Spark DataFrame and consume Kafka messages using Spark Streaming and its ZooKeeper-based integration. The instructions reflect the versions and dependencies used in the original 2018 environment.

Visit original source ↗

Search website

Type to search the portfolio.

↑ ↓ Navigate · Enter to open · Esc to close