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

SPARK-2246: Add user-data option to EC2 scripts #1186

Closed
wants to merge 1 commit into from

Conversation

douglaz
Copy link
Contributor

@douglaz douglaz commented Jun 23, 2014

No description provided.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

1 similar comment
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@pwendell
Copy link
Contributor

pwendell commented Aug 2, 2014

Hey @douglaz - I looked around at the AWS API and it appears that this is a somewhat generic API (i.e. it doesn't necessarily have to contain a script).

UserData - string - Optional - Optional data, specific to a user’s application, to provide in the launch request. All instances that collectively comprise the launch request have access to this data. User data is never returned through API responses.

http://docs.aws.amazon.com/AWSSDKforPHP/latest/index.html#m=AmazonEC2/request_spot_instances

I couldn't find much more information than this online. Is this something where a few specific AMI types interpret this as a script and execute it on start-up? If that's the case maybe we should have a more generic description of the option, since the current description implies this will always be treated as a script

@douglaz
Copy link
Contributor Author

douglaz commented Aug 3, 2014

@pwendell I think all AMIs interpret this way (at least all based on Amazon Linux or Ubuntu, from my experience). If it starts with a hashbang, then it is executed on start-up.

Yes, it can be anything (and the code accepts anything), but I've seen it only being used as some sort of script.

Feel free to change the description. I described this way because it's a good combination between being short, generic and informative. Otherwise I would describe it as "The EC2 data stuff. Consult the Amazon documentation for more (poor) information"

asfgit pushed a commit that referenced this pull request Aug 3, 2014
Author: Allan Douglas R. de Oliveira <[email protected]>

Closes #1186 from douglaz/spark_ec2_user_data and squashes the following commits:

94a36f9 [Allan Douglas R. de Oliveira] Added user data option to EC2 script
(cherry picked from commit a0bcbc1)

Signed-off-by: Patrick Wendell <[email protected]>
@asfgit asfgit closed this in a0bcbc1 Aug 3, 2014
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
Author: Allan Douglas R. de Oliveira <[email protected]>

Closes apache#1186 from douglaz/spark_ec2_user_data and squashes the following commits:

94a36f9 [Allan Douglas R. de Oliveira] Added user data option to EC2 script
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.

3 participants