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

Feature/support private clusters #1749

Closed

Conversation

edgarklerks
Copy link

The use of a private cluster breaks the aws emr toolchain. The ssh subcommand will fail, because there is no public dns name associated with a private cluster. And in the subcommand describe-cluster the expectation is broken, that a cluster_id can be used to retrieve a dns name of the master node.

To reproduce the issues, start a cluster on a private subnet (as specified by the documentation of EMR), then run:

 aws emr ssh --cluster-id <cluster-id> --key-pair-file <your key>

It will fail, because it can't retrieve the dns name.

Furthermore there is no longer a way to translate a cluster_id into a hostname, when using a private cluster:

aws emr describe-cluster --cluster-id <cluster-id>

MasterPublicDnsName is empty.

I added a field MasterPrivateDnsName to describe_cluster and let aws emr ssh use MasterPrivateDnsName as dns name in the case MasterPublicDnsName is an empty string.

@kyleknap
Copy link
Contributor

Thanks for the pull request. We will look into it and review it.

@kyleknap kyleknap added feature-request A feature should be added or improved. emr labels Jan 27, 2016
@kyleknap kyleknap self-assigned this Jan 27, 2016
@kyleknap
Copy link
Contributor

@edgarklerks thanks for the pull request. There was some simplification that could have been done in terms of the architecture of the emr commands in fixing this issue so I just merged a PR that should fix the issue you are targeting in your PR. Let us know if you are still running into the issue.

@diehlaws diehlaws added pr:work-in-progress This PR is a draft and needs further work. and removed pending labels Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emr feature-request A feature should be added or improved. pr:work-in-progress This PR is a draft and needs further work.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants