Skip to main content
00:00/00:00
Lecture 23 of 346

Validate Spark Shell CLI using Spark 2

Download Course (Free)

Course Content

0 / 346 completed
Section 1: Introduction about Spark SQL and PySpark 3 using Python 314 videos

Purchasing the Spark SQL and PySpark using Python 3 Course

4m

Introduction to Udemy Course Landing Page

6m

Introduction to Spark SQL and PySpark 3 using Python 3

1m

Curriculum for Spark SQL and Pyspark 3 using Python 3

6m

Adding Notes to Course Lectures

10m

Using Course Sidebar to move between lectures

6m

Overview of Udemy Course or Video Player

21m

Overview of Support to ITVersity courses on Udemy

8m

Resources for Spark SQL and Pyspark 3 using Python 3

2m

Material for Spark SQL and PySpark 3 using Python 3

7m

Become Part of ITVersity Data Engineering Community

7m

Best Practices to get ITVersity Support using Udemy

23m

Udemy for Business Customers - Important Information for about labs for practice

5m

Rate and Leave Feedback - Spark SQL and PySpark 3 using Python 3

9m
Section 2: Using ITVersity Labs for hands-on practice (for ITVersity Lab Customers only)15 videos

Setup Development Environment using VS Code Remote Development Extension Pack

10m

Review Data Sets Provided as part of Gateway Nodes of Hadoop and Spark Cluster

8m

Validate Hive on Hadoop and Spark Multinode Cluster

16m

Review Hadoop HDFS and YARN Property Files using Visual Studio Code Editor

5m

Validate HDFS on Multi Node Hadoop and Spark Cluster from Gateway Node

25m

Review Hadoop HDFS and YARN Property Files on Hadoop and Spark Cluster

9m

Review Hive Property Files on Multinode Hadoop and Spark Cluster

7m

Review Spark 2 Property Files and Important Properties

13m

Validate Spark Shell CLI using Spark 2

10mNow Playing

Validate Pyspark CLI using Spark 2

6m

Validate Spark SQL CLI using Spark 2

26m

Review Spark 3 Property Files and Important Properties

8m

Validate Spark Shell CLI using Spark 3

10m

Validate Pyspark CLI using Spark 3

10m

Validate Spark SQL CLI using Spark 3

11m
Section 3: Setup Hadoop and Spark Single Node Cluster on Windows 11 using Docker17 videos

Prerequisites for Single Node Hadoop and Spark Cluster on Windows

5m

Overview of Windows System Configuration

4m

Setup Ubuntu on Windows 11 using wsl

6m

Setup and Validate Ubuntu VM on Windows using wsl

4m

Overview of Docker Desktop on Windows 11

4m

Install Docker Desktop on Windows 11 using wsl2

8m

Validate Docker Commands using Windows Powershell as well as wsl Ubuntu

3m

Setup Visual Studio Code IDE on Windows

9m

Clone GitHub Repository for Pyspark Course using Visual Studio Code

5m

Install Visual Studio Code Extension for Remote Development

11m

Launching Terminal using Visual Studio Code and WSL

4m

Review Docker Compose File to setup Hadoop and Spark Lab

6m

Review the resource utilization of Windows for Hadoop and Spark Lab

7m

Start Hadoop and Spark Lab along with Jupyter Lab on Windows 11

13m

Review Docker Desktop for Hadoop and Spark Lab using Docker

9m

Validate Hadoop and Spark setup using Docker on Windows

11m

Overview of Docker Compose Commands to manage Hadoop and Spark Lab

10m
Section 4: Setup Hadoop and Spark Single Node Cluster on AWS Cloud9 using Docker14 videos

Getting Started with AWS Cloud9

5m

Overview of EC2 Instance related to AWS Cloud9

2m

Warming up with AWS Cloud9 IDE

3m

Creating AWS Cloud9 Environment

7m

Review Operating System Details on AWS Cloud9

2m

Opening ports for AWS Cloud9 Instance

5m

Setup Docker Compose on AWS Cloud9 Instance

4m

Associating Elastic IPs to AWS Cloud9 Instance

7m

Increase EBS Volume Size of AWS Cloud9 Instance

7m

Clone GitHub Repository on AWS Cloud9 for the Course Material

3m

Review Docker Compose File to setup Hadoop and Spark Lab

6m

Overview of Docker Compose Commands to manage Hadoop and Spark Lab

10m

Start Hadoop and Spark Lab along with Jupyter Lab on Windows 11

13m

Validate Hadoop and Spark setup using Docker

11m
Section 5: Python Fundamentals7 videos

Introduction and Setting up Python

12m

Functions in Python

12m

Python Collections

16m

Basic Programming Constructs

21m

Map Reduce operations on Python Collections

36m

Setting up Data Sets for Basic IO Operations

7m

Basic IO operations and processing data using Collections

1h 24m
Section 6: Overview of Hadoop HDFS Commands13 videos

Getting help or usage

15m

Listing HDFS Files

19m

Copying files from HDFS to local

18m

Managing HDFS Directories

40m

Previewing Data in HDFS File

8m

Copying files from local to HDFS

41m

HDFS Block Size

18m

Getting HDFS Storage Usage

6m

Getting File Metadata

30m

HDFS Replication Factor

23m

Using HDFS Stat Commands

3m

HDFS File Permissions

23m

Overriding Properties

18m
Section 7: Apache Spark 2.x - Data processing - Getting Started11 videos

Introduction

3m

Review of Setup Steps for Spark Environment

24m

Spark Modules

18m

Apache Spark Official Documentation (Very Important)

36m

Using ITVersity labs

19m

Quick Review of Spark APIs

44m

Spark Data Structures - RDDs and Data Frames

1h 1m

Develop Simple Application

50m

Create Data Frames from Text Files

58m

Apache Spark - Framework

1h 30m

Create Data Frames from Hive Tables

19m
Section 8: Apache Spark using SQL - Getting Started11 videos

Getting Started - Overview

2m

Overview of Spark Documentation

7m

Launching and using Spark SQL CLI

10m

Running OS Commands using Spark SQL

11m

Understanding Spark Metastore Warehouse Directory

11m

Overview of Spark SQL Properties

32m

Managing Spark Metastore Tables using Spark SQL

4m

Retrieve Metadata of Spark Metastore Tables using Spark SQL Describe Command

7m

Managing Spark Metastore Databases using Spark SQL

33m

Role of Spark Metastore or Hive Metastore

12m

Exercise - Getting Started with Spark SQL

24m
Section 9: Apache Spark using SQL - Basic Transformations using Spark SQL11 videos

Basic Transformations using Spark SQL - Introduction

4m

Spark SQL - Overview

10m

Define Problem Statement

4m

Filtering Data using Spark SQL Where Clause

18m

Prepare Spark Metastore Tables for Basic Transformations using Spark SQL

13m

Projecting Data using Spark SQL Select Clause

11m

Joining Tables using Spark SQL - Outer

19m

Sorting Data using Order By in Spark SQL

12m

Aggregating Data using Group By in Spark SQL

39m

Conclusion - Final Solution for the problem statement using Spark SQL

6m

Joining Tables using Spark SQL - Inner

14m
Section 10: Apache Spark using SQL - Basic DDL and DML13 videos

Introduction to Basic DDL and DML in Spark SQL

5m

Adding Comments to Spark Metastore Tables using Spark SQL

6m

Loading Data from Local File System Into Tables using Spark SQL Load Statement

7m

Create Spark Metastore Tables using Spark SQL Create Statement

31m

Overview of Data Types used in Spark Metastore Tables

30m

Creating External Spark Metastore Tables using Spark SQL

6m

Loading Data from HDFS Folders Into Tables using Spark SQL Load Statement

21m

Difference between Managed and External Spark Metastore Tables

13m

Difference between Load with Append and Overwrite using Spark SQL Load Statement

8m

Truncating Spark Metastore Tables

4m

Drop Spark Metastore Tables and Databases using Spark SQL

7m

Overview of File Formats used in Spark Metastore Tables

26m

Exercise - Managed Spark Metastore Tables

13m
Section 11: Apache Spark using SQL - DML and Partitioning11 videos

Introduction to DML and Partitioning using Spark SQL on Spark Metastore Tables

6m

Introduction to Partitioning of Spark Metastore Tables using Spark SQL

2m

Difference between Load and Insert to get data into Spark Metastore Tables

7m

Creating Spark Metastore Tables using Parquet File Format

7m

Creating Spark Metastore Partitioned Tables using Spark SQL

8m

Inserting Data using Stage Table leveraging Spark SQL

13m

Adding Partitions to Spark Metastore Tables using Spark SQL

6m

Inserting Data into Spark Metastore Partitions using Spark SQL Insert Statement

5m

Exercise - Partitioned Tables using Spark SQL

6m

Loading Data into Spark Metastore Partitioned Tables using Spark SQL

30m

Using Dynamic Partition Mode while inserting into Spark Partitioned Tables

12m
Section 12: Apache Spark using SQL - Pre-defined Functions10 videos

Introduction - Overview of Spark SQL Pre-defined Functions

2m

Overview of Spark SQL Pre-defined Functions

4m

Validating Spark SQL Functions

14m

Overview of Numeric Functions in Spark SQL

13m

String Manipulation using Spark SQL Functions

31m

Data Type Conversion using Spark SQL

6m

Dealing with Nulls using Spark SQL

18m

Date Manipulation using Spark SQL Functions

39m

Using CASE and WHEN in Spark SQL Queries

21m

Query Example - Word Count using Spark SQL

19m
Section 13: Apache Spark SQL - Windowing Functions10 videos

Introduction to Windowing Functions in Spark SQL

2m

Prepare HR Database for Windowing Functions in Spark SQL

9m

Overview of Windowing Functions using Spark SQL

5m

Aggregations using Spark SQL Windowing Functions

26m

Getting first and last values using Spark SQL Windowing Functions

28m

Ranking using Spark SQL Windowing Functions - rank, dense rank and row number

33m

Using LEAD or LAG in Spark SQL Windowing Functions

35m

Order of execution of Spark SQL Queries

16m

Overview of Subqueries in Spark SQL

5m

Filtering Window Function Results using Spark SQL

8m
Section 14: Apache Spark using Python - Data Processing Overview8 videos

Starting Spark Context - pyspark

17m

Understanding airlines data

7m

Overview of Spark Read APIs

31m

Inferring Schema using Spark Data Frame APIs

23m

Overview of Data Frame APIs

17m

Previewing Airlines Data using Spark Data Frame APIs

19m

Overview of Functions on Spark Data Frames

12m

Overview of Spark Write APIs

26m
Section 15: Apache Spark using Python - Processing Column Data18 videos

Create Dummy Data Frame to explore Functions on Data Frame Columns

6m

Overview of Predefined Functions on Spark Data Frame Columns

11m

Categories of Predefined Functions used on Spark Data Frame Columns

4m

Common String Manipulation Functions for Spark Data Frame Columns

6m

Special Functions for Spark Data Frame Columns - col and lit

15m

Extracting Strings using substring from Spark Data Frame Columns

19m

Extracting Strings using split from Spark Data Frame Columns

17m

Padding Characters around Strings in Spark Data Frame Columns

13m

Trimming Characters from Strings in Spark Data Frame Columns

8m

Date and Time Manipulation Functions for Spark Data Frame Columns

5m

Date and Time Arithmetic on Spark Data Frame Columns

10m

Using Date and Time Trunc Functions on Spark Data Frame Columns

17m

Date and Time Extract Functions for Spark Data Frame Columns

7m

Using date format Function on Spark Data Frame Columns

9m

Using to date and to timestamp on Spark Data Frame Columns

14m

Using CASE and WHEN on Spark Data Frame Columns

12m

Dealing with Nulls in Spark Data Frame Columns

14m

Dealing with Unix Timestamp in Spark Data Frame Columns

10m
Section 16: Apache Spark using Python - Basic Transformations16 videos

Overview of Basic Transformations on Spark Data Frames

3m

Spark Data Frames for basic transformations

12m

Basic Filtering of Data or rows using where from Spark Data Frames

11m

Filtering Example using dates on Spark Data Frames

12m

Boolean Operators while filtering from Spark Data Frames

23m

Using IN Operator or isin Function while filtering from Spark Data Frames

13m

Using LIKE Operator or like Function while filtering from Spark Data Frames

7m

Using BETWEEN Operator while filtering from Spark Data Frames

11m

Dealing with Nulls while Filtering from Spark Data Frames

9m

Total Aggregations on Spark Data Frames

28m

Aggregate data using groupBy from Spark Data Frames

13m

Aggregate data using rollup on Spark Data Frames

9m

Aggregate data using cube on Spark Data Frames

11m

Solution - Problem 2 - Get Total Aggregations By FlightDate

11m

Solution - Problem 1 - Get Total Aggregations

18m

Overview of Sorting Spark Data Frames

33m
Section 17: Apache Spark using Python - Joining Data Sets14 videos

Prepare Datasets for Joining Spark Data Frames

9m

Problem Statements for Joining Spark Data Frames

2m

Overview of Joins on Spark Data Frames

1m

Analyze Datasets for Joining Spark Data Frames

22m

Using Inner Joins on Spark Data Frames

18m

Left or Right Outer Join on Spark Data Frames

24m

Solution - Get Flight Count Per US State using Spark Data Frame APIs

7m

Solution - Get Flight Count Per US Airport using Spark Data Frame APIs

6m

Solution - Get Dormant US Airports using Spark Data Frame APIs

6m

Solution - Get Count of Flights per Airport without master data

4m

Solution - Get Count of Flights without master data using Spark Data Frame APIs

6m

Solution - Get Origins without master data using Spark Data Frame APIs

7m

Solution - Get Daily Revenue using Spark Data Frame APIs

6m

Solution - Get Daily Revenue rolled up till Yearly using Spark Data Frame APIs

7m
Section 18: Apache Spark using Python - Spark Metastore11 videos

Exploring Spark Catalog

5m

Overview of APIs to deal with Spark Metastore

11m

Creating Spark Metastore Tables using catalog

23m

Inferring Schema while creating Spark Metastore Tables using Spark Catalog

12m

Define Schema for Spark Metastore Tables using StructType

19m

Read and Process data from Spark Metastore Tables using Data Frame APIs

8m

Inserting into Existing Spark Metastore Tables using Spark Data Frame APIs

16m

Create Spark Metastore Partitioned Tables using Data Frame APIs

21m

Saving as Spark Metastore Partitioned Table using Data Frame APIs

12m

Creating Temporary Views on top of Spark Data Frames

11m

Using Spark SQL against Temporary Views on Spark Data Frames

13m
Section 19: Getting Started with Semi Structured Data using Spark24 videos

Introduction to Getting Started with Semi Structured Data using Spark

3m

Overview of ARRAY Type in Spark Metastore Table

5m

Create Spark Metastore Table with Special Data Types

9m

Overview of MAP and STRUCT Type in Spark Metastore Table

9m

Insert Data into Spark Metastore Table with Special Type Columns

13m

Create Spark Data Frame with Special Data Types

4m

Create Spark Data Frame with Special Types using Python List

14m

Review Data in the JSON File with Special Data Types

6m

Setup JSON Data Set to explore Spark APIs on Special Data Type Columns

5m

Insert Spark Data Frame with Special Types into Spark Metastore Table

9m

Read JSON Data with Special Types into Spark Data Frame

10m

Flatten Array Fields in Spark Data Frames using explode and explode outer

7m

Concatenate Array Values into Delimited String using Spark APIs

6m

Get Size or Length of Array Type Columns in Spark Data Frame

15m

Convert Delimited Strings from Spark Data Frame Columns to Arrays

5m

Build Arrays from Flattened Rows of Spark Data Frame

7m

Setup Data Sets to Build Arrays using Spark

8m

Read JSON Data into Spark Data Frame and Review Aggregate Operations

7m

Getting Started with Spark Data Frames with Struct Columns

10m

Concatenate Struct Column Values in Spark Data Frame

4m

Filter Data on Struct Column Attributes in Spark Data Frame

7m

Create Spark Data Frame using Map Type Column

12m

Project Map Values as Columns using Spark Data Frame APIs

4m

Conclusion of Getting Started with Semi Structured Data using Spark

1m
Section 20: Process Semi Structured Data using Spark Data Frame APIs17 videos

Introduction to Process Semi Structured Data using Spark Data Frame APIs

6m

Setup JSON Data Sets in HDFS using HDFS Command

3m

Review the Data Sets to generate denormalized JSON Data using Spark

14m

Create Spark Data Frames using Data Frame APIs

6m

Generate Struct Field for Order Details using Spark

4m

Generate Array of Struct Field for Order Details using Spark

21m

Join Data Sets to generate denormalized JSON Data using Spark

7m

Join Orders and Order Items using Spark Data Frame APIs

12m

Denormalize Join Results using Spark Data Frame APIs

13m

Publish JSON Files for downstream applications

2m

Read Denormalized Data into Spark Data Frame

4m

Write Denormalized Customer Details to JSON Files using Spark

17m

Filter Denormalized Data Frame using Spark APIs

11m

Flatten Semi Structured Data or Denormalized Data using Spark

15m

Perform Aggregations on Denormalized Data Frame using Spark

19m

Conclusion of Processing Semi Structured Data using Spark Data Frame APIs

2m

Compute Monthly Customer Revenue using Spark on Denormalized Data

22m
Section 21: Apache Spark - Application Development Life Cycle15 videos

Setup Virtual Environment and Install Pyspark

12m

Passing Run Time Arguments

8m

Getting Started with Pycharm

12m

Accessing OS Environment Variables

5m

Getting Started with Spark

7m

Setup Sample Data

6m

Create Function for Spark Session

11m

Read data from files

16m

Validating Writing Data to Files

11m

Write data to files

9m

Process data using Spark APIs

19m

Productionizing the Code

5m

Setting up Data for Production Validation

18m

Detailed Validation of the Application

31m

Running the application using YARN

36m
Section 22: Spark Application Execution Life Cycle and Spark UI17 videos

Deploying and Monitoring Spark Applications - Introduction

4m

Setup EMR Cluster with Hadoop and Spark

8m

Overview of Types of Spark Cluster Managers

8m

Overall Capacity of Big Data Cluster with Hadoop and Spark

8m

Understanding YARN Capacity of an Enterprise Cluster

12m

Overview of Hadoop HDFS and YARN Setup on Multi-node Cluster

13m

Develop Word Count Application

26m

Review Deployment Process of Spark Application

1m

Overview of Spark Setup on top of Hadoop

12m

Setup Data Set for Word Count application

38m

Switch between Python Versions to run Spark Applications or launch Pyspark CLI

7m

Review Spark Configuration Properties at Run Time

14m

Overview of Spark Submit Command

14m

Switch between Pyspark Versions to run Spark Applications or launch Pyspark CLI

18m

Run Spark Application and review default executors

9m

Develop Shell Script to run Spark Application

9m

Overview of Spark History Server UI

14m
Section 23: Setup SSH Proxy to access Spark Application logs18 videos

Setup SSH Proxy to access Spark Application logs - Introduction

5m

Overview of Private and Public ips of servers in the cluster

17m

Overview of SSH Proxy

20m

Proxy using sshuttle on Mac or Linux

11m

Setup sshuttle on Mac or Linux

7m

Steps to setup SSH Proxy on Windows to access Spark Application Logs

3m

Accessing Spark Application logs via SSH Proxy using sshuttle on Mac or Linux

10m

Setup PuTTY and PuTTYgen on Windows

14m

Side effects of using SSH Proxy to access Spark Application Logs

4m

Quick Tour of PuTTY on Windows

10m

Configure Passwordless Login using PuTTYGen Keys on Windows

11m

Configure Tunnel to Gateway Node using PuTTY on Windows for SSH Proxy

5m

Run Spark Application on Gateway Node using PuTTY

10m

Setup Proxy on Windows and validate using Microsoft Edge browser

13m

Understanding Proxying Network Traffic overcoming Windows Caveats

15m

Overview of performing tasks related to Spark Applications using Mac

5m

Access Spark Application logs using SSH Proxy

13m

Update Hosts file for worker nodes using private ips

22m
Section 24: Deployment Modes of Spark Applications14 videos

Deployment Modes of Spark Applications - Introduction

3m

Launch Pyspark using local mode

31m

Default Execution Master Type for Spark Applications

37m

Overview of Spark CLI Commands such as Pyspark

29m

Running Spark Applications using Local Mode

34m

Overview of submitting spark application using cluster deployment mode

7m

Overview of submitting spark application using client deployment mode

10m

Review the default logging while submitting Spark Applications

10m

Accessing Local Files using Spark CLI or Spark Applications

32m

Submit Spark Application using client mode with log level info

29m

Changing Spark Application Log Level using custom log4j properties

39m

Submit Spark Application using cluster mode with log level info

31m

Submit Spark Applications using SPARK CONF DIR with custom properties files

45m

Submit Spark Applications using Properties File

28m
Section 25: Passing Application Properties Files and External Dependencies17 videos

Passing Application Properties Files and External Dependencies - Introduction

10m

Steps to pass application properties using JSON

21m

Setup Working Directory to pass application properties using JSON

3m

Explore APIs to process JSON Data using Pyspark

7m

Build the JSON with Application Properties

7m

Refactor the Spark Application Code to use properties from JSON

5m

Pass Application Properties to Spark Application using local files in client mod

23m

Pass Application Properties to Spark Application using local files in cluster mo

23m

Create required YAML File to externalize application properties

2m

Pass Application Properties to Spark Application using HDFS files

38m

Install PyYAML into specific folder and build zip

7m

Steps to pass external Python Libraries using pyfiles

5m

Refactor the Spark Application Code to use properties from YAML

2m

Explore APIs to process YAML Data using Pyspark

13m

Pass External Dependencies to Spark Application using local files in client mode

18m

Pass External Dependencies to Spark Apps using local files in cluster mode

17m

Pass External Dependencies to Spark Application using HDFS files

17m