Configuring DataStax AOSS Service Discovery on a Non-Windows Machine
You can configure the Simba Apache Spark ODBC Connector to discover Spark services through DataStax AOSS. If your AOSS endpoints require different authentication and SSL settings than the Spark service that you are connecting to, then you must also configure the connector to provide the necessary AOSS credentials and settings.
You can set the connection properties described below in a connection string, in a DSN (in the odbc.ini
file), or as a connector-wide setting (in the simba.sparkodbc.ini file). Settings in the connection string take precedence over
settings in the DSN, and settings in the DSN take precedence over connector-wide settings.
To configure DataStax AOSS service discovery
- Set the
ServiceDiscoveryModeproperty toAOSS. - Set the
Hostproperty to a comma-separated list of AOSS endpoints. Use the following format, where [AOSS_Endpoint] is the IP address or host name of the AOSS endpoint, and [AOSS_Port] is the number of the TCP port that the AOSS endpoint uses to listen for client connections: - If the AOSS endpoints require different authentication settings than the Spark service that you are connecting to, then you must also configure the connector to provide the necessary AOSS credentials:
- Set the
AOSS_AuthMechproperty to3. - Set the
AOSS_UIDproperty to the user name that you use to access the AOSS endpoints. - Set the
AOSS_PWDproperty to the password corresponding to the user name you specified above.
- Set the
- If the AOSS endpoints require different SSL settings than the Spark service that you are connecting to, then you must also configure the connector to use the appropriate SSL settings:
- Set the
AOSS_SSLproperty to1. - To allow authentication using self-signed certificates that have not been added to the list of trusted certificates, set the
AOSS_AllowSelfSignedServerCertproperty to1. - To allow the common name of a CA-issued SSL certificate to not match the host name of the AOSS endpoint, set the
AOSS_AllowHostNameCNMismatchproperty to1. - To specify the CA certificates that you want to use to verify the server, do one of the following:
- To configure the connector to load SSL certificates from a specific
.pemfile when verifying the server, set theAOSS_TrustedCertsproperty to the full path of the.pemfile. - Or, to use the trusted CA certificates
.pemfile that is installed with the connector, do not specify a value for theAOSS_TrustedCertsproperty.
- To configure the connector to load SSL certificates from a specific
- To specify the minimum version of TLS to use, set the
AOSS_Min_TLSproperty to the minimum version of TLS. Supported options include1.0for TLS 1.0,1.1for TLS 1.1, and1.2for TLS 1.2.
- Set the
[AOSS_Endpoint1]:[AOSS_Port1],[AOSS_Endpoint2]:[AOSS_Port2]