NOTE: iODBC Administrator is included with the iODBC Driver Manager, which must be installed in order to use the driver on Mac.
- Open iODBC Administrator using the following command (this gives the application permissions to save the Driver & DSN configurations):
sudo /Applications/iODBC/iODBC\ Administrator64.app/Contents/MacOS/iODBC\ Administrator64
Note: In order to use the OpenSearch SQL ODBC driver with the Tableau Connector, the Description of the Driver field must start with OpenSearch SQL ODBC
.
- Go to the ODBC Drivers tab.
- Click Add a Driver.
- Description of the Driver: The driver name used for ODBC connections (ex.
OpenSearch SQL ODBC Driver
) - Driver File Name: The path to the driver file (default installed path:
/Library/ODBC/opensearch-sql-odbc/bin/libsqlodbc.dylib
) - Setup File Name: The path to the driver file (default installed path:
/Library/ODBC/opensearch-sql-odbc/bin/libsqlodbc.dylib
) - Set as a System driver
- Below is a screenshot of how the final screen should look.
- Description of the Driver: The driver name used for ODBC connections (ex.
- Click OK to save the options.
This is not required if you are using the Tableau Connector, but will help with connecting to your data source through other applications.
- Go to the User DSN tab
- Select Add on the right side of the window.
- Choose the Driver you added above.
- Data Source Name (DSN): The name of the DSN used to store connection options (ex.
OpenSearch SQL ODBC DSN
) - Comment: Not required
- Add key-value pairs by using the '+' button. Below is a picture of the recommended set of options for a default local OpenSearch installation.
- Click OK to save the DSN configuration.
Try the following:
- Create the folder
~/Library/ODBC
, then try again - Create two files in
~/Library/ODBC
, then open iODBC Administrator and verify the contents of odbcinst.ini and odbc.ini align with the format below.- odbcinst.ini (will be found in ODBC Drivers)
[ODBC Drivers] <Driver Name> = Installed [<Driver Name>] Driver = <odbc-root>/lib64/libsqlodbc.dylib Setup = <odbc-root>/lib64/libsqlodbc.dylib
- odbc.ini (will be found in User DSNs)
[ODBC Data Sources] <DSN Name> = <Driver Name> [<DSN Name>] Driver = <odbc-root>/lib64/libsqlodbc.dylib Description = Host = localhost Port = 9200 Username = admin Password = admin
[ODBC Data Sources]
OpenSearch SQL ODBC DSN = OpenSearch SQL ODBC Driver
[ODBC]
TraceLibrary =
Trace = 1
TraceAutoStop = 0
TraceFile = /Library/ODBC/opensearch-sql-odbc/odbc.log
TraceDLL =
[OpenSearch SQL ODBC DSN]
Driver = /Library/ODBC/opensearch-sql-odbc/bin/libsqlodbc.dylib
Host = https://localhost
Port = 9200
UseSSL = 1
ResponseTimeout = 6
HostnameVerification = 0
LogOutput = /Library/ODBC/opensearch-sql-odbc
Auth = BASIC
[ODBC Data Sources]
OpenSearch SQL ODBC DSN = OpenSearch SQL ODBC Driver
[ODBC]
TraceLibrary =
Trace = 1
TraceAutoStop = 0
TraceFile = /Library/ODBC/opensearch-sql-odbc/odbc.log
TraceDLL =
[OpenSearch SQL ODBC DSN]
Driver = /Library/ODBC/opensearch-sql-odbc/bin/libsqlodbc.dylib
Host = https://search-*.us-east-1.es.amazonaws.com/
Port = 443
UseSSL = 1
ResponseTimeout = 6
HostnameVerification = 1
Region = us-east-1
LogOutput = /Library/ODBC/opensearch-sql-odbc
Auth = AWS_SIGV4
[ODBC Data Sources]
OpenSearch SQL ODBC DSN = OpenSearch SQL ODBC Driver
[ODBC]
TraceLibrary =
Trace = 1
TraceAutoStop = 0
TraceFile = /Library/ODBC/opensearch-sql-odbc/odbc.log
TraceDLL =
[OpenSearch SQL ODBC DSN]
Driver = /Library/ODBC/opensearch-sql-odbc/bin/libsqlodbc.dylib
Host = https://localhost
Port = 9200
UseSSL = 1
ResponseTimeout = 6
HostnameVerification = 0
Region = us-east-1
LogOutput = /Library/ODBC/opensearch-sql-odbc
Auth = AWS_SIGV4
TunnelHost = vpc-*.us-east-1.es.amazonaws.com