Skip to content

Commit 4c05817

Browse files
committed
update driver dependecies and secrets feature
1 parent 7790abe commit 4c05817

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed
Loading

docs/user_guides/fs/storage_connector/creation/jdbc.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,29 @@ Head to the Storage Connector View on Hopsworks (1) and set up a new storage con
3636

3737
Enter the details for your JDBC enabled database.
3838

39+
<figure markdown>
40+
![JDBC Connector Creation](../../../../assets/images/guides/fs/storage_connector/jdbc_creation.png)
41+
<figcaption>JDBC Connector Creation Form</figcaption>
42+
</figure>
43+
3944
1. Select "JDBC" as connector protocol.
4045
2. Enter the JDBC connection url. This can for example also contain the username and password.
41-
3. Add additional key/value arguments to be passed to the connection. These might differ by database. It can be the username and password.
46+
6. Add driver class name as an argument. This is a mandatory argument even if using default MySQL driver. Add an argument with name `driver` and driver class name as value. For MySQL databases, the class name is `com.mysql.cj.jdbc.Driver`, as shown in example below. The driver class name will differ based on the database to connect.
47+
3. Add additional key/value arguments to be passed to the connection. These might differ by database. It can be the username and password. Passwords are encrypted as [Secret](../../../projects/secrets/create_secret.md) and stored in the database for additional security.
4248
4. Click "Setup storage connector".
4349

4450
<figure markdown>
45-
![JDBC Connector Creation](../../../../assets/images/guides/fs/storage_connector/jdbc_creation.png)
46-
<figcaption>JDBC Connector Creation Form</figcaption>
51+
![Storage Connector Creation](../../../../assets/images/guides/fs/storage_connector/jdbc_driver.png)
52+
<figcaption>Specifying driver name in case of MySQL</figcaption>
4753
</figure>
4854

55+
56+
!!! note
57+
To be able to use the connector, you still need to upload the driver JAR file to the [Jupyter configuration](../../../projects/jupyter/spark_notebook.md) or to a [Job configuration](../../../projects/jobs/pyspark_job.md) in `Addtional Jars`. However, for MySQL connections the default JDBC driver is included in Hopsworks so can skip this step when using MySQL databases.
58+
59+
60+
61+
4962
## Next Steps
5063

5164
Move on to the [usage guide for storage connectors](../usage.md) to see how you can use your newly created JDBC connector.

0 commit comments

Comments
 (0)