Skip to main content

Java Memory Heap Issue

If your openmetadata pods are not in ready state at any point in time and the openmetadata pod logs speaks about the below issue -
This is due to the default JVM Heap Space configuration (1 GiB) being not enough for your workloads. To resolve this issue, head over to your custom openmetadata helm values and append the below environment variable
The flag Xmx specifies the maximum memory allocation pool for a Java virtual machine (JVM), while Xms specifies the initial memory allocation pool. Upgrade the helm charts with the above changes using the following command helm upgrade --install openmetadata open-metadata/openmetadata --values <values.yml> --namespace <namespaceName>. Update this command your values.yml filename and namespaceName where you have deployed Collate in Kubernetes.

PostgreSQL Issue permission denied to create extension “pgcrypto”

If you are facing the below issue with PostgreSQL as Database Backend for Collate Application,
It seems the Database User does not have sufficient privileges. To resolve the above issue, grant usage permissions to the PSQL User.
Tip: In the above command, replace <openmetadata_psql_user> with the sql user used by Collate Application to connect to PostgreSQL Database.

How to extend and use custom docker images with Collate Helm Charts ?

Extending Collate Server Docker Image

1. Create a Dockerfile based on docker.getcollate.io/openmetadata/server

Collate helm charts uses official published docker images from DockerHub. A typical scenario will be to install organization certificates for connecting with inhouse systems. For Example -
where docker.getcollate.io/openmetadata/server:x.y.z needs to point to the same version of the Collate server, for example docker.getcollate.io/openmetadata/server:2.1.0. This image needs to be built and published to the container registry of your choice.

2. Update your openmetadata helm values yaml

The Collate Application gets installed as part of openmetadata helm chart. In this step, update the custom helm values using YAML file to point the image created in the previous step. For example, create a helm values file named values.yaml with the following contents -

3. Install / Upgrade your helm release

Upgrade/Install your openmetadata helm charts with the below single command:

Extending Collate Ingestion Docker Image

One possible use case where you would need to use a custom image for the ingestion is because you have developed your own custom connectors. Review the tested custom connector examples for complete implementations. After you have your code ready, the steps would be the following:

1. Create a Dockerfile based on docker.getcollate.io/openmetadata/ingestion:

For example -
where docker.getcollate.io/openmetadata/ingestion:x.y.z needs to point to the same version of the Collate server, for example docker.getcollate.io/openmetadata/ingestion:2.1.0. This image needs to be built and published to the container registry of your choice.

2. Update the airflow in openmetadata dependencies values YAML

The ingestion containers (which is the one shipping Airflow) gets installed in the openmetadata-dependencies helm chart. In this step, we use our own custom values YAML file to point to the image we just created on the previous step. You can create a file named values.deps.yaml with the following contents:

3. Install / Upgrade helm release

Upgrade/Install your openmetadata-dependencies helm charts with the below single command:

How to disable MySQL and ElasticSearch from Collate Dependencies Helm Charts ?

If you are using MySQL and ElasticSearch externally, you would want to disable the local installation of mysql and elasticsearch while installing Collate Dependencies Helm Chart. You can disable the MySQL and ElasticSearch Helm Dependencies by setting enabled: false value for each dependency. Below is the command to set helm values from Helm CLI -
Alternatively, you can create a custom YAML file named values.deps.yaml to disable installation of MySQL and Elasticsearch .

How to configure external database like PostgreSQL with Collate Helm Charts ?

Collate Supports PostgreSQL as one of the Database Dependencies. Collate Helm Charts by default does not include PostgreSQL as Database Dependencies. To configure Helm Charts with External Database like PostgreSQL, follow the below guide to make the helm values change and upgrade / install Collate helm charts with the same.

Upgrade Airflow Helm Dependencies Helm Charts to connect to External Database like PostgreSQL

We ship airflow-helm as one of OpenMetadata Dependencies with default values to connect to MySQL Database as part of externalDatabase configurations. You can find more information on setting the externalDatabase as part of helm values here. With Collate Dependencies Helm Charts, your helm values would look something like below -
For the above code, it is assumed you are creating a kubernetes secret for storing Airflow Database login Credentials. A sample command to create the secret will be kubectl create secret generic airflow-postgresql-secrets --from-literal=airflow-postgresql-password=<password>.

Upgrade Collate Helm Charts to connect to External Database like PostgreSQL

Update the openmetadata.config.database.* helm values for Collate Application to connect to External Database like PostgreSQL. With Collate Helm Charts, your helm values would look something like below -
For the above code, it is assumed you are creating a kubernetes secret for storing Collate Database login Credentials. A sample command to create the secret will be kubectl create secret generic openmetadata-postgresql-secrets --from-literal=openmetadata-postgresql-password=<password>. Once you make the above changes to your helm values, run the below command to install/upgrade helm charts -

How to customize Collate Dependencies Helm Chart with custom helm values

Our Collate Dependencies Helm Charts are internally depends on three sub-charts - If you are looking to customize the deployments of any of the above dependencies, please refer to the above links for customizations of helm values for further references. By default, OpenMetadata Dependencies helm chart provides initial generic customization of these helm values to get you started quickly. You can refer to the openmetadata-dependencies helm charts default values here.