Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions