You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by MashupEye <ma...@163.com> on 2015/02/04 06:28:11 UTC
issues[SOLR-1970]
Hi, friends:
I'm a solr user. now has a problem.
https://issues.apache.org/jira/browse/SOLR-1970
I think:
The conf directory might not be writable, the data directory is a better place for dataimport.properties
or
This adds a <propertywriter /> element to solrconfig.xml file,
something like:
<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">data-config.xml</str>
<lst name="propertywriter">
<str name="type">SimplePropertiesWriter</str>
<str name="directory">${solr.product.data.dir}</str>
</lst>
<lst name="datasource">
<str name="driver">${jdbc.mysql.movie.driver}</str>
<str name="url">${jdbc.mysql.movie.url}</str>
<str name="user">${jdbc.mysql.movie.username}</str>
<str name="password">${jdbc.mysql.movie.password}</str>
<int name="batchSize">${jdbc.mysql.movie.batchsize}</int>
<bool name="readOnly">${jdbc.mysql.movie.readonly}</bool>
</lst>
</lst>
</requestHandler>
Please mark this issues, thank you very much!
best wishes!
Re: issues[SOLR-1970]
Posted by Shawn Heisey <ap...@elyograg.org>.
On 2/3/2015 10:28 PM, MashupEye wrote:
> I'm a solr user. now has a problem.
> https://issues.apache.org/jira/browse/SOLR-1970
>
> I think:
> The conf directory might not be writable, the data directory is a
> better place for dataimport.properties
> or
> This adds a <propertywriter /> element to solrconfig.xml file,
> something like:
>
> <requestHandler name="/dataimport"
> class="org.apache.solr.handler.dataimport.DataImportHandler">
> <lst name="defaults">
> <str name="config">data-config.xml</str>
> <lst name="propertywriter">
> <str name="type">SimplePropertiesWriter</str>
> <str name="directory">${solr.product.data.dir}</str>
> </lst>
> <lst name="datasource">
> <str name="driver">${jdbc.mysql.movie.driver}</str>
> <str name="url">${jdbc.mysql.movie.url}</str>
> <str name="user">${jdbc.mysql.movie.username}</str>
> <str name="password">${jdbc.mysql.movie.password}</str>
> <int name="batchSize">${jdbc.mysql.movie.batchsize}</int>
> <bool name="readOnly">${jdbc.mysql.movie.readonly}</bool>
> </lst>
> </lst>
> </requestHandler>
This should have been sent to the solr-user mailing list, not the dev list.
http://lucene.apache.org/solr/resources.html#community
These are the possible problems that you might be experiencing:
1) The config element should be propertyWriter, not propertywriter.
Configurations are case sensitive.
2) The solr.product.data.dir system property is not defined, or not correct.
3) You're not using a new enough Solr version. 4.1.0 is required.
Thanks,
Shawn
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org