On 4/23/2018 6:12 AM, msaunier wrote:
I have a problem with DIH in SolrCloud. I don't understand why, so I need
your help.

Solr 6.6 in Cloud.

##############################

COMMAND:

curl http://srv-formation-solr:8983/solr/test_dih?command=full-import

RESULT:

<html>
   <head>
     <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
     <title>Error 404 Not Found</title>
   </head>
   <body><h2>HTTP ERROR 404</h2>
     <p>Problem accessing /solr/test_dih. Reason:
   <pre>    Not Found</pre></p>
   </body>
</html>

This looks like an incomplete URL.

What exactly is test-dih?  If it is the name of your collection, then you are missing the handler, which is usually "/dataimport". If "/test-dih" is the name if your handler, then you are missing the name of the core or the collection.

With SolrCloud, it's actually better to direct your request to a specific core for DIH, something like collection_shard1_replica1.  If you direct it to the collection you never know which core will actually end up with the request, and will have a hard time getting the status of the import if the status request ends up on a different core than the full-import command.

A correct full URL should look something like this:

http://host:port/solr/test_shard1_replica2/dataimport?command=full-import

Looking at later messages, you may have figured this out at least partially.  The exception in your second message looks really odd.  (and I really have no idea what you are talking about with an overlay)

Thanks,
Shawn

Reply via email to