Topics: |
How to: |
Reference: |
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.
org.apache.phoenix.jdbc.PhoenixDriver
Note: Explicit should not be used because Phoenix ignores any user ID that is entered; it connects with the user ID that was used to start the server. Individual user credentials can only be used with a secured (Kerberos enabled) server and are specified in the URL.
The Adapter for Apache Phoenix is under the SQL group folder.
The URL configuration for the Apache Phoenix adapter is:
jdbc:phoenix:quorum:[port:[/directory[:principal[:keytab]]]]
where:
Is a comma separated list of ZooKeeper servers.
Is the port number for ZooKeeper. The default value is 2181. On a MapR cluster, the default value is 5181.
Is the name of the Phoenix directory within ZooKeeper.
For a server that does not have Kerberos enabled, the default is /hbase-unsecure .
For a Kerberos enabled server, the default is /hbase-secure.
Note: The directory names listed above must be entered exactly as written.
user@REALM
/home/user/user.keytab
The following is an example of an unsecured server with one zookeeper node:
jdbc:phoenix:clu0:2181:/hbase-unsecure
The following is an example for a secured server with three zookeeper nodes:
jdbc:phoenix:clu1,clu2,clu3:2181:/user@REALM.COM: /user/home/user.keytab
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.8, which is required.
WebFOCUS | |
Feedback |