George Leonard
05/17/2025, 10:00 AMRUN echo "--> Install apache-flink && jupyter package" \
&& /usr/bin/pip3 install jupyter
no errors.
I then start my cluster and execute 'jupyter notebook' resulting in below
docker compose exec jobmanager /bin/bash
flink@jobmanager:~$ jupyter notebook
[I 2025-05-17 09:56:20.988 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2025-05-17 09:56:20.990 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2025-05-17 09:56:20.993 ServerApp] jupyterlab | extension was successfully linked.
[I 2025-05-17 09:56:20.995 ServerApp] notebook | extension was successfully linked.
[I 2025-05-17 09:56:20.996 ServerApp] Writing Jupyter server cookie secret to /opt/flink/.local/share/jupyter/runtime/jupyter_cookie_secret
[I 2025-05-17 09:56:21.166 ServerApp] notebook_shim | extension was successfully linked.
[I 2025-05-17 09:56:21.181 ServerApp] notebook_shim | extension was successfully loaded.
[I 2025-05-17 09:56:21.183 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2025-05-17 09:56:21.184 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2025-05-17 09:56:21.186 LabApp] JupyterLab extension loaded from /usr/local/lib/python3.10/dist-packages/jupyterlab
[I 2025-05-17 09:56:21.186 LabApp] JupyterLab application directory is /usr/local/share/jupyter/lab
[I 2025-05-17 09:56:21.186 LabApp] Extension Manager is 'pypi'.
[I 2025-05-17 09:56:21.243 ServerApp] jupyterlab | extension was successfully loaded.
[I 2025-05-17 09:56:21.246 ServerApp] notebook | extension was successfully loaded.
[I 2025-05-17 09:56:21.247 ServerApp] Serving notebooks from local directory: /opt/flink
[I 2025-05-17 09:56:21.247 ServerApp] Jupyter Server 2.16.0 is running at:
[I 2025-05-17 09:56:21.247 ServerApp] <http://localhost:8888/tree?token=df91905d3836954ab07a4b60691c6b6dd367c9bfba57d841>
[I 2025-05-17 09:56:21.247 ServerApp] <http://127.0.0.1:8888/tree?token=df91905d3836954ab07a4b60691c6b6dd367c9bfba57d841>
[I 2025-05-17 09:56:21.247 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 2025-05-17 09:56:21.250 ServerApp] No web browser found: Error('could not locate runnable browser').
[C 2025-05-17 09:56:21.251 ServerApp]
To access the server, open this file in a browser:
file:///opt/flink/.local/share/jupyter/runtime/jpserver-1461-open.html
Or copy and paste one of these URLs:
<http://localhost:8888/tree?token=df91905d3836954ab07a4b60691c6b6dd367c9bfba57d841>
<http://127.0.0.1:8888/tree?token=df91905d3836954ab07a4b60691c6b6dd367c9bfba57d841>
[I 2025-05-17 09:56:21.262 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
Issue, when I go to the above url i can't get to the page.
and yes I got
ports:
8888:8888
as part of my docker-compose in the jobmanager service.
I do have 'export 8888' as part of the Dockerfile.