I have correct url to : curl
http://srv-formation-solr:8983/solr/arguments_test/test_dih?command=full-imp
ort

And change overlay config
"/configs/arguments_test/DIH/indexation_events.xml" to "
DIH/indexation_events.xml"

But I have a new error:

Full Import
failed:org.apache.solr.handler.dataimport.DataImportHandlerException: Unable
to PropertyWriter implementation:ZKPropertiesWriter
        at
org.apache.solr.handler.dataimport.DataImporter.createPropertyWriter(DataImp
orter.java:330)
        at
org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.ja
va:411)
        at
org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:474
)
        at
org.apache.solr.handler.dataimport.DataImporter.lambda$runAsync$0(DataImport
er.java:457)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
        at
org.apache.solr.handler.dataimport.DocBuilder.loadClass(DocBuilder.java:935)
        at
org.apache.solr.handler.dataimport.DataImporter.createPropertyWriter(DataImp
orter.java:326)
        ... 4 more

Cordialement,





-----Message d'origine-----
De : msaunier [mailto:msaun...@citya.com] 
Envoyé : lundi 23 avril 2018 14:12
À : solr-user@lucene.apache.org
Objet : SolrCloud DIH (Data Import Handler) MySQL 404

Hello,

 

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>

 

 

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

CONFIG:

1.      I have create with the command the .system collection

2.      I have post in the blob the DataImportHandler jar file and the MySQL
connector jar

3.      I have add data-import-handler and mysql-connector-java runtimeLib
on the configoverlay.json file with the API

4.      I have create the DIH folder on the cloud with zkcli.sh script

5.      I have push with zkcli the DIH .xml configuration file

 

CONFIGOVERLAY CONTENT :

{

  "runtimeLib":{

    "mysql-connector-java":{

      "name":"mysql-connector-java",

      "version":1},

    "data-import-handler":{

      "name":"data-import-handler",

      "version":1}},

  "requestHandler":{"/test_dih":{

      "name":"/test_dih",

      "class":"org.apache.solr.handler.dataimport.DataImportHandler",

      "runtimeLib":true,

      "version":1,

 
"defaults":{"config":"/configs/arguments_test/DIH/indexation_events.xml"}}}

}

 

 

Thanks for your help


Reply via email to