Storing a Keytab for Jupyter Notebooks Running Python

You can manually configure Team Studio to store a keytab locally for Jupyter Notebooks for Team Studio running Python.

Perform this task on the computers where Team Studio is installed, and then on the computer where Jupyter Notebooks for Team Studio running Python is installed.

Prerequisites

  • You must have generated the keytab.
  • You must have write access to the server where Team Studio is installed.
  • You must have write access to the server where Jupyter Notebooks for Team Studio running Python is installed.

Procedure

  1. Open the file chorus.properties.
  2. Add the line notebook.kerberos.transfer_keytab_from_chorus = false.
    By default, this option is set to true.
  3. Shut down the Chorus instance.
  4. Log into the server on which Jupyter Notebooks for Team Studio running Python is installed.
  5. Shut down all containers (you can use the Docker command rm -f).
  6. Browse to the Notebooks installation location.
  7. Find the folder named hdfs_configs.
  8. In the hdfs_configs folder, replace the file alpine_keytab.keytab with your keytab file, using the name alpine_keytab.keytab.
  9. In the hdfs_configs folder, create a file named set_principal.sh containing the line export KERBEROS_PRINCIPAL="PRINCIPLE@EXAMPLE.COM" with the principal to use with the kinit.
  10. Restart Chorus.