amplab/shark — pull request #342 by rnowling (2014-06-25 19:46:35+00:00)
Title: Add support to clear-buffer-cache.py for checking SPARK_HOME for slaves

clear-buffer-cache.py assumes the slaves file is located under /root/spark-ec2/slaves . This is not consistent with the Spark setup guide for custom deployments.

I added the ability to find the slaves file relative to the SPARK_HOME environmental variable, if set. If the slaves file cannot be found in either location, an error is raised.