หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
This page describes how to create an ODBC Data Source Name (DSN) for the Databricks ODBC Driver.
Create your DSN as follows, depending on your operating system.
Create an ODBC DSN with Windows
From the Start menu, search for ODBC Data Sources to launch the ODBC Data Source Administrator.
Click the Drivers tab to verify that the ODBC Driver is installed.
Click the User DSN or System DSN tab and then click Add.
Select Databricks ODBC Driver from the list of installed drivers and then click Finish.
In the Databricks ODBC Driver DSN Setup dialog, configure the following settings:
Field Value Data Source Name A name for the DSN. Host(s) The Server Hostname value from your Azure Databricks compute resource. Port 443Mechanism An authentication mechanism. See Authentication settings for the Databricks ODBC Driver. Configure the following additional settings:
- Click HTTP Options. In the dialog, enter the HTTP Path value from your Azure Databricks compute resource and then click OK.
- Click SSL Options. In the dialog, select the Enable SSL check box and then click OK.
To get the Server Hostname and HTTP Path values, see Compute settings for the Databricks ODBC Driver.
Click Test to verify the connection. Review the results and then click OK.
Click OK to finish creating the DSN.
To use your DSN with your target app, tool, client, SDK, or API, see Technology partners or your provider's documentation.
Create an ODBC DSN with macOS
Install ODBC Manager for macOS in one of the following ways:
- Install ODBC Manager by using Homebrew
- Download ODBC Manager and then double-click on the downloaded
.dmgfile to install it.
Start ODBC Manager.
Click the Drivers tab to verify that the ODBC driver is installed.
Click the User DSN or System DSN tab and then click Add.
Select Databricks ODBC Driver from the list of installed drivers and then click OK.
Enter a name for the DSN. Using the ODBC Manager keyword-value interface, add the following configuration settings:
Keyword Value DriverThe driver's full installation path. See Download and install the Databricks ODBC Driver. HostThe Server Hostname value from your Azure Databricks compute resource. Port443HTTPPathThe HTTP Path value from your Azure Databricks compute resource. SSL1ThriftTransport2To get the Server Hostname and HTTP Path values, see Compute settings for the Databricks ODBC Driver. Add your authentication settings and any special or advanced driver capability settings.
Click OK to finish creating the DSN.
To use your DSN with your target app, tool, client, SDK, or API, see Technology partners or your provider's documentation.
Create an ODBC DSN with Linux
Install unixODBC.
Locate the
odbc.inidriver configuration file that corresponds toSYSTEM DATA SOURCES:odbcinst -jIn a text editor, open the
odbc.iniconfiguration file.Create an
[ODBC Data Sources]section:[ODBC Data Sources] Databricks=Databricks ODBC ConnectorCreate another section with the same name as your DSN as follows:
[Databricks] Driver=<path-to-driver> Host=<server-hostname> Port=443 HTTPPath=<http-path> SSL=1 ThriftTransport=2 <setting1>=<value1> <setting2>=<value2> <settingN>=<valueN>- To get the value for
<path-to-driver>, see Download and install the Databricks ODBC Driver. - To get the values for
<server-hostname>and<http-path>, see Compute settings for the Databricks ODBC Driver. <setting>=<value>is one or more pairs of authentication settings and any special or advanced driver capability settings for your target Azure Databricks connection.
- To get the value for
To use your DSN with your target app, tool, client, SDK, or API, see Technology partners or your provider's documentation.
Next steps
- Write code to test your ODBC driver connection. See Test the Databricks ODBC Driver.
- Alternatively, create a connection string without a DSN. See Create an ODBC DSN-less connection string for the Databricks ODBC Driver.
- Customize driver behavior with special or advanced settings. See Driver capability settings for the Databricks ODBC Driver.