Access files in s3n://elasticmapreduce/samples/wordcount/input
amazon-s3, amazon-web-services
Solution
The files in s3n://elasticmapreduce/samples/wordcount/input are public, and made available as input by Amazon to the sample word count Hadoop program. The best way to fetch them is to
- Start a new Amazon Elastic MapReduce Job Flow (it doesn't matter which one) from the Amazon Web Services console, and make sure that you keep the the job alive with the Keep Alive option
- Once the EC2 machines have started, find the instances on EC2 from the Amazon Web Services console
- ssh into one of the running EC2 instances, using the hadoop user, for example `ssh -i keypair.pem hadoop@ec2-IPADDRESS.compute-1.amazonaws.com`
- Obtain the files you need, using `hadoop dfs -copyToLocal s3://elasticmapreduce/samples/wordcount/input/0002 .`
- sftp the files to your local system
Problem
How I can I access the file sitting in the following folder of S3 which is own by someone else s3n://elasticmapreduce/samples/wordcount/input