Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FSTORE-1095] update driver dependecies and secrets feature #350

Merged
merged 10 commits into from
Feb 22, 2024
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 16 additions & 5 deletions docs/user_guides/fs/storage_connector/creation/jdbc.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,27 @@ Head to the Storage Connector View on Hopsworks (1) and set up a new storage con

Enter the details for your JDBC enabled database.

1. Select "JDBC" as connector protocol.
2. Enter the JDBC connection url. This can for example also contain the username and password.
3. Add additional key/value arguments to be passed to the connection. These might differ by database. It can be the username and password.
4. Click "Setup storage connector".

<figure markdown>
![JDBC Connector Creation](../../../../assets/images/guides/fs/storage_connector/jdbc_creation.png)
<figcaption>JDBC Connector Creation Form</figcaption>
</figure>

1. Select "JDBC" as connector protocol.
2. Enter the JDBC connection url. This can for example also contain the username and password.
3. Add additional key/value arguments to be passed to the connection, such as username or password. These might differ by database.


!!! note
Driver class name is a mandatory argument even if using the default MySQL driver. Add it by specifying a property with the name `driver` and class name as value. The driver class name will differ based on the database. For MySQL databases, the class name is `com.mysql.cj.jdbc.Driver`, as shown in the example image.


4. Click "Setup storage connector".


!!! note
To be able to use the connector, you need to upload the driver JAR file to the [Jupyter configuration](../../../projects/jupyter/spark_notebook.md) or [Job configuration](../../../projects/jobs/pyspark_job.md) in `Addtional Jars`. For MySQL connections the default JDBC driver is already included in Hopsworks so this step can be skipped.


## Next Steps

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