
This video provides an overview of the entire course.
In this video, we will use Spark transformations to defer computations to a later time.
• Understand spark DAG creation
• Execute DAG by issuing action
• Defer decision about starting job until the last possible moment
In this video, we will learn how to avoid transformations.
• Understand groupBy API
• Use cache() function
• Avoid skewed partitions
In this video, we will using reduce and reduceByKey to calculate results.
• Understand reduce behavior
• Use reduce() function
• Use reduceByKey() function
In this video, we will understand what an action can be in Spark.
• Get a walkthrough of all the actions
• Perform tests
In this video, we reuse the same RDD for different actions.
• Minimize execution time by reuse of RDD
• Introduce caching
• Perform tests
In this video, we will delve into Spark RDDs parent/child chain.
• Learn how to extend RDD
• Chain the new RDD with a parent
• Test our custom RDD
In this video, we will use RDD in an immutable way.
• Understand DAG immutability
• Create two leaves from one root RDD
• Examine results from both leaves
In this video, we will use DataFrame operations to transform the RDD.
• Understand DataFrame immutability
• Create two leaves from one root DataFrame
• Add a new column by issuing transformation
In this video, we will learn about immutability in the high-concurrent environment.
• Understand cons of mutable collections
• Create two threads that simultaneously modify mutable collection
• Understand the reasoning about a concurrent program
In this video, we will use Dataset API in the immutable way.
• Understand dataset immutability
• Create two leaves from one root dataset
• Add new columns by issuing transformation
In this video, we will learn to detect a shuffle in processing.
• Load randomly partitioned data
• Issue re-partition using meaningful partition key
• Understand that shuffle occurs by explaining query
In this video, we will test operations that cause shuffle in Apache Spark.
• Use join for two DataFrames
• Use two DataFrames that are partitioned differently
• Test join that causes shuffle
In this video, we will change the design of jobs with wide dependencies.
• Re-partition dataFrames using common partition key
• Understand join with pre-partitioned data
• Understand why we avoided shuffle
In this video, we will use keyBy() operation to reduce shuffle.
• Load randomly partitioner data
• Learn to pre-partition data in a meaningful way
• Leverage keyBy() function
In this video, we will use a custom partitioner to reduce shuffle.
• Implement custom partitioner
• Use partitioner with partitionBy method on Spark
• Validate that our data was partitioned properly
In this video, we will learn to save data in plain text.
• Load plain text data
• Test your data
In this video, we will learn to save data in plain text.
• Load plain text data
• Test your data
In this video, we will learn about tabular formats.
• Load CSV data
• Test your data
In this video, we will learn to use Avro with Spark.
• Understand how to save data in an Avro
• Load Avro data
• Test your data
In this video, we will learn to use columnar formats like Parquet.
• Learn how to save data in Parquet
• Load Parquet data
• Test your data
In this video, we will learn the available transformations on key/value pairs.
• Use countByKey()
• Examine your data
In this video, we will learn to use aggregateByKey instead of groupBy().
• Understand why we should not use groupByKey
• Learn what aggregateByKey gives us
• Implement logic using aggregateByKey
In this video, we will learn to use Actions on Key/Value pairsUsing Accumulators.
• Examine actions on K/V pairs
• Use collect
• Examine output for K/V RDD
In this video, we will look at the available partitioners on key/value data.
• Examine HashPartitioner
• Examine RangePartitioner
• Test your data
In this video, we will learn to implement custom partitioner.
• Learn to implement range partitioning
• Test our partitioner
In this video, we will be creating components with logic. Then we will perform unit testing of the components and lastly we will use case class from model.
• Create component with logic
• Perform unit testing of the component
• Use case class from model
In this video, we will acquire skills to perform integration testing using SparkSession.
• Leverage SparkSession to integration testing
• Use Unit tested component
This video will take you through mocking data sources using partial functions.
• Create spark component that read from Hive
• Mocking component
• Test mocked component
In this video, we will be using ScalaCheck for property-based testing.
• Apply property based testing
• Create property based test
In the last video of the section, we will learn to apply the test in different versions of spark.
• Resisting component to work with Spark pre-2.x
• Mock testing pre-2.x
• RDD mock testing
In this video, we will learn to create a graph from datasource.
• Create loader component
• Revisit graph file format
• Load Spark graph from file
In this video, we will learn to use Vertex API.
• Construct graph Using Vertex
• Use Vertex
• Leverage Vertex transformations
In this video, we will learn to use Edge API.
• Construct graph using Edge
• Use Edge
• Leverage Edge transformations
In this video, we will learn to calculate degree of Vertex.
• Calculate degree
• In-Degree
• Out-Degree
In this video, we will learn to calculate Page Rank.
• Load data about users
• Load data about followers
• Use PageRank to calculate rank of users
Apache Spark has been around for quite some time, but do you really know how to get the most out of Spark? This course aims at giving you new possibilities; you will explore many aspects of Spark, some you may have never heard of and some you never knew existed.
In this course you'll learn to implement some practical and proven techniques to improve particular aspects of programming and administration in Apache Spark. You will explore 7 sections that will address different aspects of Spark via 5 specific techniques with clear instructions on how to carry out different Apache Spark tasks with hands-on experience. The techniques are demonstrated using practical examples and best practices.
By the end of this course, you will have learned some exciting tips, best practices, and techniques with Apache Spark. You will be able to perform tasks and get the best data out of your databases much faster and with ease.
About the Author
Tomasz Lelek is a Software Engineer, programming mostly in Java and Scala. He is a fan of microservice architectures and functional programming. He dedicates considerable time and effort to getting better every day. He is passionate about nearly everything associated with software development, and believes that we should always try to consider different solutions and approaches before solving a problem. Recently he was a speaker at conferences in Poland -, Confitura and JDD (Java Developers Day), and also at Krakow Scala User Group. He has also conducted a live coding session at Geecon Conference.
He is a co-founder initlearn an e-learning platform that was built with the Java language.