留学生作业代写do not hesitate to contact me!
WeChat:lovexc60
CSE 511 – Data Processing at Scale
Project Hotspot Analysis
Requirement
In this phase, you are required to do spatial hot spot analysis. In particular, you need to complete two different hot spot analysis tasks.
Hot zone analysis
This task will need to perform a range join operation on a rectangle datasets and a point dataset. For each rectangle, the number of points located within the rectangle will be obtained.
The hotter rectangle means that it includes more points. So this task is to calculate the hotness of all the rectangles.
Hot cell analysis
This task will focus on applying spatial statistics to spatio-temporal big data in order to identify statistically significant spatial hot spots using Apache Spark. The topic of this task is from ACM SIGSPATIAL GISCUP 2016.
The Problem Definition page is here: http://sigspatial2016.sigspatial.org/giscup2016/problem
The Submit Format page is here: http://sigspatial2016.sigspatial.org/giscup2016/submit
Special requirement (different from GIS CUP)
As stated in the Problem Definition page, in this task, you are asked to implement a Spark program to calculate the Getis-Ord statistic of NYC Taxi Trip datasets. We call it “Hot cell analysis”
To reduce the computation power need, we made the following changes:
1. The input will be a monthly taxi trip dataset from 2009 – 2012. For example,
“yellow_tripdata_2009-01_point.csv”, “yellow_tripdata_2010-02_point.csv”.
2. Each cell unit size is 0.01 * 0.01 in terms of latitude and longitude degrees.
3. You should use 1 day as the Time Step size. The first day of a month is step 1. Every month has 31 days.
4. You only need to consider Pick-up Location.
5. We don’t use Jaccard similarity to check your answer. However, you don’t need to worry about how to decide the cell coordinates because the code template generated cell coordinates. You just need to write the rest of the task.
Coding template specification
Input parameters
1. Output path (Mandatory)
2. Task name: “hotzoneanalysis” or “hotcellanalysis”
3. Task parameters: (1) Hot zone (2 parameters): nyc taxi data path, zone path(2) Hot cell(1 parameter): nyc taxi data path
Example
Note:
1. The number/order of tasks do not matter.
2. But, the first 7 of our final test cases will be hot zone analysis, the last 8 will be hot cell analysis.
Input data format
The main function/entrace is “cse512.Entrance” scala file.
1. Point data: the input point dataset is the pickup point of New York Taxi trip datasets. The data format of this phase is the original format of NYC taxi trip which is different from Phase 2. But the coding template already parsed it for you. Find the data from our S3 bucket: Data Systems Lab S3 Bucket
2. Zone data (only for hot zone analysis): at “src/resources/zone-hotzone” of the template
Hot zone analysis
The input point data can be any small subset of NYC taxi dataset.
Hot cell analysis
The input point data is a monthly NYC taxi trip dataset (2009-2012) like
“yellow_tripdata_2009-01_point.csv”
Output data format
Hot zone analysis
All zones with their count, sorted by “rectangle” string in an ascending order.
Example answers
An example input and answer are put in “testcase” folder of the coding template
Where you need to change
DO NOT DELETE any existing code in the coding template unless you see this “YOU NEED TO
CHANGE THIS PART”
Hot zone analysis
In the code template,
1. You need to change “HotzoneAnalysis.scala and HotzoneUtils.scala”.
2. The coding template has loaded the data and wrote the first step, range join query, for you. Please finish the rest of the task.
3. The output DataFrame should be sorted by you according to “rectangle” string.