Skip to main content
The Self-Service Analytics Apache Solr connector lets you access the data available in your Apache Solr databases using the Self-Service Analytics client. The Self-Service Analytics Apache Solr connector supports Apache Solr versions 7.4 through 8.4. Before you can establish a connection from Self-Service Analytics to an Apache Solr database, a connector server needs to be installed, configured and enabled. See Manage Connectors and Connector Servers for general instructions and Connect to Apache Solr for details specific to the Apache Solr connector. 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 FunctionsN
Box PlotsY
Custom SQL QueriesNIf 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)N
Distinct CountsY
Fast Distinct ValuesY
Group By Multiple FieldsY
Group By TimeY
Group By UNIX TimeY
Histogram Floating Point ValuesN
HistogramsY
Kerberos AuthenticationY
Last ValueN
Live Mode and PlaybackY
Multivalued FieldsNThe Apache Solr JSON API does not support metrics by multivalued fields.
Nested FieldsN
PartitionsN/A
Pushdown Joins for Fusion Data SourcesN
SchemasN/A
Text SearchYYou can sort keyword searches by Best Match and Most Recent (when you select a preferred time field from the source). Filter your search results by selecting fields in the Filter modal. Select Clear All to clear filtered search results.
TLSN
User DelegationY
Wildcard FiltersY
Wildcard Filters, Case-Insensitive ModeNCase-sensitivity cannot be enforced. Consequently, neither case-sensitive or case-insensitive wildcard filters are supported.
Wildcard Filters, Case-Sensitive ModeNCase-sensitivity cannot be enforced. Consequently, neither case-sensitive or case-insensitive wildcard filters are supported.
In addition, Apache Solr supports the Request Handler field on the Tables/Indices tab of the data source configuration. You can use this box at the top of the Field table on the Tables/Indices tab to specify a request handler plug-in that defines the logic used when executing a search request. For Kerberos authentication instructions, see Connect to Apache Solr Data Stores That Use Kerberos Authentication. For instructions on using user delegation with the Apache Solr connector, see Configure User Delegation for the Apache Solr Connector.

Connect to Apache Solr

You can configure the Self-Service Analytics Apache Solr connector to connect to a kerberized Apache Solr data store. For more information, see Connect to Apache Solr Data Stores That Use Kerberos Authentication. When establishing a connection to Apache Solr, you must provide the following information.
  1. Select the hosting type: Standalone or Cloud.
  2. Specify a Solr Base URL.
  3. Specify the version of the Solr source that you are going to connect to in the following format: <major>.<minor>.<patch>. This field is optional. While connecting to Solr, Self-Service Analytics first checks its version. If the version is not available, Self-Service Analytics checks the version that you have specified in this field and attempts to connect that version.
  4. If authentication has been set up, provide the user name and password.

Dashboard and Visual Considerations

Distinct count and percentiles metrics return approximate values in Solr, due to the nature of the data source. The precision of the result returned by distinct count metric depends on the precision threshold setting (default value is 1000). When you create a bar chart using an Apache Solr data source, you can search for a specific word or phrase using the search box at the top of the dashboard. The Details tab displays the results.
Fields of time groupings with low time granularity may cause loading time issues for the data source.

Connect to Apache Solr Data Stores That Use Kerberos Authentication

A secure standalone or cloud Apache Solr can use Kerberos authentication to validate and confirm access requests. You can set up Self-Service Analytics to connect to the secure Solr using the following instructions.

Configure Self-Service Analytics Microservices

Obtain Kerberos Credentials

Each microservice must have its own unique identifier called a principal. Perform the following steps:
  1. Install the Kerberos client on the CentOS or Ubuntu machine where the Self-Service Analytics server resides.
  2. Generate the Kerberos principal and corresponding keytab for Self-Service Analytics microservice. Before you proceed, make sure that:
    • Self-Service Analytics microservice is running on a node with proper Kerberos configuration: /etc/krb5.conf or similar location for your Linux distribution.
    • The Kerberos realm on your environment is the same as the realm specified in the kdc.conf file from the Apache Solr server.
  3. Check the Kerberos configuration (that is, krb5.conf) and validity of the principal and keytab pair using MIT Kerberos client:
  4. Make the keytab accessible for Self-Service Analytics’s Apache Solr connector:

Configure the Apache Solr Connector

  1. Create or update the file named /etc/zoomdata/edc-apache-solr.properties. If this file already exists, verify that the information below exists in the file:
  2. Restart the Apache Solr connector:
After you have obtained Kerberos credentials and configured the connector properties, follow the instructions provided in Connect to Apache Solr to complete the connection.

Configure User Delegation for the Apache Solr Connector

User delegation is supported by Self-Service Analytics Apache Solr connectors.

Prerequisites

A Solr Cloud cluster, version 6.4 or later, with Kerberos authentication must be available.

Configuration Steps

User delegation configuration for Solr is performed in two steps:
  1. Enable Kerberos delegation tokens. To enable Kerberos delegation tokens, set the Solr configuration parameter solr.kerberos.delegation.token.enabled to true (see Using Delegation Tokens in the Kerberos Authentication Plugin documentation) in the solr.in.sh file on each Solr node.
  2. Configure proxy users and delegates. Configuration of proxy users and delegates is performed using these parameters in the solr.in.sh file on each Solr node:
    Consider the following example:
    In this configuration, user proxy_user can impersonate users belonging to groups finance or marketing when connecting to a Solr instance from any host. all these parameters should be stored in file solr.in.sh on each Solr node.