SPARK SCALA – CREATE DATAFRAME

Spark DataFrame is a distributed collection of data organized into named columns. It is conceptually equivalent to a table in a relational database or a data frame in R/Python, but with richer optimizations under the hood. DataFrames can be constructed from a wide array of sources such as structured data Read more…

Tutorial-4 Spark RDD Joins

In this article , we are going to discuss different joins like inner,left,right,cartesian of RDD. Inner Join:It returns the matching records or matching keys from both RDD. Let’s say one RDD (K,V1) and other RDD contains (K,V2) then inner join between two RDD return (K,(V1,V2)). Q-1 We have one dataset Read more…

Tutorial-2 Spark MapPartitions, Filter

Here we are going to discuss mapPartitions ,mapPartitionsWithIndex and filter operation. (a) MapPartitions: This transformation is similar to map,but runs separately on each partition (block) of the RDD. mapPartitions() can be used as an alternative to map() and foreach(). Q-1 How to iterate each partitions using mapPartitions transformation and convert each element Read more…

Insert math as
Block
Inline
Additional settings
Formula color
Text color
#333333
Type math using LaTeX
Preview
\({}\)
Nothing to preview
Insert