Question: PLEASE COMPLETE IN PYTHON - Thank you!!!! Write a spark application that reads in the names of two files from STDIN and outputs the number
PLEASE COMPLETE IN PYTHON - Thank you!!!!
Write a spark application that reads in the names of two files from STDIN and outputs the number of strings they have in common to STDOUT. Each file contains 1 million strings of 32 characters, 1 per line. Note that the same value appears in both files 100 million times. Please write the spark application using the reduceByKey() transformation to count the number of occurrences of each value and filter out the values that occur less than 100 million times.
Sample input: strings_1.txt strings_2.txt
Sample output: 418239
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
