Question: Q1. Create a Hadoop Java program [should include Mapper , Reducer and the main classes] which accepts a text file with 50 names and does

Q1. Create a Hadoop Java program [should include Mapper, Reducer and the main classes] which accepts a text file with 50 names and does the following: Create the program to split the names into firstname and lastname Remove the lastname in the next sub-program Now we have the list of firstnames.

Call the Reduce-Map function to yield array elements, for example, it looks like this: [ ["Smith", "John Smith"], ["Steve"], "Steve Rodgers"] After this operation, it only remains to strip off the sorting key to get the original list, and then to reconstitute the list You may choose any other algorithm, data structures to produce the output result.

Challenge: The challenge is to get the full names printed in order of the firstname. One way is to start by annotating the array with the sorting key. The sorting key is just the second element of the array, which is yielded by splitting the full name.

Problem: The problem is that we cannot simply sort the list by string because we need to sort by firstname. First, we need to split up the names using the split function on strings

Q2. Describe in detail the inter-process communication mechanisms you are going to use in the application.

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!