Reference

Authentication ZooKeeper (SolrCloud)


Description

No description available [API reference]

Instructions

Apache Solr SQL JDBC from Power BI, SQL Server Linked Server via ZappySys Data Gateway, Crystal Reports, SSRS, Azure Data Factory, and other ODBC tools. The collection must expose /sql. This Auth uses ZooKeeper (SolrCloud).

  1. Note the ZooKeeper host and port (often 2181, or Solr's embedded ZK on 9983 in local examples) and the collection name.
  2. Confirm the collection has the /sql handler in solrconfig.xml.
  3. The wizard downloads SolrJ 9.10.1 + streaming + ZooKeeper modules. If Test Connection fails on a missing class, add WEB-INF/lib and server/lib/ext JARs from the same Solr 9 install (see additional download instructions).
  4. After Finish, replace zkHost and collection on the DSN Main UI. Driver class is org.apache.solr.client.solrj.io.sql.DriverImpl (not auto-obvious from SPI).
  5. Finish the wizard. Then click Test Connection on the DSN Main UI (the wizard does not run Test Connection).
  6. Done. You can query from C#, Python, PowerShell, and ODBC apps.

Parameters

Parameter Required Default value Options
Name: DriverFilePaths

Label: JDBC driver file(s)

Filled by the wizard after download. Include SolrJ, streaming, and ZooKeeper JARs. Add WEB-INF/lib and server/lib/ext if Test Connection reports missing classes (e.g. C:\ZappySys\Jdbc\MyConnector\driver.jar).
YES C:\ZappySys\Jdbc\Apache Solr\solr-solrj-9.10.1.jar;C:\ZappySys\Jdbc\Apache Solr\solr-solrj-streaming-9.10.1.jar;C:\ZappySys\Jdbc\Apache Solr\solr-solrj-zookeeper-9.10.1.jar
Name: HostName

Label: Host

JDBC host name or IP (e.g. MyHostName).
YES MyHostName
Name: Port

Label: TCP port

JDBC port (e.g. 2181).
YES 2181
Name: Collection

Label: Collection

Solr collection name (e.g. MyCollection).
YES MyCollection
Name: DriverClass

Label: Driver class

Optional. Leave blank to auto-detect from the JAR unless SPI is ambiguous (e.g. org.apache.solr.client.solrj.io.sql.DriverImpl).
org.apache.solr.client.solrj.io.sql.DriverImpl
Name: UserName

Label: User name

Database user. Leave empty if the server allows anonymous JDBC.
Name: Password

Label: Password

Database password. Leave empty if no password is required.