Question: Consider a classical MapReduce application that counts the total number of occurrences of words in a given text. For example, look at WordCount application WordCount.java.
Consider a classical MapReduce application that counts the total number of occurrences of words in a given text. For example, look at WordCount application WordCount.java.
Assume the following classification of words depending on the length of each word.
very short: length
short: length
medium: length
long: length
X long: length
XX long: length
Extend Java code of the application such that it counts in a given text the total number of words in each category. For example, the distribution of words in a text that consists of words could be the following.
X short: words
short: words
medium: words
long: words
X long: words
XX long: words
Save your solution in a file solutionjava.
When ready, compile, create jar file, and process your application. To test your application, you can use a file grep.txt included. Display the results created by the application. When finished, Copy and Paste the messages from a Terminal screen into a file solutionpdf
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
