July 2017
Intermediate to advanced
796 pages
18h 55m
English
When your computation is done, it is better to stop your cluster to avoid additional cost. To stop your clusters, execute the following commands from your local machine:
$ SPARK_HOME/ec2/spark-ec2 --region=<ec2-region> stop <cluster-name>
For our case, it would be the following:
$ SPARK_HOME/ec2/spark-ec2 --region=eu-west-1 stop ec2-spark-cluster-1
To restart the cluster later on, execute the following command:
$ SPARK_HOME/ec2/spark-ec2 -i <key-file> --region=<ec2-region> start <cluster-name>
For our case, it will be something like the following:
$ SPARK_HOME/ec2/spark-ec2 --identity-file=/usr/local/key/-key-pair.pem --region=eu-west-1 start ec2-spark-cluster-1
Finally, to terminate ...
Read now
Unlock full access