solr - Apache Tomcat Environment Variables -
when deploy .war file tomcat ide define that:
-dsolr.solr.home=/home/vicita/desktop/lucene-solr/solr/solr_h -dsolr.data.dir=/home/vicita/desktop/lucene-solr/solr/solr_h/data
however when deploy remote machine have define parameters. book follow says have define $tomcat_home/conf/catalina/localhost within xml file:
<context path="/solr" docbase="/usr/share/tomcat/webapps/solr.war" debug="0" crosscontext="true"> <environment name="solr/home" type="java.lang.string" value="/usr/share/solr_h/" override="true"/> </context>
by way:
/usr/share/solr_h
is directory should mention. first thing want know didn't define variable solr.solr.home @ here?
second thing .war not find folder , throws error. tried create setenv.sh , put:
-dsolr.solr.home=/usr/share/solr_h -dsolr.data.dir=/usr/share/solr_h/data
however when tomcat starts says:
/usr/share/tomcat/bin/setenv.sh: line 1: -dsolr.solr.home=/usr/share/solr_h: no such file or directory /usr/share/tomcat/bin/setenv.sh: line 2: -dsolr.data.dir=/usr/share/solr_h/data: no such file or directory using catalina_base: /usr/share/tomcat using catalina_home: /usr/share/tomcat using catalina_tmpdir: /usr/share/tomcat/temp using jre_home: /usr/java/default using classpath: /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar
any ideas fix it?
the xml file under localhost had different name .war file. assigned same name .war's , has resolved.
Comments
Post a Comment