Skip to main content
The Self-Service Analytics Apache Phoenix connector lets you access the data available in your Apache Phoenix storage using the Self-Service Analytics client. The Self-Service Analytics Apache Phoenix connector supports Apache Phoenix version 4.7 and Apache Phoenix Query Server 4.7. Apache Phoenix v4.5 requires a separate download. To obtain a connector for Apache Phoenix 4.4, contact Technical Support. Before you can establish a connection from Self-Service Analytics to Apache Phoenix, a Self-Service Analytics connector server for it needs to be installed, configured and enabled. See Manage Connectors and Connector Servers for general instructions and Connect to Apache Phoenix for details specific to the Apache Phoenix and Apache Phoenix Query Server connectors. After setting up the connector, create data sources that specify the necessary connection information and identify the data you want to use. See Create and Manage Data Sources for more information.After you set up your data sources, create dashboards, self service reports, and visuals from the data in these data sources.

Feature Support

Connector support for specific features is shown in the following table. Key: Y - Supported; N - Not Supported; N/A - not applicable
FeatureSupported?Notes
Admin-Defined FunctionsY
Box PlotsN
Custom SQL QueriesYIf you need to access a BigQuery partition, explicitly include an alias for the built in partition column in your select clause, such as select *, _PARTITIONTIME as pt from projectId.datasetId.tableId.
Derived Fields (Row-Level Expressions)YApache Phoenix and Apache Phoenix Query Server connectors support row-level expressions (derived fields) with the following limitations:
Distinct CountsY
Fast Distinct ValuesN/A
Group By Multiple FieldsY
Group By TimeY
Group By UNIX TimeY
Histogram Floating Point ValuesY
HistogramsY
Kerberos AuthenticationY
/
N
Apache Phoenix supports Kerberos, but Apache Phoenix Query Server does not. For more information, see Enable Kerberos Authentication for Apache Phoenix Connectors.
Last ValueN
Live Mode and PlaybackY
Multivalued FieldsN/A
Nested FieldsN/A
PartitionsN/A
Pushdown Joins for Fusion Data SourcesN
SchemasY
Text SearchN/A
TLSY
User DelegationN
Wildcard FiltersY
Wildcard Filters, Case-Insensitive ModeY
Wildcard Filters, Case-Sensitive ModeY

Connect to Apache Phoenix

For Apache Phoenix, specify the JDBC URL in the following format:
where:
  • <zk_quorum> is a comma separated list of the ZooKeeper servers
  • <zk_port> is the ZooKeeper port
  • <zk_hbase_path> is the path used by HBase to stop information about the instance
For Apache Phoenix Query Server, specify the JDBC URL in the following format:
where:
  • <scheme> is a transport protocol for communication with the server
  • <server-hostname> is the name of the host offering the microservice
  • <port> is the port number on which the host is listening

Add Patched JAR Files to an Apache Phoenix Connector’s Classpath

If your Apache Phoenix/HBase servers use patched .jar files, you might need to add the patched .jar files to the Apache Connector’s classpath. If you do not, Apache Phoenix may produce an error indicating that you have outdated .jar files. Add the patched .jar files to the Apache Phoenix connector’s classpath:
  1. Add the patched .jar files to a directory that is accessible to the connector. For example:
  2. Add or modify the following property in the /etc/zoomdata/edc-phoenix-4.7.properties file to specify the path to your .jar files as a comma-separated list in loader.path property. Be sure to put the path to your .jar files first so you do not corrupt entries already present in this property. For example:

Enable Kerberos Authentication for Apache Phoenix Connectors

Support for Kerberos authentication for Self-Service Analytics Apache Phoenix connectors is only provided for Phoenix 4.7 (and later) connectors. It is not provided for any version of the Phoenix QueryServer connector. Enable Kerberos authentication for Apache Phoenix connectors:
  1. Download hbase-site.xml and core-site.xml files from the Apache HDFS and HBase microservices. For example, for Hortonworks you can use the instructions at the following link: https://docs.cloudera.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-operations/content/downloading_client_configs.html.
  2. Add the following configuration options to the hbase-site.xml file:
    Substitute the ID of your Kerberos principal for YOUR_PRINCIPAL and the path to your Kerberos keytab file for PATH_TO_YOUR_KEYTAB.
  3. Verify that the core-site.xml file contains the following entry:
  4. Make sure that the Apache Phoenix connector has access to the hbase-site.xml and core-site.xml files as well as the Kerberos keytab file you identified in PATH_TO_YOUR_KEYTAB. We recommend that you place these files in the /etc/zoomdata/edc-phoenix directory.
  5. Add the following property to the /etc/zoomdata/edc-phoenix-4.7.properties file to direct the Apache Phoenix connector to the files you created
    Self-Service Analytics does not recommend that you provide the Kerberos principal ID and keytab file path using a JDBC URL. The Apache Phoenix driver has a bug that will not refresh a ticket after expiration.