Skip to content

Conversation

@j-martin
Copy link

Will list the EC2 instances before detroying the cluster.
This was added because it can be scary to destroy EC2
instances without knowing which one will be impacted.

Will list the EC2 instances before detroying the cluster.
This was added because it can be scary to destroy EC2
instances without knowing which one will be impacted.
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@mateiz
Copy link
Contributor

mateiz commented Mar 30, 2014

Jenkins, test this please

@AmplabJenkins
Copy link

Merged build triggered. Build is starting -or- tests failed to complete.

@AmplabJenkins
Copy link

Merged build started. Build is starting -or- tests failed to complete.

@AmplabJenkins
Copy link

Merged build finished. All automated tests passed.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13582/

ec2/spark_ec2.py Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor - but it might be slightly nicer to write this using string interpolation and also just using two different print statements instead of putting a newline directly in there (since you'll get python's system-dependent line delimiter).

print "Are you sure you want to destroy the cluster %s?" % cluster_name
print "The following instances will be terminated:"

@pwendell
Copy link
Contributor

Made some minor comments. Overall, this seems like a great thing to have.

@pwendell
Copy link
Contributor

@j-martin one other thing. Would you mind creating a brief JIRA to describe this feature? You can just create an account on the site. Many people follow our issue tracker so we try to have JIRA's for new things:

https://issues.apache.org/jira/browse/SPARK

@j-martin
Copy link
Author

I created the issue. https://issues.apache.org/jira/browse/SPARK-2166

I will also apply the recommendations to the PR shortly.

@j-martin j-martin changed the title Listing of instances to be terminated before the prompt SPARK-2166 - Listing of instances to be terminated before the prompt Jun 17, 2014
@pwendell
Copy link
Contributor

@j-martin Seems like this doesn't merge cleanly. Do you mind up-merging it?

@pwendell
Copy link
Contributor

This was actually a pretty tough merge since we changed the spacing around a lot in spark_ec2 recently. I went ahead and manually dealt with the merge. I also made two minor changes on merge.

@asfgit asfgit closed this in 9cb64b2 Jun 23, 2014
pdeyhim pushed a commit to pdeyhim/spark-1 that referenced this pull request Jun 25, 2014
Will list the EC2 instances before detroying the cluster.
This was added because it can be scary to destroy EC2
instances without knowing which one will be impacted.

Author: Jean-Martin Archer <[email protected]>

This patch had conflicts when merged, resolved by
Committer: Patrick Wendell <[email protected]>

Closes apache#270 from j-martin/master and squashes the following commits:

826455f [Jean-Martin Archer] [SPARK-2611] Implementing recommendations
27b0a36 [Jean-Martin Archer] Listing of instances to be terminated before the prompt Will list the EC2 instances before detroying the cluster. This was added because it can be scary to destroy EC2 instances without knowing which one will be impacted.
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
Will list the EC2 instances before detroying the cluster.
This was added because it can be scary to destroy EC2
instances without knowing which one will be impacted.

Author: Jean-Martin Archer <[email protected]>

This patch had conflicts when merged, resolved by
Committer: Patrick Wendell <[email protected]>

Closes apache#270 from j-martin/master and squashes the following commits:

826455f [Jean-Martin Archer] [SPARK-2611] Implementing recommendations
27b0a36 [Jean-Martin Archer] Listing of instances to be terminated before the prompt Will list the EC2 instances before detroying the cluster. This was added because it can be scary to destroy EC2 instances without knowing which one will be impacted.
Igosuki pushed a commit to Adikteev/spark that referenced this pull request Jul 31, 2018
bzhaoopenstack pushed a commit to bzhaoopenstack/spark that referenced this pull request Sep 11, 2019
arjunshroff pushed a commit to arjunshroff/spark that referenced this pull request Nov 24, 2020
turboFei pushed a commit to turboFei/spark that referenced this pull request Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants