TensorBoard, Shiny, and others (CDSW_APP_PORT or CDSW_READONLY_PORT)

CDSW_APP_PORT and CDSW_READONLY_PORT are environment variables that point to general purpose public ports.

HTTP services running in containers that bind to CDSW_APP_PORT, CDSW_READONLY_PORT, and CDSW_PUBLIC_PORT are available in browsers at the following urls:
  • CDSW_APP_PORT is available at
    https://<$CDSW_ENGINE_ID>.<$CDSW_DOMAIN>
  • CDSW_READONLY_PORT is available at
    https://read-only-<$CDSW_ENGINE_ID>.<$CDSW_DOMAIN>
  • CDSW_PUBLIC_PORT is available at
    https://public-<$CDSW_ENGINE_ID>.<$CDSW_DOMAIN>
Therefore, TensorBoard, Shiny, Flask or any other web framework accompanying a project can be accessed directly from within a session or job, as long as it is run on CDSW_APP_PORT or CDSW_READONLY_PORT.

Therefore, TensorBoard, Shiny, Flask or any other web framework accompanying a project can be accessed directly from within a session or job, as long as it is run on CDSW_APP_PORT or CDSW_READONLY_PORT.

CDSW_APP_PORT is meant for applications that grant some level of control to the project, such as access to the active session or terminal. CDSW_READONLY_PORT must be used for applications that grant read-only access to project results.

The host address should be localhost.

To access the UI while you are in an active session, click the grid icon in the upper right hand corner of the Cloudera Data Science Workbench web application, and select the UI from the dropdown. For a job, navigate to the job overview page and click the History tab. Click on a job run to open the session output for the job. You can now click the grid icon in the upper right hand corner of the Cloudera Data Science Workbench web application to access the UI for this session.