Charmed Apache Spark K8s Documentation - How to integrate with another application

Integrate with applications

This guide shows how to integrate Charmed Apache Kyuubi K8s with both charmed and non-charmed applications.

Charmed applications

Integrations with charmed applications are supported via the kyuubi_client interface.

You can see which existing charms are compatible with Kyuubi in the Integrations tab on Charmhub.

The kyuubi_client interface

To integrate, run

juju integrate kyuubi-k8s:database <charm>

To remove the integration, run

juju remove-relation kyuubi-k8s <charm>

Non-charmed applications

To integrate with an application outside of Juju, use the data-integrator charm to create the required credentials and endpoints.

Deploy the data-integrator charm:

juju deploy data-integrator --config database-name=<name>

Integrate with Charmed Apache Kyuubi K8s:

juju integrate data-integrator kyuubi-k8s

Use the get-credentials action to retrieve credentials from data-integrator:

juju run data-integrator/leader get-credentials

Rotate application password

To rotate the passwords of a user created for an integrated application, the associated integration must be removed and created again. This process will generate a new user and password for the application.

juju remove-relation <charm> kyuubi-k8s
juju integrate <charm> kyuubi-k8s

For a non-charmed application, the data-integrator is the <charm> to remove and re-create the integration with.