lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: issues[SOLR-1970]
Date Wed, 04 Feb 2015 05:57:21 GMT
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


Mime
View raw message