You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alexandre Rafalovitch (Jira)" <ji...@apache.org> on 2020/08/29 20:06:00 UTC
[jira] [Resolved] (SOLR-11529) Properties from configoverlay.json
are not working in dataimporter config
[ https://issues.apache.org/jira/browse/SOLR-11529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexandre Rafalovitch resolved SOLR-11529.
------------------------------------------
Resolution: Won't Fix
> Properties from configoverlay.json are not working in dataimporter config
> -------------------------------------------------------------------------
>
> Key: SOLR-11529
> URL: https://issues.apache.org/jira/browse/SOLR-11529
> Project: Solr
> Issue Type: Bug
> Components: contrib - DataImportHandler
> Affects Versions: 7.1
> Reporter: Shawn Heisey
> Priority: Major
>
> Properties set in the config overlay (configoverlay.json) are not working in the dataimport config, but they DO work in solrconfig.xml.
> A user in IRC reported the issue, and I duplicated it. I set up a cloud example, then adjusted the config and jars so that it would allow setting up a DIH handler. I did *not* add any JDBC driver jars.
> One of the properties added with the config API was "solr.db.driver" with a value of "com.mysql.jdbc.Driver". I modified the LTR transformer already in the config to use $\{solr.db.driver\} for the class. That resulted in an error message, and the error said that it couldn't load com.mysql.jdbc.Driver ... so I knew that the property substitution had worked.
> Then I tried to use the same property inside the dih-config.xml file referenced by the DIH handler. This also failed, but didn't mention the mysql driver class. So I modified the class to $\{solr.db.driver\}.foo, which resulted in the following error:
> {code}
> Full Import failed:java.lang.RuntimeException: java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: Could not load driver: .foo Processing Document # 1
> {code}
> This tells me that the properties were not loaded when DIH parsed its config.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org