Setup Configuration¶
Installation¶
General Installation¶
To install pyiris directly from Nexus repository, set the following environment variables:
NEXUS_USERNAME = nexus_username
NEXUS_PASSWORD = nexus_password
NEXUS_REPOSITORY = nexus_repository
Run the following pip installation command:
pip install pyiris -i https://NEXUS_USERNAME:NEXUS_PASSWORD@NEXUS_REPOSITORY
Databricks Installation¶
Set the following environment variables:
KEY_VAULT_NAME=kv-nonprod-iris or kv-prod-iris
ENVIRONMENT_PERMISSION=PUBLIC or PRIVATE
ENVIRONMENT=dev or prod
NEXUS_USERNAME={{secrets/KeyVault/nexus_username}}
NEXUS_PASSWORD={{secrets/KeyVault/nexus_password}}
NEXUS_REPOSITORY={{secrets/KeyVault/nexus_repository}}
PYIRIS_SECRET={{secrets/KeyVault//IrisLakeSecret}}
PYIRIS_TENANT_ID={{secrets/KeyVault//IrisLakeTenantID}}
PYIRIS_CLIENT_ID={{secrets/KeyVault//IrisLakeClientID}}
PYIRIS_TOKEN={{secrets/KeyVault//pyirisGit}}
Create the global init script, accessing Admin Console -> Global Init Script and click in the button + Add. In the name, write “install-pyiris” and paste the script below.
pip install pyiris -i https://NEXUS_USERNAME:NEXUS_PASSWORD@NEXUS_REPOSITORY
OBS: you have to guarantee that your Databricks is connected with IRIS Key-Vault, accord to your environment. Also, have to get your correct Key Vault scope.
OBS 2: the “ENVIRONMENT_PERMISSION” variable have to be accord to your environment permission: PUBLIC or PRIVATE; as ENVIRONMENT variable, has to be “dev”or “prod”.
To insert the environment variables access, individual, your clusters in Clusters -> select one cluster -> Edit -> Advanced Options -> insert the above environment variables in the Environment Variables text box.
Good job, the Pyiris was successfully installed! :)