I'm stuck... I now have /tomcat5.5/webapps/solr (exploded solr.war), /tomcat5.5/webapps/solr/solr-example/. I've ran
export JAVA_OPTS="$JAVA_OPTS-Dsolr.solr.home=/usr/share/tomcat5.5/webapps/solr/example/solr/ to make /example/solr/ as a home directory. What am I doing wrong? Quoting Shalin Shekhar Mangar : Hi Mihails, The solr home is a directory which contains the conf/ and data/ folders. The conf folder contains solrconfig.xml, schema.xml and other such configuration files. The data/ folder contains the index files. Other than adding the war file to tomcat, you also need to designate a certain folder as solr home, so that solr knows from where to load it's configuration. By default, solr searches for a folder named "solr" under the current working directory (pwd) to use as home. There are other ways of configuring it as given in solr wiki. Hope that helpes. 2008/6/11 Mihails Agafonovs : > I've already done that, but cannot access solr via web, and apache log > says something wrong with solr home directory. > ----- > Couldn't start SOLR. Check solr/home property. > ----- > Quoting "Chakraborty, Kishore K." : Mihails, > Put the solr.war into the webapps directory and restart tomcat, then > follow up the console and you'll see messages saying solr.war is > getting deployed. > Use a recent nightly build as that has the dataimport related patch > included. > Regards > Kishore. > -----Original Message----- > From: Mihails Agafonovs [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 11, 2008 1:13 PM > To: solr-user@lucene.apache.org > Subject: Re: DataImport > If I've copied the solr.war under tomcat/webapps directory, after > restarting it the archive extracts itself and I get solr directory. > Why do I need to set example-solr-home/solr, which is not in the > /webapps directory, as home directory? > Quoting Shalin Shekhar Mangar : No, the steps are as follows: > 1. Download the example-solr-home.jar from the DataImportHandler > wiki page > 2. Extract it. You'll find a folder named "example-solr-home" and a > solr.war > file after extraction > 3. Copy the solr.war to tomcat_home/webapps. You don't need any > other solr > instance. This war is self-sufficient. > 4. You need to set the example-solr-home/solr folder as the solr > home > folder. For instructions on how to do that, look at > http://wiki.apache.org/solr/SolrTomcat > From the port number of the URL you are trying, it seems that you're > using > the Jetty supplied with Solr instead of Tomcat. > 2008/6/9 Mihails Agafonovs : > > I've placed the solr.war under the tomcat directory, restarted > tomcat > > to deploy the solr.war. But still... there is no .jar, no folder > named > > "example-data-config", and hitting > > http://localhost:8983/solr/dataimport doesn't work. > > Do I need the original Solr instance to use this .war with? > > Quoting Shalin Shekhar Mangar : 1. Correct, there is no jar. You > can > > use the solr.war file. If you really > > need a jar, you'll need to use the SOLR-469.patch at > > http://issues.apache.org/jira/browse/SOLR-469 and build solr from > > source > > after applying that patch. > > 2. The jar contains a folder named "example-solr-home". Please > check > > again. > > Please let me know if you run into any problems. > > 2008/6/9 Mihails Agafonovs : > > > Looked through the tutorial on data import, section "Full > Import > > > Example". > > > 1) Where is this dataimport.jar? There is no such file in the > > > extracted example-solr-home.jar. > > > 2) "Use the solr folder inside example-data-config folder as > your > > > solr home." What does this mean? Anyway, there is no folder > > > example-data-config. > > > Ar cieņu, Mihails > > -- > > Regards, > > Shalin Shekhar Mangar. > > Ar cieņu, Mihails > > > > Links: > > ------ > > [1] mailto:[EMAIL PROTECTED] > > > -- > Regards, > Shalin Shekhar Mangar. > Ar cieņu, Mihails > Links: > ------ > [1] mailto:[EMAIL PROTECTED] > Ar cieņu, Mihails > > Links: > ------ > [1] mailto:[EMAIL PROTECTED] > -- Regards, Shalin Shekhar Mangar. Ar cieņu, Mihails Links: ------ [1] mailto:[EMAIL PROTECTED]