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.
- example : java Zipdownload "http://s3.amazonaws.com/brightfuture/mydata.csv.gz"
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.