On 2/5/2015 2:48 PM, O. Olson wrote:
> My setup is fairly similar to the examples. I start a Solr Import using the
> UI i.e. I go to:
> http://localhost:8983/solr/#/corename/dataimport//dataimport  and click the
> Execute button to start the Import. 
>
> First, I'm curious if there is a way of figuring out if there is an import
> running. I thought one of the ways to do this look at the core Statistics
> page i.e. at http://localhost:8983/solr/#/corename  and look at the value of
> Current. If it is red – it means an import is running, and if it is green,
> the import has either completed or not running. 
>
>       My problem is that initially for the first min or two, though the 
> import is
> running, the value of Current on the Statistics page is still green. Is
> there a way of definitely determining if a import is currently running in
> Solr?
>
> Second, is there a way of determining if a Solr Import has completed. I
> normally wait for the Red value of Current on the Statistics page becomes
> Green, and I detect the completion of the Import. 

The actual dataimport API (not the admin UI link that you included
above, which *uses* the dataimport API) is the only way I know of for
sure to detect the import status.  The default command is "status".

http://server:port/solr/corename/dataimport

Here's a wiki page with info on this API:

http://wiki.apache.org/solr/DataImportHandler#Commands

Unfortunately, interpreting the status is not straightforward for a
program.  It's pretty easy for a human to interpret it on sight, but a
program must examine several aspects of the status response to determine
the status, success, or failure of an import.  There are bug reports
about this, but it's a thorny problem that has not yet been solved.

https://issues.apache.org/jira/browse/SOLR-3319

Thanks,
Shawn

Reply via email to