-
Notifications
You must be signed in to change notification settings - Fork 221
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
JupyterHub integration with Jupyter Enterprise Gateway #448
Comments
Thanks for your inquiry. Yes, a couple folks are working on a Hub integration - focused on Kubernetes. I would expect initial support in a week or two. If you wanted a bare metal integration, I'm sure the solution will likely apply to that as well since this is primarily a configuration exercise. Regarding release specifics, we don't plan on publishing our K8s support to a release until Q4 - probably closer to the end than the beginning. 😄 |
Will it have a single Hub which manages all the Notebook servers? |
The architecture would be that the Hub spawns NB2KG-enabled notebook servers (just like today, except that the notebook servers are not NB2KG-enabled). The NB2KG-enabled notebook servers will be configured with a I believe your question is more related to Hub than EG. If you're using Kubernetes, then Hub will spawn pod-based Notebook servers, so that will get some portion of the distribution you desire. However, w/o EG, each notebook server would be launching local kernels and, potentially, exceed the capacity of the Notebook pod. Whereas with EG, each kernel is launched in its own pod. I hope that helps. |
For the ones eager to get started with JupyterHub and Enterprise Gateway, here is a draft blog for review. I am planning to publish it after I merge the nb2kg and nb2kg-hub. There is also some ansible-scripts to help setup the JupyterHub and EG environment. |
Isn't this something which can be done by making just configurable changes to the Notebook server and Enterprise Gateway? We could enable the NB2KG serverextension and the NB2KG's SessionManager, RemoteKernelManager, RemoteKernelSpecManager. Then set the Enterprise Gateway's URL (If running on YARN cluster) Finally, launch JupyterHub. The default spawner class would launch the NB2KG enabled Notebook servers, which through NB2KG would launch the kernels on the Spark cluster. Let me know if my understanding at any point is wrong |
Yes - exactly. We're focused on kubernetes because that's where most of the interest is. This should really just be a configuration exercise. The other thing to ensure is that JUPYTERHUB_USER gets mapped to KERNEL_USERNAME at the point the Notebook server is launched. This value will then flow to EG via NB2KG. cc: @SolarisYan since they've also been spending time in this very area. |
@kevin-bates @lresende |
@amangarg96 - sorry the for the delayed response. I don't have any further updates as I've been busy looking at docker swarm and Luciano has been traveling. Although the blog draft posted by @lresende above is geared toward Kubernetes, the information contained is applicable to non-K8s envs as well since, as you point out, this is largely a configuration exercise. Therefore, I would suggest you try to equate the k8s concepts to your environment and see how things go. I also believe @SolarisYan is spending time with Hub (see comments in #424) but that too is a k8s env. At any rate, we'd be happy to assist you in your efforts and your experience may provide helpful data-points for generalizing our ultimate solution - thanks! |
The enhanced NB2KG image has been merged as part of #458, most of the rest is JupyterHub configuration to use this image. |
I read the following doc, which mentions about integrating JupyterHub with Jupyter Enterprise Gateway.
Is the Enterprise Gateway team working on it? When is it expected to be released?
The text was updated successfully, but these errors were encountered: