Search code examples
sshgoogle-cloud-platformjupyter-notebookgoogle-cloud-dataproc

unable to create tunnel and connect to jupyter interface


I am creating an ssh tunnel and configure browser to connect to the notebook interface in google cloud dataproc, I createf tunnel via putty, it works, but when I open url http://clustername-m:port, it is showing taking too long and timeout.

Appreciate help!


Solution

  • If you're using PuTTY, you'll want to make sure you're correctly setting dynamic port forwarding in the PuTTY UI if you're intending to use hostnames like that. You might also need to force your browser to do DNS resolution on the proxy host with:

    --host-resolver-rules='MAP * 0.0.0.0, EXCLUDE localhost'
    

    Finally, you might find it all easier if you're using Jupyter or Zeppelin to just use Dataproc Component Gateway with Dataproc Optional Components and then you won't need to setup any SSH tunnel at all to use the UIs. Keep in mind that at the moment, Component Gateway is only in Alpha though so there are likely going to be bugs in terms of reliability.