UMBC – CSEE Department Data Science Program Spring 2022 DATA 603 – Big Data Platforms Homework #6 – Spark Programming
UMBC – CSEE Department Data Science Program Spring 2022 DATA 603 – Big Data Platforms Homework #6 – Spark Programming Questions: (1) [10 points] Simulate the Aggregate() example in the slides, with initial value of (1,0), What would be the expected results? a. List is [1, 2, 3, 4] b. Partition is 2 c. Initial zeroValue is (1, 0) (2) [20 points] Write a Spark program that reads your browser history file, then displays the top 5 websites you visited in the last week? (3) [20 points] Implement a spark program that performs the following: a. Reads the posted text file for a book named “Applied Data S” b. Read the text file into an RDD, and then perform actions and transformations on the RDD c. Displays the most used 5 words of length greater than 5 characters in the file (ensure you result is not case sensitive, so the word “Data” and “data” are the same and should be counted two of the same word) d. The output should be like this: The most used words in the Applied Data Science textbook are: word1 occurred n1 times
Written for
- Institution
- UMBC – CSEE Department Data Science Program Spring
- Course
- UMBC – CSEE Department Data Science Program Spring
Document information
- Uploaded on
- April 13, 2023
- Number of pages
- 4
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
umbc – csee department data science program spring 2022 data 603 – big data platforms homework 6 – spark programming