hw4.pdf - INF 551 \u2013 Spring 2017 Homework#4 DyanmoDB Hadoop Due April 14 100 points 1[DyanmoDB 40 points Write two Python scripts The first one

hw4.pdf - INF 551 – Spring 2017 Homework#4 DyanmoDB...

This preview shows page 1 - 2 out of 2 pages.

INF 551 Spring 2017 Homework #4: DyanmoDB & Hadoop Due: April 14 100 points 1. [DyanmoDB , 40 points] Write two Python scripts. The first one “load.py” creates a DynamoDB table and loads the first 1,000 records in (“data” section of) “lax.json” (the same as that in homework #2 and #3). The second one “search.py” performs similar search function as in homework #3. [30 points] load.py : Your DynamoDB should use the record id (the first column of the record: 1, 2, etc.) as the key. It should store sufficient attributes for each record to answer the question in the search.py script below. It should use batch_writer() of boto3 to load the data in batch for efficiency. [10 points] search.py : It takes two keywords (that specify the search condition) as the input, and outputs the total number of passengers in the records that satisfy the condition. The first keyword is either “Departure” or “Arrival”; the second is a four -digit year, e.g., 2006.
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Fall '14
  • Hadoop, Erdős–Woods number

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes