Running EMR example, getting 301 Error
<p>I am trying to run example hadoop-streaming command:</p>

<pre><code>hadoop-streaming -files streamingCode/wordSplitter.py \
-mapper wordSplitter.py \
-input s3://elasticmapreduce/samples/wordcount/input \
-output streamingCode/wordCountOut \
-reducer aggregate
</code></pre>

<p>but I keep getting this error:</p>

<pre><code>Exception in thread "main" com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.services.s3.model.AmazonS3Exception: Moved Permanently (Service: Amazon S3; Status Code: 301; Error Code: 301 Moved Permanently; Request ID: 98038E504E150CEC), S3 Extended Request ID: IW1x5otBSepAnPgW/RKELCUI9dhADQvrXqU2Ase1CLIa0SWDFnBbTscXihrvHvNm2ZRxjjSJZ1Q=
</code></pre>

<p>I think that it is because my cluster is in <code>us-west-2</code>, but i can't figure out how to properly format the <code>s3</code> url (or perhaps that is not the issue at all). </p>

<p>Edit: After changing it to the following url:</p>

<pre><code>s3://s3-us-west-2.amazonaws.com/elasticmapreduce/samples/wordcount/input
</code></pre>

<p>I am now getting following error:</p>

<pre><code>Exception in thread "main" com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.services.s3.model.AmazonS3
Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: BC8DB415C780DF84), 
           S3 Extended Request ID: sx8W/+gvND2ssqQce9ZQsZTiqxmSJYZs8OiXgrjwL3dm0JRPaC7ceHor+yrHsPuKTjM2LUwkRAw=
</code></pre>

<p>Edit: So I have confirmed that the error is indeed because my cluster is in <code>us-west-2</code>, I have created a cluster in <code>us-east-1</code> and it works properly. So, the question is how do I access a s3 bucket from another region? Is this even possible?</p>