Last active
October 1, 2015 02:14
-
-
Save brendancol/2edc09cacd5bff38fd7a to your computer and use it in GitHub Desktop.
When deploying Spark with spark-ec2 with --ebs-vol-size option, the mount location is wrong by default, this script: stops cluster, fixes mount location, reformats hdfs and restarts.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
~/persistent-hdfs/sbin/stop-all.sh | |
sed -i 's#vol/persistent-hdfs#vol0/persistent-hdfs#g' ~/persistent-hdfs/conf/core-site.xml | |
~/spark-ec2/copy-dir.sh ~/persistent-hdfs/conf/core-site.xml | |
~/persistent-hdfs/bin/hadoop namenode -format -y | |
~/persistent-hdfs/sbin/start-all.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment