PLEASE COMPLETE IN PYTHON (do not copy the answer that is already there from someone else it does not contain the spark application to answer the below part) - 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: 417653
PLEASE COMPLETE IN PYTHON (do not copy the answer that is already there from someone else it does not contain the spark application to answer the below part) - 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:
417653
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images