Configuring the adapter consists of specifying connection and authentication information for each of the connections you want to establish.
|
|
You can configure the adapter from either the Web Console or the Data Management Console.
or
From the Data Management Console, expand the Adapters folder.
In the DMC, the Adapters folder opens. In the Web Console, the Adapters page opens showing your configured adapters.
The Add Adapter to Configuration pane opens.
org.apache.drill.jdbc.Driver
Adapter |
JDBC Driver Name |
---|---|
Apache Hive |
org.apache.drill.jdbc.Driver |
MapR Drill |
com.mapr.drill.jdbc41.Driver |
The following image shows an example of the configuration settings used:
|
|
The Adapter for Apache Drill is under the SQL group folder.
The following list describes the connection attributes for which you can supply values. To complete the attribute declaration, click the Configure button.
Logical name used to identify this particular set of connection attributes. The default is CON01.
Location URL for the Apache Drill data source.
Name for the Apache Drill driver.
Defines the additional Java Class directories or full-path jar names which will be available for Java Services. Value may be set by editing the communications file or in the Web Console. Using the Web Console, you can enter one reference per line in the input field. When the file is saved, the entries are converted to a single string using colon (:) delimiters for all platforms. OpenVMS platforms must use UNIX-style conventions for values (for example, /mydisk/myhome/myclasses.jar, rather than mydisk:[myhome]myclasses.jar) when setting values. When editing the file manually, you must maintain the colon delimiter.
There are three methods by which a user can be authenticated when connecting to a database server:
Primary authorization ID by which you are known to the data source.
Password associated with the primary authorization ID.
Select a profile from the drop-down menu to indicate the level of profile in which to store the CONNECTION_ATTRIBUTES command. The global profile, edasprof.prf, is the default.
If you wish to create a new profile, either a user profile (user.prf) or a group profile if available on your platform (using the appropriate naming convention), choose New Profile from the drop-down menu and enter a name in the Profile Name field (the extension is added automatically).
Store the connection attributes in the server profile (edasprof).
|
|
The Adapter for Apache Drill is under the SQL group folder.
The URL configuration for the Apache Drill adapter is:
jdbc:drill:zk=quorum:port/directory/cluster_id[;schema=schema]
where:
Is the name or IP address where the Drillbit server is running.
Is the port number for zookeeper. The default value is 2181. On a MapR cluster, the default value is 5181.
Multiple quorum:port values can be comma separated.
Is the name of the drill directory within zookeeper. The default value is drill.
Is the name of the drill cluster. The default value is drillbit1.
Is the name of the default schema to use, for example, hive.
|
|
If the server is unable to configure the connection, a dialog box opens with an error message. The message typically begins with the following:
(FOC1400) SQLCODE IS -1 (HEX: FFFFFFFF) XOPEN: nnnn
where:
Is the message number returned.
Some of the more common errors are:
(FOC1500) : (-1) [00000] JDBFOC>> connectx(): (FOC1500) : java.lang.UnsupportedClassVersionError: org/apache/drill/jdbc/Driver : (FOC1500) : Unsupported major.minor version 51.0 (FOC1479) ERROR CONNECTING TO SQL DATABASE
This indicates that your Java version is less than 1.7 which is required for Drill.