Question: Using Spark to work with Dataset and use the dataset available at http://bit.ly/1Aoywaq. Using the dataset complete the following tasks. 1. Please create a raw

Using Spark to work with Dataset and use the dataset available at http://bit.ly/1Aoywaq.

Using the dataset complete the following tasks.

1. Please create a raw RDD for all the CSV files

2. Please remove all headers from the RDD

3. Please convert each record in the RDD to a case class record

4. Please sample 20 records from the RDD.

Please provide the code and screen shot.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!