Skip to content

Java program to download a .gz file from a AWS s3 bucket, unzip the file, read the csv and perform various operations on the CSV data

Notifications You must be signed in to change notification settings

parvez99/s3zipdownload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

s3zipdownload

Java program to download a zipped (.gz) file from an AWS S3 bucket, unzip the file, read the csv and perform the following operations on the CSV data

  • count all the users

  • count the number of devices with resolution 640*960

  • total amount spent by all users and return the ID of the first user that joined the organization

  • The program is written in Java.(JAVA 7) Install java 7 and run the program from command prompt

The program accepts one command line parameter as the address to the S3 bucket.

mydata.csv.gz is a template file that I have stored in my AWS S3 bucket which you can use for practice purposes

Note: I have not performed complete error handling which I would add later.

About

Java program to download a .gz file from a AWS s3 bucket, unzip the file, read the csv and perform various operations on the CSV data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published