• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Apache Solr | Install and configure a Solr Cloud (Embedded ZooKeeper)
  1. Download and Install Apache Solr
  2. Configuration files and environment variables
  3. Start Solr
  4. Stop Solr

  1. Download and Install Apache Solr
    Download Apache Solr: http://lucene.apache.org/solr/

    Extract the file "solr-9.8.1.zip" in the folder you want to install Solr: /opt/solr-9.8.1

    Create a symbolic link of the Solr installation folder:

    Change the folders permissions (if needed):
  2. Configuration files and environment variables
    ${SOLR_HOME} (or solr.solr.home) represents the path of the Solr home directory: /opt/solr/server/solr

    ${SOLR_ROOT} represents the path of the Solr installation folder: /opt/solr/

    Configuration files:
    ► "${SOLR_HOME}/solr.xml"
    ► "${SOLR_HOME}/zoo.cfg"

    Solr home directory ${SOLR_HOME} must contain a solr.xml file and a zoo.cfg file, otherwise Solr will fail to start.

    By default, the data directory of the embedded ZooKeeper can be found in "${SOLR_HOME}/zoo_data".
  3. Start Solr
    You can use the following command to start Solr (the Solr node won't be able to form/join a Solr Cluster):

    You can start Solr and set adding additional JVM parameters (start Solr running in SolrCloud mode with 1g max heap size and remote Java debug options enabled):

    Access the Solr Admin UI: http://localhost:8983/solr

    Apache Solr/SolrCloud
  4. Stop Solr
    Find and stop Solr server for which the HTTP listener is bound to the specified port:
© 2025  mtitek