[
https://issues.apache.org/jira/browse/HADOOP-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tom White resolved HADOOP-2709.
-------------------------------
Resolution: Invalid
The -k (lowercase) flag is to specify the name of the keypair as created by the
ec2-add-keypair command during set up (see the Getting Started Guide
http://docs.amazonwebservices.com/AWSEC2/2007-08-29/GettingStartedGuide/).
The -K (uppercase) flag is to specify the path to the private key on the local
filesystem. It is not used by the scripts since it is assumed that the
EC2_PRIVATE_KEY environment variable has been set (as suggested in the Getting
Started Guide).
> Fix trivial typeos in EC2 scripts
> ---------------------------------
>
> Key: HADOOP-2709
> URL: https://issues.apache.org/jira/browse/HADOOP-2709
> Project: Hadoop Core
> Issue Type: Bug
> Components: contrib/ec2
> Affects Versions: 0.15.3
> Reporter: Jason
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> The ec2-run-instances needs a capital K not a lower case k flag.
> Index: src/contrib/ec2/bin/create-hadoop-image
> ===================================================================
> --- src/contrib/ec2/bin/create-hadoop-image (revision 608611)
> +++ src/contrib/ec2/bin/create-hadoop-image (working copy)
> @@ -11,7 +11,7 @@
> AMI_IMAGE=`ec2-describe-images -a | grep fedora-core4-base | awk '{print
> $2}'`
> echo "Starting a fedora core base AMI with ID $AMI_IMAGE."
> -OUTPUT=`ec2-run-instances $AMI_IMAGE -k $KEY_NAME`
> +OUTPUT=`ec2-run-instances $AMI_IMAGE -K $KEY_NAME`
> BOOTING_INSTANCE=`echo $OUTPUT | awk '{print $6}'`
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.