Create a conda environment or link to an existing
conda environment that the instance group uses. When creating a conda environment, the Anaconda distribution instance is automatically
deployed and created. When linking to an existing conda
environment, the instance group becomes
an associated instance group of the
Anaconda distribution instance.
Procedure
-
From the cluster management console, click
.
-
In the Basic Settings tab, click the option to link to a or
modify conda environment for the instance group.
- Enter the conda environment details:
- Select an Anaconda distribution. If the distribution does
not appear here, learn how to add a
distribution.
- Choose either to use an existing distribution instance, or specify a new distribution
instance.
- Click Use an existing Anaconda distribution instance and fill in the
following information:
- Anaconda distribution instance: An existing Anaconda distribution instance.
- Environment install file: A conda environment name or create one form a
yaml file.
Note: When using an existing Anaconda distribution instance in an instance
group, the notebook execution user must have read/write access to the Anaconda distribution instance's deployment
directory. When using an existing conda environment in an instance group, the notebook execution
user must have read/write access to the environment directory, located in the
$DEPLOY_HOME/anaconda/envs/environment_name directory (where
$DEPLOY_HOME is the deployment directory for the Anaconda distribution instance).
- Otherwise, specify a new distribution instance and fill in the following information:
- Instance name: Name of the distribution instance. If you are creating an
instance group template, the instance name must contain at least one template variable:
$sig_name or $sig_consumer, for example:
conda_$sig_name.
- Deployment directory: An absolute UNIX path to a unique deployment
directory. If you are creating an instance group template, ensure that the deployment path contains
at least one template variable: $sig_name or
$sig_consumer, for example: /opt/conda_$sig_name/.
- Consumer: Consumer of the distribution instance.
- Resource group: Resource group for the distribution instance.
- Execution user: An OS user. If you do not specify
an execution user, the cluster administrator is used.
- Environment install file: A conda environment name or create one form a
yaml file. If you are creating an instance group template, the conda environment name must contain
at least one template variable: $sig_name or
$sig_consumer, for example: conda_env_$sig_name.
- Optional: Click the Environment Variables tab and then
Add a variable to set any environment variable.
Environment
variables that are set for the Anaconda distribution apply to the distribution
instance. You can overwrite existing values by adding the same environment variable and setting a
new value or you can add new environment variables.
-
Click Save.
What to do next
- Finish configuring the instance group. See Defining basic settings for an instance group.
- Create and deploy the instance group.
- Click Create and Deploy Instance Group to create the instance group and deploy its packages
simultaneously. In this case, the new instance group appears on the Instance Groups page in the Ready state. Verify your deployment and
then start the instance group.
- Click Create Only to create the instance group but manually deploy its packages
later. In this case, the new instance group appears on the Instance Groups page in the Registered state. When you are ready to
deploy packages, deploy the instance group and verify the deployment. Then,
start the instance group.