/solr-dataimport-scheduler

Scheduler for refreshing index of Solr with delta imports

Primary LanguageJava

solr-dataimport-scheduler

Schedules recurring data imports from sources into Apache Solr

solr-dataimport-scheduler-7.4.0.jar

A scheduler for performing solr data imports.

Used for version solr 7.4

Need to additional jar files into solr webapp lib and jetty server lib.

  • quartz-2.3.0.jar
  • quartz-jobs-2.3.0.jar

Into server lib:

  • fluent-hc-4.5.6.jar
  • solr-dataimport-scheduler-7.4.0.jar

Also add solr home into config properties file or inital solr resource loader will not work ok. (or other way can be added for loading solr home)

Based on https://code.google.com/p/solr-data-import-scheduler/, but uses:

It is intended to be simple, not profound.

Also if you are missing some http classes you should add jar (httpclient-4.5.6.jar or core) for them into lib file.

Installation and configuration

  1. Add solr-dataimport-scheduler-<version>.jar to classpath. (Typically, this means adding to WEB-INF/lib`.)

  2. Add the following to WEB-INF/web.xml:

    <!-- Listener for dataimport-scheduler. -->
    <listener>
        <listener-class>gov.loc.repository.solr.handler.dataimport.scheduler.ApplicationListener</listener-class>
    </listener>
    
  3. Add quartz.properties to <solr_home>/conf. quartz.properties can be found in templates/ in solr-dataimport-scheduler-<version>.jar or src/main/resources/templates of the project. quartz.properties is a standard quartz properties file as specified at http://quartz-scheduler.org/documentation/quartz-2.x/configuration/. For typical usage, you should not need to modify this problem.

  4. Add quartz_schedule.xml to <solr_home>/conf. An example quartz_schedule.xml can be found in templates/ in solr-dataimport-scheduler-<version>.jar or src/main/resources/templates of the project. quartz_schedule.xml defines the jobs (viz., the data import) and the triggers (i.e., the schedule) as described at http://quartz-scheduler.org/documentation/quartz-2.x/cookbook/JobInitPlugin. You must modify this file.

USED : Apache Solr DataImportHandler Scheduler From Google Code.