Skip to content

Fine Tuning JDBC Connection for Databricks SQL

Optimizing JDBC connection parameters can help improve the stability and performance of your Databricks SQL Analytics integrations. This guide provides general recommendations and steps for adjusting JDBC connection settings to best suit your environment and workload requirements.

Configuration Properties

Feature Description Default Value Possible Values
JDBC Socket Timeout The number of seconds that the TCP socket waits for a response from the server before raising an error on the request. 18000 seconds Any positive integer (in seconds)

Setup

Warning

Replace the <PLEASE_CHANGE> placeholder with appropriate values for your environment.

To configure the JDBC socket timeout, update the following property in Privacera Manager:

  1. SSH to the instance where Privacera Manager is installed.

  2. 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
    vi ~/privacera/privacera-manager/config/custom-vars/connectors/databricks-sql-analytics/instance1/vars.connector.databricks.sql.analytics.yml
    
  3. Set the following property to configure the JDBC socket timeout:

    YAML
    # The maximum time to wait for data on a socket after connection establishment (default: 18000 seconds)
    CONNECTOR_DATABRICKS_SQL_ANALYTICS_JDBC_SOCKET_TIMEOUT_IN_SECONDS: "<PLEASE_CHANGE>"
    

  4. Once the property is 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.

    Bash
    cd ~/privacera/privacera-manager
    ./privacera-manager.sh setup
    
    Step 2 - Apply the Privacera Manager helm charts.
    Bash
    cd ~/privacera/privacera-manager
    ./pm_with_helm.sh upgrade
    
    Step 3 - Post-installation step which generates Plugin tar ball, updates Route 53 DNS and so on.

    Bash
    cd ~/privacera/privacera-manager
    ./privacera-manager.sh post-install
    
  1. In PrivaceraCloud portal, navigate to Settings -> Applications.

  2. On the Connected Applications screen, select Databricks SQL.

  3. Click the pen icon or the Account Name to modify the settings.

  4. On the Edit Application screen, go to Access Management -> ADVANCED tab.

  5. Under Add New Custom Properties, add the following property:

    Bash
    ranger.policysync.connector.0.jdbc.socket.timeout.in.seconds=<PLEASE_CHANGE>
    

  6. Click SAVE to apply the changes.

Comments