Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 927 Bytes

File metadata and controls

8 lines (6 loc) · 927 Bytes

LA-crime-data-analysis-using-Pig

In this project, I used sqoop to import crime data happened in 2016 from MySql to HDFS. The file import.sh contains the sqoop code. (I have changed the real username and password of the server for safety.)

pig_script.pig is the file of Pig Latin code. Before analyzing, I extracted the street name from address column and converted DateTime to month, day, week and daypart. After that, I created three reports which show:

    1. The street has the highest total count of crimes for each month;
    1. The street has the highest number of the unique crime for each month;
    1. The crime with the most MALE victims for each month.