You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Tim Dunphy <bl...@gmail.com> on 2015/09/09 23:35:09 UTC
solr errors integrating with drupal
Hey guys,
I've setup a slightly older version of solr (4.10) with apache tomcat
7.0.64. And set up some drupal configurations according to this guide:
http://duntuk.com/how-install-apache-solr-46-apache-tomcat-7-use-drupal
Everything seemed to work after I copied the log4j libraries to the correct
location, which this tutorial leaves out.
But I find that I am now getting these errors in the solr logs when I load
up solr in the web browser:
Time (Local)LevelLoggerMessage9/9/2015, 5:19:41 PMWARNSolrResourceLoaderCan't
find (or read) directory to add to classloader:
../../../contrib/extraction/lib (resolved as:
/usr/local/tomcat/solr/drupal/../../../contrib/extraction/lib).9/9/2015,
5:19:41 PMWARNSolrResourceLoaderCan't find (or read) directory to add to
classloader: ../../../contrib/clustering/lib/ (resolved as:
/usr/local/tomcat/solr/drupal/../../../contrib/clustering/lib).9/9/2015,
5:19:42 PMWARNSolrResourceLoaderSolr loaded a deprecated plugin/analysis
class [solr.FloatField]. Please consult documentation how to replace it
accordingly.9/9/2015, 5:19:42 PMWARNSolrResourceLoaderSolr loaded a
deprecated plugin/analysis class [solr.DateField]. Please consult
documentation how to replace it accordingly.9/9/2015, 5:19:42
PMWARNSolrCore[drupal]
Solr index directory
'/usr/local/apache-tomcat-7.0.64/solr/drupal/data/index' doesn't exist.
Creating new index...9/9/2015, 5:19:42 PMWARNRequestHandlersMultiple
requestHandler registered to the same name: /update ignoring:
org.apache.solr.handler.UpdateRequestHandler9/9/2015, 5:19:42 PMWARN
RequestHandlersMultiple requestHandler registered to the same name:
/update/csv ignoring: org.apache.solr.handler.UpdateRequestHandler9/9/2015,
5:19:42 PMWARNRequestHandlersMultiple requestHandler registered to the same
name: /update/json ignoring: org.apache.solr.handler.UpdateRequestHandler
How can I correct these errors? I'll be able to show you whatever config
files you think may lead to a solution. I'll just need to know which ones
to show you, as I am still new to solr.
Thanks!
Tim
--
GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
Re: solr errors integrating with drupal
Posted by bl...@gmail.com.
Thanks Shawn! That was really helpful. I'll check into this tomorrow.
Sent from my iPhone
> On Sep 9, 2015, at 6:45 PM, Shawn Heisey <ap...@elyograg.org> wrote:
>
>> On 9/9/2015 3:35 PM, Tim Dunphy wrote:
>> But I find that I am now getting these errors in the solr logs when I load
>> up solr in the web browser:
>>
>> Time (Local)LevelLoggerMessage9/9/2015, 5:19:41 PMWARNSolrResourceLoaderCan't
>> find (or read) directory to add to classloader:
>> ../../../contrib/extraction/lib (resolved as:
>> /usr/local/tomcat/solr/drupal/../../../contrib/extraction/lib).9/9/2015,
>> 5:19:41 PMWARNSolrResourceLoaderCan't find (or read) directory to add to
>> classloader: ../../../contrib/clustering/lib/ (resolved as:
>> /usr/local/tomcat/solr/drupal/../../../contrib/clustering/lib).9/9/2015,
>> 5:19:42 PMWARNSolrResourceLoaderSolr loaded a deprecated plugin/analysis
>> class [solr.FloatField]. Please consult documentation how to replace it
>> accordingly.9/9/2015, 5:19:42 PMWARNSolrResourceLoaderSolr loaded a
>> deprecated plugin/analysis class [solr.DateField]. Please consult
>> documentation how to replace it accordingly.9/9/2015, 5:19:42
>> PMWARNSolrCore[drupal]
>> Solr index directory
>> '/usr/local/apache-tomcat-7.0.64/solr/drupal/data/index' doesn't exist.
>> Creating new index...9/9/2015, 5:19:42 PMWARNRequestHandlersMultiple
>> requestHandler registered to the same name: /update ignoring:
>> org.apache.solr.handler.UpdateRequestHandler9/9/2015, 5:19:42 PMWARN
>> RequestHandlersMultiple requestHandler registered to the same name:
>> /update/csv ignoring: org.apache.solr.handler.UpdateRequestHandler9/9/2015,
>> 5:19:42 PMWARNRequestHandlersMultiple requestHandler registered to the same
>> name: /update/json ignoring: org.apache.solr.handler.UpdateRequestHandler
>
> You have a configuration and schema designed for Solr 3.x, not for
> 4.10. Drupal *really* needs to update their offerings for modern Solr
> versions. Solr 3.6, the latest version in the 3.x series, was released
> in April of 2012. A large number of things in the configuration have
> become outdated in the last 3.5 years, and some new things that are
> highly recommended have been added to the examples.
>
> The first few messages in your log are complaining about <lib>
> configurations in your solrconfig.xml that point to nonexistent
> locations. Remove them.
>
> For the messages about a deprecated classes, you have fieldTypes in your
> schema.xml that are using Solr.FloatField or solr.DateField, which have
> been deprecated for a long time. See the "Deprecated" note on the javadoc:
>
> http://lucene.apache.org/solr/4_10_3/solr-core/org/apache/solr/schema/FloatField.html
> http://lucene.apache.org/solr/4_10_3/solr-core/org/apache/solr/schema/DateField.html
>
> Note that if you change your schema to use Trie classes as recommended
> there, you will have to completely reindex.
>
> https://wiki.apache.org/solr/HowToReindex
>
> For the other error messages, it is complaining that you have multiple
> request handlers named "/update", "/update/csv", and "/update/json". If
> you actually do have multiple definitions in your solrconfig.xml, just
> remove the multiples.
>
> If you do not actually have multiple request handlers with those names
> in your config, which I think is far more likely, then the reason the
> errors are coming up is because those handlers are implicitly defined in
> the Solr version you are running, and no longer need to be configured.
> In that case, simply remove those handler definitions from your
> solrconfig.xml and the log messages will go away.
>
> Thanks,
> Shawn
>
Re: solr errors integrating with drupal
Posted by Shawn Heisey <ap...@elyograg.org>.
On 9/9/2015 3:35 PM, Tim Dunphy wrote:
> But I find that I am now getting these errors in the solr logs when I load
> up solr in the web browser:
>
> Time (Local)LevelLoggerMessage9/9/2015, 5:19:41 PMWARNSolrResourceLoaderCan't
> find (or read) directory to add to classloader:
> ../../../contrib/extraction/lib (resolved as:
> /usr/local/tomcat/solr/drupal/../../../contrib/extraction/lib).9/9/2015,
> 5:19:41 PMWARNSolrResourceLoaderCan't find (or read) directory to add to
> classloader: ../../../contrib/clustering/lib/ (resolved as:
> /usr/local/tomcat/solr/drupal/../../../contrib/clustering/lib).9/9/2015,
> 5:19:42 PMWARNSolrResourceLoaderSolr loaded a deprecated plugin/analysis
> class [solr.FloatField]. Please consult documentation how to replace it
> accordingly.9/9/2015, 5:19:42 PMWARNSolrResourceLoaderSolr loaded a
> deprecated plugin/analysis class [solr.DateField]. Please consult
> documentation how to replace it accordingly.9/9/2015, 5:19:42
> PMWARNSolrCore[drupal]
> Solr index directory
> '/usr/local/apache-tomcat-7.0.64/solr/drupal/data/index' doesn't exist.
> Creating new index...9/9/2015, 5:19:42 PMWARNRequestHandlersMultiple
> requestHandler registered to the same name: /update ignoring:
> org.apache.solr.handler.UpdateRequestHandler9/9/2015, 5:19:42 PMWARN
> RequestHandlersMultiple requestHandler registered to the same name:
> /update/csv ignoring: org.apache.solr.handler.UpdateRequestHandler9/9/2015,
> 5:19:42 PMWARNRequestHandlersMultiple requestHandler registered to the same
> name: /update/json ignoring: org.apache.solr.handler.UpdateRequestHandler
You have a configuration and schema designed for Solr 3.x, not for
4.10. Drupal *really* needs to update their offerings for modern Solr
versions. Solr 3.6, the latest version in the 3.x series, was released
in April of 2012. A large number of things in the configuration have
become outdated in the last 3.5 years, and some new things that are
highly recommended have been added to the examples.
The first few messages in your log are complaining about <lib>
configurations in your solrconfig.xml that point to nonexistent
locations. Remove them.
For the messages about a deprecated classes, you have fieldTypes in your
schema.xml that are using Solr.FloatField or solr.DateField, which have
been deprecated for a long time. See the "Deprecated" note on the javadoc:
http://lucene.apache.org/solr/4_10_3/solr-core/org/apache/solr/schema/FloatField.html
http://lucene.apache.org/solr/4_10_3/solr-core/org/apache/solr/schema/DateField.html
Note that if you change your schema to use Trie classes as recommended
there, you will have to completely reindex.
https://wiki.apache.org/solr/HowToReindex
For the other error messages, it is complaining that you have multiple
request handlers named "/update", "/update/csv", and "/update/json". If
you actually do have multiple definitions in your solrconfig.xml, just
remove the multiples.
If you do not actually have multiple request handlers with those names
in your config, which I think is far more likely, then the reason the
errors are coming up is because those handlers are implicitly defined in
the Solr version you are running, and no longer need to be configured.
In that case, simply remove those handler definitions from your
solrconfig.xml and the log messages will go away.
Thanks,
Shawn