I have add debug: curl "http://srv-formation-solr:8983/solr/arguments_test/test_dih?command=full-im port&commit=true&debug=true" <?xml version="1.0" encoding="UTF-8"?> <response> <lst name="responseHeader"><int name="status">500</int><int name="QTime">588</int></lst><lst name="initArgs"><bool name="runtimeLib">true</bool><long name="version">1</long><lst name="defaults"><str name="config">DIH/indexation_events.xml</str></lst></lst><str name="command">full-import</str><lst name="error"><str name="trace">java.lang.NullPointerException at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.ja va:420) at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:474 ) at org.apache.solr.handler.dataimport.DataImportHandler.handleRequestBody(DataI mportHandler.java:180) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase. java:173) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2477) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:723) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:529) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java: 361) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java: 305) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler .java:1691) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143 ) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java :226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java :1180) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java: 185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java: 1112) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141 ) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHand lerCollection.java:213) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection. java:119) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:1 34) at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java: 335) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:1 34) at org.eclipse.jetty.server.Server.handle(Server.java:534) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConne ction.java:273) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java: 93) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceC onsume(ExecuteProduceConsume.java:303) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume( ExecuteProduceConsume.java:148) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProd uceConsume.java:136) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java: 671) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:5 89) at java.lang.Thread.run(Thread.java:748) </str><int name="code">500</int></lst> </response>
####################################### And reload config: curl "http://srv-formation-solr:8983/solr/arguments_test/test_dih?command=full-im port&commit=true&debug=true&command=reload-config" <?xml version="1.0" encoding="UTF-8"?> <response> <lst name="responseHeader"><int name="status">500</int><int name="QTime">647</int></lst><lst name="error"><str name="msg">java.util.Arrays$ArrayList cannot be cast to java.lang.String</str><str name="trace">java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be cast to java.lang.String at org.apache.solr.handler.dataimport.RequestInfo.<init>(RequestInfo.java :52) at org.apache.solr.handler.dataimport.DataImportHandler.handleRequestBody(DataI mportHandler.java:128) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase. java:173) at org.apache.solr.core.SolrCore.execute(SolrCore.java:2477) at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:723) at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:529) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java: 361) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java: 305) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler .java:1691) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143 ) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java :226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java :1180) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java: 185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java: 1112) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141 ) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHand lerCollection.java:213) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection. java:119) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:1 34) at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java: 335) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:1 34) at org.eclipse.jetty.server.Server.handle(Server.java:534) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConne ction.java:273) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java: 93) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceC onsume(ExecuteProduceConsume.java:303) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume( ExecuteProduceConsume.java:148) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProd uceConsume.java:136) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java: 671) at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:5 89) at java.lang.Thread.run(Thread.java:748) </str><int name="code">500</int></lst> </response> -----Message d'origine----- De : msaunier [mailto:msaun...@citya.com] Envoyé : lundi 23 avril 2018 14:47 À : solr-user@lucene.apache.org Objet : RE: SolrCloud DIH (Data Import Handler) MySQL 404 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