The Database Connections facility is composed of several dialogs that enable you to configure a connection to a data source (for example, Hive).
In the Data Source Explorer panel, right-click Database Connections and select New from the context menu, as shown in the following image.
The New Connection Profile dialog opens, as shown in the following image.
Select a supported data source from the list of connection profile types. Specify a name and a description (optional) in the corresponding fields, and then click Next.
The New JDBC Connection Profile dialog opens, which shows the Specify a Driver and Connection Details pane, as shown in the following image.
Click the following icon to open the New Driver Definition (Specify a Driver Template and Definition Name) dialog:
Click the following icon to open an existing connection profile that you would like to edit:
Hint: If an existing data source is defined for a given connection type (for example, PostgreSQL) and a new connection profile is being created, the existing connection details are shown when the New Connection Profile dialog opens. Follow the instructions below to create a new data source template to disambiguate the connections.
To create a new connection profile or resolve a duplicate definition:
The Specify a Driver Template and Definition Name dialog opens with the Name/Type tab selected.
The name of the driver, the vendor, and system version are displayed.
The JAR List tab is refreshed with your new driver file, as shown in the following image.
The New Connection Profile (Specify a Driver and Connection Details) dialog is now populated with the credentials you entered in the New Driver Definition (Specify a Driver Template and Definition Name) dialog.
Hint: If a password has been entered in the New Connection Profile (Specify a Driver and Connection Details) dialog and the Save password check box is not selected, you will need to re-enter the password if another dialog window is opened or if the data source connection is closed and then re-opened. Otherwise, the data source will attempt to use the default password of the database driver.
If your connection configuration is valid, then the following success message is displayed.
You are returned to the New Connection Profile (Specify a Driver and Connection Details) dialog.