Setting Connector-Wide Configuration Options
When you specify connection settings in a DSN or connection string, those settings apply only when you connect to Spark using that particular DSN or string. As an alternative, you can specify settings that apply to every connection that uses the Simba Apache Spark ODBC Connector by configuring them in the simba.sparkodbc.ini
file.
Note:
Settings in the connection string take precedence over settings in the DSN, and settings in the DSN take precedence over connector-wide settings.
To set connector-wide configuration options:
- In a text editor, open the
simba.sparkodbc.ini
configuration file. - In the
[Driver]
section, specify configuration options as key-value pairs. Start a new line for each key-value pair. - Save the
simba.sparkodbc.ini
configuration file.
For example, to enable User Name authentication using "simba" as the user name, type the following:
AuthMech=
UID=simba
For detailed information about all the configuration options supported by the connector, see
- Driver Configuration Options on page 1
- Configuring DataStax AOSS Service Discovery
- Configuring Authentication
- Configuring SSL Verification
- Configuring Server-Side Properties
- Configuring Logging Options
- Testing the Connection
- Configuring the Driver on page 1