title: Cloudera CDH on EC2
body: <p>I am an aws newbie, and I'm trying to run Hadoop on EC2 via Cloudera's AMI.  I installed the AMI, downloaded the cloudera-haddop-for-ec2-tools, and now I'm trying to configure </p>
  
  <pre><code>haddop-ec2-env.sh
  </code></pre>
  
  <p>It is asking for the following:</p>
  
  <pre><code>AWS_ACCOUNT_ID
  AWS_ACCESS_KEY_ID
  AWS_SECRET_ACCESS_KEY
  EC2_KEYDIR
  PRIVATE_KEY_PATH
  </code></pre>
  
  <p>when running:</p>
  
  <pre><code>./hadoop-ec2 launch-cluster my-cluster 10
  </code></pre>
  
  <p>i'm getting</p>
  
  <pre><code>AWS was not able to validate the provided access credentials
  </code></pre>
  
  <p>Firstly, I have the first 3 attributes for my own account.  This is a corporate account, and I received an email with the access key id and secret access key for my email.  Is it possible that my account doesn't have the proper permissions to do what is needed here.  Exactly why does this script need my credentials?  What does it need to do?</p>
  
  <p>Secondly, where is the EC2 key dir?  I've uploaded my key.pem file that amazon created for me, and hard coded that into the PRIVATE_KEY_PATH and chmod 400 on the .pem file.  Is that the correct key that this script needs?</p>
  
  <p>Any help is appreciated?</p>
  
  <p>Sam</p>