Sitemap
Towards AI

We train AI Engineers. We deploy Enterprise AI. Join 100K+ AI practitioners at Towards AI Academy or reach out for help making your company AI native. towardsai.com

Saving the Output of Spark ETL Jobs | Towards AI

How You Should Save the Output of your Spark ETL Jobs (If you are not Writing to a Database)

7 min readSep 25, 2019

--

Introduction

In this article, I will share my thoughts on the best way to save the output of Spark ETL jobs so that it is easier to do analytical work later. The code to reproduce the examples can be found here.

Cluster Setup

The cluster I used to run the code in this article is hosted on Databricks with the following configuration:

  • Cluster Mode: Standard
  • Databricks Runtime Version: 5.5 LTS ML (includes Apache Spark 2.4.3 Scala 2.11)

There are 8 workers and both the workers and driver are m4.xlarge instances (16.0 GB, 4 Cores).

Case Study

Imagine you are in the following scenario:

You just joined an immensely popular online retailer with customers worldwide. This company makes billions of dollars in revenue each year. So you know it generates so much transactional data everyday that it can only be efficiently processed using a distributed computing framework like Apache Spark. You are tasked to build a model to forecast daily turnover and decided to begin by doing some exploratory data analysis on past transactions.

The data engineering team has kindly agreed to give you access to these data in the…

--

--

Towards AI
Towards AI

Published in Towards AI

We train AI Engineers. We deploy Enterprise AI. Join 100K+ AI practitioners at Towards AI Academy or reach out for help making your company AI native. towardsai.com