
Explore the Apache Spark unified stack built on Spark Core, delivering batch and real-time streaming, SQL, machine learning, and graph processing with data frames.
Install pyspark on Mac OS using pip and verify the installation. Set environment variables in the zshrc to reference Python3 and pyspark drivers, then source the profile to apply changes.
Learn to use the Spark web UI to monitor a local Spark job, exploring stages and executables, and applying map transformations to square numbers in a sample program.
install a spark environment with java, python 3.9, and jupyter notebook, resolve c++ build tools to run notebook, and use the spok ui to monitor spark jobs and rdd libraries.
Learn spark foundations and build a blog app to compute the most orders per region and country, while exploring spark transformations, actions, and directed acyclic graph in spark web ui.
Explore the Spark web UI and DAG visualisation to see how stages and jobs execute in a lazy transformation-to-action workflow, with Python and Java APIs and data frames.
Remove duplicates with the distinct transformation on an RDD, verify the reduced count, and then filter words with a lambda to keep those that start with s.
Explore map and flatMap transformations in Spark, applying complex operations while preserving record counts; create squared number pairs and flatten words into letters.
Learn how to sort by key using Spark's sort by key transformation on an RDD of country-ranking tuples, including descending sort with map and collect.
Explore the reduce action in RDDs by aggregating values with a lambda to a single result, summing lists, finding the longest word, and deriving max and min values.
Use spark 3 to tackle the XYZ research challenge with the attached data, applying union and subtract transformations to count initiated projects and year-one and year-two completions.
Import libraries, create a spark session, and define a sales schema; load csv data from data folder with a header, then print the schema and show the first 10 records.
Manage performance errors in Spark by stopping and restarting sessions, cleaning up temporary space, and restarting notebooks to recover from block manager errors and file not found exceptions.
Learn to filter data with filter and where functions to select salary 3000 or less, combine conditions with and, and use contains to find Land of the Lost.
Learn how to create individual row items, assemble them into a data frame, and merge data frames using Spark's union transformation for tasks in data engineering and analytics with Python.
Learn to clean sales data with Spark, remove bad records, extract city and state from address, convert data types, add year and month, write output partitioned by report and month.
Extract the city and state from the purchase address using Spark's split function to create new city and state columns in the sales dataframe.
Load the flight summary data into a Spark data frame, infer the schema, and count route usage (origin to destination airports) to set up aggregations.
Group by origin airport, apply count and max aggregations, and order by results to reveal airport counts; extend to group by state and city with California filters.
Discover how to register for the Databricks community edition, complete sign-up, verify your email, and land on the data platform's front page for future Spark data engineering lessons.
Learn to create a Databricks cluster to run Spark code, starting with a single-node community edition, Python 3 support, and understanding idle termination and availability zone settings.
Load sales data files into a Spark dataframe by defining a schema and a data path, then read csv files with headers. Attach the cluster and verify the initial records.
Insert records from a sales raw data frame into the sales table using Spark SQL and a temporary view. Verify compatibility with describe and understand the insert process with DML.
Insert transformed sales records with a spark Eskil statement, convert order date to timestamp, and extract year and month for final analytics and POCKY storage.
Explore the best ad timing by extracting the hour from order dates, measuring purchasing power per unique order id, and visualizing peak moments with a line chart.
Identify the most common product pairs sold together in New York using Apache Spark 3's data frame API, grouping by order IDs and visualizing results with a pie chart.
Dive into core data fundamentals with DDL-based database and table creation, SQL-like select statements, and DML operations, then explore clusters, notebooks, and dashboards.
The key objectives of this course are as follows;
Learn the Spark Architecture
Learn Spark Execution Concepts
Learn Spark Transformations and Actions using the Structured API
Learn Spark Transformations and Actions using the RDD (Resilient Distributed Datasets) API
Learn how to set up your own local PySpark Environment
Learn how to interpret the Spark Web UI
Learn how to interpret DAG (Directed Acyclic Graph) for Spark Execution
Learn the RDD (Resilient Distributed Datasets) API (Crash Course)
RDD Transformations
RDD Actions
Learn the Spark DataFrame API (Structured APIs)
Create Schemas and Assign DataTypes
Read and Write Data using the DataFrame Reader and Writer
Read Semi-Structured Data such as JSON
Create and New Data Columns to the DataFrame using Expressions
Filter the DataFrame using the "Filter" and "Where" Transformations
Ensure that the DataFrame has unique rows
Detect and Drop Duplicates
Augment the DataFrame by Adding New Rows
Combine 2 or More DataFrames
Order the DataFrame by Specific Columns
Renaming and Drop Columns from the DataFrame
Clean the DataFrame by detecting and Removing Missing or Bad Data
Create User-Defined Spark Functions
Read and Write to/from Parquet File
Partition the DataFrame and Write to Parquet File
Aggregate the DataFrame using Spark SQL functions (count, countDistinct, Max, Min, Sum, SumDistinct, AVG)
Perform Aggregations with Grouping
Learn Spark SQL and Databricks
Create a Databricks Account
Create a Databricks Cluster
Create Databricks SQL and Python Notebooks
Learn Databricks shortcuts
Create Databases and Tables using Spark SQL
Use DML, DQL, and DDL with Spark SQL
Use Spark SQL Functions
Learn the differences between Managed and Unmanaged Tables
Read CSV Files from the Databricks File System
Learn to write Complex SQL
Use Spark SQL Functions
Create Visualisations with Databricks
Create a Databricks Dashboard
The Python Spark project that we are going to do together;
Sales Data
Create a Spark Session
Read a CSV file into a Spark Dataframe
Learn to Infer a Schema
Select data from the Spark Dataframe
Produce analytics that shows the topmost sales orders per Region and Country
Convert Fahrenheit to Degrees Centigrade
Create a Spark Session
Read and Parallelize data using the Spark Context into an RDD
Create a Function to Convert Fahrenheit to Degrees Centigrade
Use the Map Function to convert data contained within an RDD
Filter temperatures greater than or equal to 13 degrees celsius
XYZ Research
Create a set of RDDs that hold Research Data
Use the union transformation to combine RDDs
Learn to use the subtract transformation to minus values from an RDD
Use the RDD API to answer the following questions
How many research projects were initiated in the first three years?
How many projects were completed in the first year?
How many projects were completed in the first two years?
Sales Analytics
Create the Sales Analytics DataFrame to a set of CSV Files
Prepare the DataFrame by applying a Structure
Remove bad records from the DataFrame (Cleaning)
Generate New Columns from the DataFrame
Write a Partitioned DataFrame to a Parquet Directory
Answer the following questions and create visualizations using Seaborn and Matplotlib
What was the best month in sales?
What city sold the most products?
What time should the business display advertisements to maximize the likelihood of customers buying products?
What products are often sold together in the state "NY"?
Technology Spec
Python
Jupyter Notebook
Jupyter Lab
PySpark (Spark with Python)
Pandas
Matplotlib
Seaborne
Databricks
SQL