Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
WHIRR-101. Hadoop on EC2 does not use the /mnt partition.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/incubator/whirr/trunk@1004106 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
tomwhite committed Oct 4, 2010
1 parent 62b91c8 commit 496def9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -34,6 +34,8 @@ Trunk (unreleased changes)

WHIRR-108. Fix checkstyle and rat violations. (tomwhite)

WHIRR-101. Hadoop on EC2 does not use the /mnt partition. (tomwhite)

Release 0.1.0 - 2010-09-02

INCOMPATIBLE CHANGES
Expand Down
10 changes: 8 additions & 2 deletions scripts/apache/hadoop/install
Expand Up @@ -147,8 +147,14 @@ function make_hadoop_dirs {

# Configure Hadoop by setting up disks and site file
function configure_hadoop() {

MOUNT=/data
case $CLOUD_PROVIDER in
ec2)
MOUNT=/mnt
;;
*)
MOUNT=/data
;;
esac
FIRST_MOUNT=$MOUNT
DFS_NAME_DIR=$MOUNT/hadoop/hdfs/name
FS_CHECKPOINT_DIR=$MOUNT/hadoop/hdfs/secondary
Expand Down
10 changes: 8 additions & 2 deletions scripts/cloudera/cdh/install
Expand Up @@ -144,8 +144,14 @@ function make_hadoop_dirs {

# Configure Hadoop by setting up disks and site file
function configure_hadoop() {

MOUNT=/data
case $CLOUD_PROVIDER in
ec2)
MOUNT=/mnt
;;
*)
MOUNT=/data
;;
esac
FIRST_MOUNT=$MOUNT
DFS_NAME_DIR=$MOUNT/hadoop/hdfs/name
FS_CHECKPOINT_DIR=$MOUNT/hadoop/hdfs/secondary
Expand Down
Expand Up @@ -131,10 +131,11 @@ public HadoopCluster launchCluster(ClusterSpec clusterSpec) throws IOException {
// Launch slaves (DN and TT)
Payload slaveBootScript = newStringPayload(runUrls(clusterSpec.getRunUrlBase(),
"sun/java/install",
String.format("%s dn,tt -n %s -j %s",
String.format("%s dn,tt -n %s -j %s -c %s",
hadoopInstallRunUrl,
namenodePublicAddress.getHostName(),
jobtrackerPublicAddress.getHostName())));
jobtrackerPublicAddress.getHostName(),
clusterSpec.getProvider())));

TemplateBuilder slaveTemplateBuilder = computeService.templateBuilder()
.options(runScript(slaveBootScript)
Expand Down

0 comments on commit 496def9

Please sign in to comment.