0

I am following the tutorial "Running Nutch and Solr on Windows Tutorial" (Part 1) from Youtube and trying to configure properly Solr. I make the change in the C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\solr\WEB-INF\web.xml file as explained in the tutorial - putting the solr home path:

<env-entry-value>C:\cygwin64\home\solr\example\solr</env-entry-value>

And I gain in the browser:

    HTTP Status 500 - {msg=SolrCore 'collection1' is not available due to init failure: Error opening new searcher,
trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init 
failure: Error opening new searcher at 
org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:745) at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:307) at ...

When I copy the content of the folder C:\cygwin64\home\solr\example\solr to a new folder at C:\solr and the change the solr path to:

<env-entry-value>C:\solr</env-entry-value>

it works fine. It is the same situation when I Set the Java system property solr.solr.home my Solr Home:Windows > Start > Monitor Tomcat > Java Tab > Java Options -> Enter the following entry:

-Dsolr.solr.home=c:\solr

It works fine in this cae, but not when I put:

-Dsolr.solr.homeC:\cygwin64\home\solr\example\solr

I want solr to work under cygwin as in the tutorial, since it might be needed in that folder later, and I can't get it where could be the problem. Thanks in advance.

peter-b
  • 4,073
  • 6
  • 31
  • 43
user1680859
  • 1,160
  • 2
  • 24
  • 40

1 Answers1

0

I solved the problem, it was about file permissions at Cygwin folder, the Solr coludn't create folders. I changed manually the access rights.

user1680859
  • 1,160
  • 2
  • 24
  • 40