Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Install Solr 4.3, Pay Attention to Log Libraries

DZone's Guide to

Install Solr 4.3, Pay Attention to Log Libraries

· Big Data Zone
Free Resource

Learn best practices according to DataOps. Download the free O'Reilly eBook on building a modern Big Data platform.

After I configured Solr 4.3 on a Virtual Machine (side by side with a 4.0) it refuses to start, and the only error I have in catilina log files is

SEVERE: Error filterStart

This leaved me puzzled, but thanks to Alexandre and the exceptional Solr Mailing list I was directed toward the solution. Solr 4.3 changed logging mechanism; and in this link http://wiki.apache.org/solr/SolrLogging#What_changed you can read about what changed and how to enable logging for Solr 4.3.

It turns out that I’ve entirely missed this step

  • Copy the jars from solr/example/lib/ext into your container’s main lib directory. For tomcat this is usually tomcat/lib. These jars will set up SLF4J and log4j.

And this is the only reason why my Solr Instance refused to start, after libs are inside Tomcat/lib everything works as expected. It could be not your problem, but once logging libraries are there, surely you will get a better log that will help you troubleshoot why Solr refuses to start.

Find the perfect platform for a scalable self-service model to manage Big Data workloads in the Cloud. Download the free O'Reilly eBook to learn more.

Topics:

Published at DZone with permission of Ricci Gian Maria, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}