Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support up to 8 EBS volumes. #66

Merged
merged 2 commits into from
Sep 4, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 13 additions & 9 deletions setup-slave.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,20 @@ function setup_ebs_volume {
fi
}

# Format and mount EBS volume (/dev/sd[v, w, x, y, z]) as /vol[x] if the device exists
setup_ebs_volume /dev/sdv /vol0
setup_ebs_volume /dev/sdw /vol1
setup_ebs_volume /dev/sdx /vol2
setup_ebs_volume /dev/sdy /vol3
setup_ebs_volume /dev/sdz /vol4
# Format and mount EBS volume (/dev/sd[s, t, u, v, w, x, y, z]) as /vol[x] if the device exists
setup_ebs_volume /dev/sds /vol0
setup_ebs_volume /dev/sdt /vol1
setup_ebs_volume /dev/sdu /vol2
setup_ebs_volume /dev/sdv /vol3
setup_ebs_volume /dev/sdw /vol4
setup_ebs_volume /dev/sdx /vol5
setup_ebs_volume /dev/sdy /vol6
setup_ebs_volume /dev/sdz /vol7

# Alias vol to vol0 for backward compatibility
if [[ -e /vol0 && ! -e /vol ]]; then
ln -s /vol0 /vol
# Alias vol to vol3 for backward compatibility: the old spark-ec2 script supports only attaching
# one EBS volume at /dev/sdv.
if [[ -e /vol3 && ! -e /vol ]]; then
ln -s /vol3 /vol
fi

# Make data dirs writable by non-root users, such as CDH's hadoop user
Expand Down