Replies: 2 comments
-
Answer generated by a 🤖 AnswerI understand that you're looking for a way to programmatically override the EMR URL in sparkmagic, as you're working with multiple EMR clusters across different environments. You're hoping to find a solution that allows you to set the EMR URL on a per-notebook basis, rather than having to manually edit the One potential solution to this issue is to use the %_do_not_call_change_endpoint -s <your_emr_url> In the above command, replace It's important to note that the function name While this solution may not be ideal, it could serve as a workaround until a more user-friendly way to change the endpoint is implemented. If you find this solution helpful and believe it could benefit others, you might consider contributing to the sparkmagic project by making a pull request with this information. SourcesThis response is meant to be useful, save you time, and share context. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. |
Beta Was this translation helpful? Give feedback.
-
Sparkmagic honors the |
Beta Was this translation helpful? Give feedback.
-
My company has different EMR clusters for different environments, so I sometimes need to run spark workloads on multiple EMR clusters simultaneously. Since sparkmagic uses a single static
~/.sparkmagic/config.json
file to set the EMR URL, I have to manually edit this file to change the host each time I want to switch environments.I'm hoping there's a better way to set the EMR URL, ideally on a per-notebook basis. I tried using the
%%configure
magic command, but it doesn't seem to support this. Is there another way?Beta Was this translation helpful? Give feedback.
All reactions