Anaconda Platform
7.0.0 is available through a limited early access program. Contact your Anaconda Technical Account Manager (TAM) if you’re interested in adopting the latest version.Prerequisites
Before you begin, make sure you have the following:- A working installation of Anaconda Platform version
6.4.0or later. - A Linux server that meets the system requirements.
Installing JupyterHub
1
Download and unpack the installer
- Log in to your Linux server as a root user.
-
Download the installer by running the following command:
Replace <INSTALLER_LOCATION> with the provided location of your installer.
-
Unpack the installer tarball:
Example
2
Gather your SSL/TLS certificate information
Locate your SSL/TLS The
.crt and .key files and note their paths for later use.If you don’t have valid SSL/TLS certificates, you can proceed by using the DIY-SSL-CA package (included with the installer):The self-signed certificates created by the
DIY-SSL-CA package can reduce your time to first use of JupyterHub, but should be replaced with valid certificates from a trusted certificate authority as soon as possible. Do not use self-signed certificates in production environments!Replace <HOSTNAME> with your JupyterHub server hostname.
create_noprompt.sh script generates the files that you’ll reference later as environment variables at the following directory locations:DIY-SSL-CA/CA/ca.crtDIY-SSL-CA/out/<HOSTNAME>/<HOSTNAME>-bundle.crtDIY-SSL-CA/out/<HOSTNAME>/<HOSTNAME>.key
<HOSTNAME> is your JupyterHub server hostname.3
Create a service account
The installer comes with a
keycloak.py script. Use it to programmatically create a dedicated client for the JupyterHub services to authenticate users via Keycloak:Replace <KC_ADMIN> with the username for the Keycloak admin user.
Replace <KC_PASSWORD> with the password for the Keycloak admin user.
Replace <AIP_FQDN> with the fully qualified domain name of your Anaconda Platform server.
Replace <CLIENT_ID> with the client ID for the JupyterHub service account.
Replace <JHUB_FQDN> with the fully qualified domain name of your JupyterHub server.
Replace <KC_PASSWORD> with the password for the Keycloak admin user.
Replace <AIP_FQDN> with the fully qualified domain name of your Anaconda Platform server.
Replace <CLIENT_ID> with the client ID for the JupyterHub service account.
Replace <JHUB_FQDN> with the fully qualified domain name of your JupyterHub server.
Save the Client ID and Client Secret in a secure location.
4
Create an environment file
Create an environment file named Add the following information to the
The CA Cert is only required if you are using self-signed certificates.
The
.env in your /home/<username>/ directory.If you already have an
.env file in your home directory, you can name your new file something else, like .env_jhub_anaconda..envfile you just created, including the actual values:Replace <ANACONDA_SERVER> with the fully qualified domain name of your Anaconda Platform server.
Replace <CLIENT_SECRET> with the client secret for the JupyterHub service account.
Replace <CERT> with the path to your SSL/TLS certificate file.
Replace <KEY> with the path to your SSL/TLS key file.
Replace <CA_CERT> with the path to your CA certificate file (self-signed certificates only).
Replace <SPAWNER_TYPE> with your JupyterHub spawner type: local|systemd. Defaults to systemd if not supplied.
Replace <CLIENT_SECRET> with the client secret for the JupyterHub service account.
Replace <CERT> with the path to your SSL/TLS certificate file.
Replace <KEY> with the path to your SSL/TLS key file.
Replace <CA_CERT> with the path to your CA certificate file (self-signed certificates only).
Replace <SPAWNER_TYPE> with your JupyterHub spawner type: local|systemd. Defaults to systemd if not supplied.
ANACONDA_SERVER= is the fully qualified domain name of your Anaconda Platform server.The CA Cert is only required if you are using self-signed certificates.
The
REPO_CHANNELS variable is a list of channels that the JupyterHub services will use to install packages when users build new environments in Jupyter. The installer configures conda to respect the order of the channels as they are listed in the environment file.5
Run the installer
Run the installation command:
Replace <PATH_TO_ENV_FILE> with the path to the environment file you just created.
Replace <VERSION> with your installer version.
Replace <HASH> with your installer hash.
Replace <VERSION> with your installer version.
Replace <HASH> with your installer hash.
Troubleshooting
I am receiving a libcrypt.so.1 error post installation
Cause
Cause
Amazon Linux does not include
libxcrypt-compat, which causes nginx services to error when starting.Solution
Solution
If you receive a After installing the package, restart the nginx service:
libcrypt.so.1 error post installation, install the libxcrypt-compat package on your JupyterHub server:SystemD version too old or unavailable, using local spawner
Cause
Cause
This warning occurs when JupyterHub is installed on a Linux system running
systemd < 245. In this case, JupyterHub defaults to using the local spawner instead of systemdSpawner, and resource management is not enabled.Solution
Solution
JupyterHub requires If necessary, update your operating system to a Linux distribution that provides
systemd >= 245 or later for full resource management support.Verify your systemd version by running the following command:systemd >= 245.