Skip to content

Commit 3e8e1a9

Browse files
committed
extend registration example showing to a add multiple drivers
1 parent bf561e8 commit 3e8e1a9

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

  • docs/deploy-and-configure/configuration/dataintegration/jdbc

docs/deploy-and-configure/configuration/dataintegration/jdbc/index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,24 @@ Depending on the deployment model, suitable options include:
4848
### Driver Registration
4949

5050
A custom JDBC driver must be registered in the DataIntegration configuration file `dataintegration.conf`, in the `spark.sql.options` section.
51-
The following example shows how to register a custom JDBC driver for Databricks:
51+
The following example shows how to register two custom JDBC drivers for DB2 and Databricks:
5252

5353
```conf
5454
5555
spark.sql.options {
5656
57-
# driver name
58-
jdbc.drivers = "databricks"
57+
# driver name, comma seperated
58+
jdbc.drivers = "db2,databricks"
59+
5960
# path to the jar in the docker container
6061
jdbc.databricks.jar = "/opt/cmem/eccenca-DataIntegration/dist/etc/dataintegration/conf/plugin/DatabricksJDBC.jar"
6162
# class name
6263
jdbc.databricks.name = "com.databricks.client.jdbc.Driver"
64+
65+
# path to the jar in the docker container
66+
jdbc.db2.jar = "/opt/cmem/eccenca-DataIntegration/dist/etc/dataintegration/conf/plugin/db2jcc-db2jcc4.jar"
67+
# class name
68+
jdbc.db2.name = "com.ibm.db2.jcc.DB2Driver"
6369
6470
}
6571

0 commit comments

Comments
 (0)