solr-dataimport-scheduler-7.4.0.jar
A scheduler for performing solr data imports.
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:
- Quartz Job Scheduler (http://quartz-scheduler.org/)
- Apache HttpClient (http://hc.apache.org/httpcomponents-client-ga/)
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.
-
Add
solr-dataimport-scheduler-<version>.jar to classpath. (Typically, this means adding to
WEB-INF/lib`.) -
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>
-
Add
quartz.properties
to<solr_home>/conf
.quartz.properties
can be found intemplates/
insolr-dataimport-scheduler-<version>.jar
orsrc/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. -
Add
quartz_schedule.xml
to<solr_home>/conf
. An examplequartz_schedule.xml
can be found intemplates/
insolr-dataimport-scheduler-<version>.jar
orsrc/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.