Switching from JDBC to API¶
By default, Privacera's Unity Catalog Connector uses JDBC (Java Database Connectivity) for data transactions. However, you can switch to API-based connectivity by updating specific configuration properties.
Setup¶
To switch to API-based connectivity, update the following configuration property based on your deployment model.
Note
Even when API-based connectivity is enabled, JDBC is still required to collect audit logs from Databricks.
-
Navigate to Settings → Applications in the Self-Managed Portal.
-
From the list of Connected Applications, select Databricks Unity Catalog.
-
Click the icon or the Account Name to modify the settings.
-
On the Edit Application screen, go to Access Management.
-
Under ADVANCED tab, add the following property under Add New Custom Properties:
Bash -
Click SAVE to apply the changes.
To enable API-based connectivity, update the following properties in Privacera Manager:
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to open the
.yml
file to be edited.If you have multiple connectors, then replace
instance1
with the appropriate connector instance name.Bash -
Set the following properties to enable the connector to use API-based connectivity:
YAML -
Once the properties are configured, run the following commands to update your Privacera Manager platform instance:
Step 1 - Setup which generates the helm charts. This step usually takes few minutes.
Step 2 - Apply the Privacera Manager helm charts. Step 3 - Post-installation step which generates Plugin tar ball, updates Route 53 DNS and so on.
-
In PrivaceraCloud portal, navigate to Settings -> Applications.
-
On the Connected Applications screen, select Databricks Unity Catalog.
-
Click the pen icon or the Account Name to modify the settings.
-
On the Edit Application screen, go to Access Management.
-
Under ADVANCED tab, add the following property under Add New Custom Properties:
Bash -
Click SAVE to apply the changes.
Benefits¶
-
Avoid JDBC Dependencies: API-based connectivity eliminates the need for JDBC driver configurations, which can simplify setup and troubleshooting.
-
Cost Effective: Reduces costs by avoiding the need to provision and maintain a JDBC-compatible data warehouse layer.
-
Suitable for Lightweight Integrations: API-based connections are useful in low-throughput environments where the JDBC overhead is not justified.
Downside¶
-
Throttling and Rate Limits: Databricks API calls are subject to per-second rate limits, which can cause throttling issues or failures during high-volume operations like permission syncs.
-
Reduced Performance: Compared to JDBC, API-based data transactions may experience latency and performance bottlenecks under load.
- Prev topic: Advanced Configuration