|
@@ -40,13 +40,13 @@ PRIVATE_KEY_PATH=`echo "$EC2_KEYDIR"/"id_rsa-$KEY_NAME"`
|
|
|
SSH_OPTS=`echo -i "$PRIVATE_KEY_PATH" -o StrictHostKeyChecking=no -o ServerAliveInterval=30`
|
|
|
|
|
|
# The version of Hadoop to use.
|
|
|
-HADOOP_VERSION=0.17.0
|
|
|
+HADOOP_VERSION=0.19.0
|
|
|
|
|
|
# The Amazon S3 bucket where the Hadoop AMI is stored.
|
|
|
# The default value is for public images, so can be left if you are using running a public image.
|
|
|
# Change this value only if you are creating your own (private) AMI
|
|
|
# so you can store it in a bucket you own.
|
|
|
-S3_BUCKET=hadoop-ec2-images
|
|
|
+S3_BUCKET=hadoop-images
|
|
|
|
|
|
# Enable public access to JobTracker and TaskTracker web interfaces
|
|
|
ENABLE_WEB_PORTS=true
|
|
@@ -58,6 +58,8 @@ USER_DATA_FILE=hadoop-ec2-init-remote.sh
|
|
|
INSTANCE_TYPE="m1.small"
|
|
|
#INSTANCE_TYPE="m1.large"
|
|
|
#INSTANCE_TYPE="m1.xlarge"
|
|
|
+#INSTANCE_TYPE="c1.medium"
|
|
|
+#INSTANCE_TYPE="c1.xlarge"
|
|
|
|
|
|
# The EC2 group master name. CLUSTER is set by calling scripts
|
|
|
CLUSTER_MASTER=$CLUSTER-master
|
|
@@ -72,16 +74,28 @@ MASTER_ZONE_PATH=~/.hadooop-zone-$CLUSTER_MASTER
|
|
|
#
|
|
|
|
|
|
# The version number of the installed JDK.
|
|
|
-JAVA_VERSION=1.6.0_05
|
|
|
+JAVA_VERSION=1.6.0_07
|
|
|
|
|
|
# SUPPORTED_ARCHITECTURES = ['i386', 'x86_64']
|
|
|
# The download URL for the Sun JDK. Visit http://java.sun.com/javase/downloads/index.jsp and get the URL for the "Linux self-extracting file".
|
|
|
-if [ "$INSTANCE_TYPE" == "m1.small" ]; then
|
|
|
+if [ "$INSTANCE_TYPE" == "m1.small" -o "$INSTANCE_TYPE" == "c1.medium" ]; then
|
|
|
ARCH='i386'
|
|
|
- BASE_AMI_IMAGE="ami-f51aff9c" # ec2-public-images/fedora-8-i386-base-v1.06.manifest.xml
|
|
|
- JAVA_BINARY_URL=
|
|
|
+ BASE_AMI_IMAGE="ami-2b5fba42" # ec2-public-images/fedora-8-i386-base-v1.07.manifest.xml
|
|
|
+ JAVA_BINARY_URL=''
|
|
|
else
|
|
|
ARCH='x86_64'
|
|
|
- BASE_AMI_IMAGE="ami-f21aff9b" # ec2-public-images/fedora-8-x86_64-base-v1.06.manifest.xml
|
|
|
- JAVA_BINARY_URL=
|
|
|
+ BASE_AMI_IMAGE="ami-2a5fba43" # ec2-public-images/fedora-8-x86_64-base-v1.07.manifest.xml
|
|
|
+ JAVA_BINARY_URL=''
|
|
|
+fi
|
|
|
+
|
|
|
+if [ "$INSTANCE_TYPE" == "c1.medium" ]; then
|
|
|
+ AMI_KERNEL=aki-9b00e5f2 # ec2-public-images/vmlinuz-2.6.18-xenU-ec2-v1.0.i386.aki.manifest.xml
|
|
|
+fi
|
|
|
+
|
|
|
+if [ "$INSTANCE_TYPE" == "c1.xlarge" ]; then
|
|
|
+ AMI_KERNEL=aki-9800e5f1 # ec2-public-images/vmlinuz-2.6.18-xenU-ec2-v1.0.x86_64.aki.manifest.xml
|
|
|
+fi
|
|
|
+
|
|
|
+if [ "$AMI_KERNEL" != "" ]; then
|
|
|
+ KERNEL_ARG="--kernel ${AMI_KERNEL}"
|
|
|
fi
|