Difference between revisions of "BigDataHW1"

From VistrailsWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:


* Install Hadoop and HDFS on your laptop
* Install Hadoop and HDFS on your laptop
* Copy to HDFS the hurricane center data that in the files located at: http://vgc.poly.edu/~juliana/courses/cs9223/Homework/HW1
* The hurricane center data comes in two files:
* File1 (''hurricane-center-addresses.csv'') contains the addresses for hurricane centers, while File2 ("hurricane-center-coordinates.csv") contains their coordinates.
** File1 (http://vgc.poly.edu/~juliana/courses/cs9223/Homework/HW1/hurricane-center-addresses.csv) contains the addresses for hurricane centers
** File2 ("http://vgc.poly.edu/~juliana/courses/cs9223/Homework/HW1/hurricane-center-coordinates.csv") contains the coordinates for the centers
* Write and run MapReduce programs that:  
* Write and run MapReduce programs that:  


Line 17: Line 18:
c) Compute the natural join between File1 and File2, i.e., create a new file that contains both the addresses and coordinates for the hurricane centers
c) Compute the natural join between File1 and File2, i.e., create a new file that contains both the addresses and coordinates for the hurricane centers


* You should submit your java program source and binary (named hw1.java and hw1.jar). The program should accept as an argument the question letter (a,b, and c) and output the answer for that question.
* You should submit your java program source and binary (named hw1.java and hw1.jar). The program should accept as an argument the question letter (a,b, and c) and output the answer for that question. Your program should read the files from their http location.

Latest revision as of 13:34, 2 October 2012

cs9223 - Massive Data Analysis - Homework Assignment 1

Hands-on experience with Hadoop/MapReduce


As a good citizen of NYC, you want to be prepared for potential disaster scenarios and you want to learn about hurricane evacuation centers in NYC (https://www.google.com/fusiontables/DataSource?docid=1BiOUN5JP94FT5pV9UNCQIvFloHqS_NTboOTvVD8). You will:

a) Select the tuples from File1 where zipcode<10030

b) Eliminate duplicates from File1

c) Compute the natural join between File1 and File2, i.e., create a new file that contains both the addresses and coordinates for the hurricane centers

  • You should submit your java program source and binary (named hw1.java and hw1.jar). The program should accept as an argument the question letter (a,b, and c) and output the answer for that question. Your program should read the files from their http location.