You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Tri Nguyen <tr...@yahoo.com> on 2010/11/10 04:16:24 UTC
scheduling imports and heartbeats
Hi,
Can I configure solr to schedule imports at a specified time (say once a day,
once an hour, etc)?
Also, does solr have some sort of heartbeat mechanism?
Thanks,
Tri
Re: scheduling imports and heartbeats
Posted by Tri Nguyen <tr...@yahoo.com>.
Thanks for the tip Ken. I tried that but don't see the importing happening when
I check up on the status.
Below is what's in my dataimport.properties.
#Wed Nov 10 11:36:28 PST 2010
metadataObject.last_index_time=2010-09-20 11\:12\:47
interval=1
port=8080
server=localhost
params=/select?qt\=/dataimport&command\=full-import&clean\=true&commit\=true
webapp=solr
id.last_index_time=2010-11-10 11\:36\:27
syncEnabled=1
last_index_time=2010-11-10 11\:36\:27
________________________________
From: Ken Stanley <do...@gmail.com>
To: solr-user@lucene.apache.org
Sent: Wed, November 10, 2010 4:41:17 AM
Subject: Re: scheduling imports and heartbeats
On Tue, Nov 9, 2010 at 10:16 PM, Tri Nguyen <tr...@yahoo.com> wrote:
> Hi,
>
> Can I configure solr to schedule imports at a specified time (say once a day,
> once an hour, etc)?
>
> Also, does solr have some sort of heartbeat mechanism?
>
> Thanks,
>
> Tri
Tri,
If you use the DataImportHandler (DIH), you can set up a
dataimport.properties file that can be configured to import on
intervals.
http://wiki.apache.org/solr/DataImportHandler#dataimport.properties_example
As for "heartbeat", you can use the ping handler (default is
/admin/ping) to check the status of the servlet.
- Ken
Re: scheduling imports and heartbeats
Posted by Ken Stanley <do...@gmail.com>.
On Tue, Nov 9, 2010 at 10:16 PM, Tri Nguyen <tr...@yahoo.com> wrote:
> Hi,
>
> Can I configure solr to schedule imports at a specified time (say once a day,
> once an hour, etc)?
>
> Also, does solr have some sort of heartbeat mechanism?
>
> Thanks,
>
> Tri
Tri,
If you use the DataImportHandler (DIH), you can set up a
dataimport.properties file that can be configured to import on
intervals.
http://wiki.apache.org/solr/DataImportHandler#dataimport.properties_example
As for "heartbeat", you can use the ping handler (default is
/admin/ping) to check the status of the servlet.
- Ken
Re: scheduling imports and heartbeats
Posted by Chris Hostetter <ho...@fucit.org>.
: References: <4C...@srce.hr> <00...@com>
: <AA...@mail.gmail.com>
: <4C...@srce.hr>
: <AA...@mail.gmail.com>
: <4C...@srce.hr>
: <AA...@mail.gmail.com>
: Subject: scheduling imports and heartbeats
: In-Reply-To: <AA...@mail.gmail.com>
http://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists
When starting a new discussion on a mailing list, please do not reply to
an existing message, instead start a fresh email. Even if you change the
subject line of your email, other mail headers still track which thread
you replied to and your question is "hidden" in that thread and gets less
attention. It makes following discussions in the mailing list archives
particularly difficult.
See Also: http://en.wikipedia.org/wiki/User:DonDiego/Thread_hijacking
-Hoss
Re: scheduling imports and heartbeats
Posted by Tri Nguyen <tr...@yahoo.com>.
i'm looking for another solution other than cron job.
can i configure solr to schedule imports?
________________________________
From: Ranveer Kumar <ra...@gmail.com>
To: solr-user@lucene.apache.org
Sent: Tue, November 9, 2010 8:13:03 PM
Subject: Re: scheduling imports and heartbeats
You should use cron for that..
On 10 Nov 2010 08:47, "Tri Nguyen" <tr...@yahoo.com> wrote:
Hi,
Can I configure solr to schedule imports at a specified time (say once a
day,
once an hour, etc)?
Also, does solr have some sort of heartbeat mechanism?
Thanks,
Tri
Re: scheduling imports and heartbeats
Posted by Ranveer Kumar <ra...@gmail.com>.
You should use cron for that..
On 10 Nov 2010 08:47, "Tri Nguyen" <tr...@yahoo.com> wrote:
Hi,
Can I configure solr to schedule imports at a specified time (say once a
day,
once an hour, etc)?
Also, does solr have some sort of heartbeat mechanism?
Thanks,
Tri