Add a New JDBC Driver (v6.1+)

Prior to Version 6.1.0, a new driver could be added via the UI of an MI instance. Beginning in v6.1.0, new drivers can be added only via dataprocessor container. This article describes how to add a new driver via dataprocessor container for Simple Installation.  A similar process applies to Orchestrated environments.

1. Save the Driver to /opt/mi/data/dataprocessor/external-libs/

/opt/mi/data/dataprocessor/external-libs/  is a default shared mount that is accessible to both host and dataprocessor container.

2. Get into Data Processor Container

  1. List all containers: sudo docker ps
  2. Locate the dataprocessor container ID
  3. Get into the dataprocessor container: docker exec -it <dataprocessor container ID> bash

3. Locate the Driver in the /app/external-libs/ Directory

  1. List all the contents of the external-libs directory: ls -l external-libs/
  2. Locate the .jar driver file

4. Add or Update Driver Data in Database

Depending on whether you are adding a new JDBC driver or updating the existing driver, proceed with the corresponding substep.

5. Confirm that the Driver Has root:root Owner and 644 Rights

  1. List the driver file in a long format: ls -l <driver file name>
  2. Confirm that the driver has root:root owner and 644 rights (-rw-r--r-- 1 root root). If it does not:
    • chmod 644 /app/external-libs/<jdbc-driver>.jar
    • chown root:root /app/external-libs/<jdbc-driver>.jar

6. Apply Changes

Beginning in MI v6.2.4, there is no need to restart the dataprocessor container: to apply driver changes, simply restart the dataprocessor service by running service dataprocessor restart.

For MI versions prior to 6.2.4 do the following:

  1. Exit container: exit
  2. Restart the container: sudo docker restart <dataprocessor container ID>
  3. Wait a few minutes for changes to apply
  4. Make sure that the dataprocessor container is up and healthy: sudo watch docker ps

7. Check the Driver in the UI

Access your MI instance from a browser. The added driver should appear in the drivers list.