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 stocki <st...@shopgate.com> on 2010/03/08 15:08:57 UTC
Tomcat save my Index temp ...
Hello.
is use 2 cores for solr.
when is restart my tomcat on debian, tomcat delete my index.
is set data.dir to
<dataDir>${solr.data.dir:./suggest/data}</dataDir>
and
<dataDir>${solr.data.dir:./search/data}</dataDir>
<cores adminPath="/admin/cores">
<core name="search" instanceDir="search" dataDir="/search/data/index"/>
<core name="suggest" instanceDir="suggest"
dataDir="/suggest/data/index"/>
</cores>
so. why is my index only temp ?
solr save my index to: /var/lib/tomcat5.5/temp
i test my solr env on XP with tomcat, and all ist okay =(
--
View this message in context: http://old.nabble.com/Tomcat-save-my-Index-temp-...-tp27819967p27819967.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Tomcat save my Index temp ...
Posted by stocki <st...@shopgate.com>.
okay i got it .. iam studid XD i set my dataDir to /var/data/solr/... and
gives the correct rights now it runs.
Jens Kapitza-2 wrote:
>
> Am 08.03.2010 15:08, schrieb stocki:
>> Hello.
>>
>> is use 2 cores for solr.
>>
>> when is restart my tomcat on debian, tomcat delete my index.
>>
> you should check your tomcat-setup.
>> is set data.dir to
>> <dataDir>${solr.data.dir:./suggest/data}</dataDir>
>> and
>> <dataDir>${solr.data.dir:./search/data}</dataDir>
>>
>>
> use an absolute path [you have not set the solr.home path] this is
> working/tmp dir from tomcat per default.
>> <cores adminPath="/admin/cores">
>> <core name="search" instanceDir="search"
>> dataDir="/search/data/index"/>
>> <core name="suggest" instanceDir="suggest"
>> dataDir="/suggest/data/index"/>
>> </cores>
>>
>>
> is ok. but this is relative from solr.home.
>> so. why is my index only temp ?
>>
>>
> try to setup solr again.
> http://wiki.apache.org/solr/SolrTomcat
>
> try to setup with Context fragment.
>
> Create a Tomcat Context fragment to point /docBase/ to the
> /$SOLR_HOME/apache-solr-1.3.0.war/ file and /solr/home/ to /$SOLR_HOME/:
>
>
> and avoid storing the data in .../tmp/
>
>
>
--
View this message in context: http://old.nabble.com/Tomcat-save-my-Index-temp-...-tp27819967p27834924.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Tomcat save my Index temp ...
Posted by stocki <st...@shopgate.com>.
okay i install my solr so like how the wiki said. and a new try. here one of
my two XML-files:
/var/lib/conf/Catalina/localhost/suggest.xml
<Context docBase="/var/lib/tomcat5.5/solr.war" debug="0" crossContext="true"
>
<Environment name="solr/home" type="java.lang.String"
value="/home/sites/my/path/to/Solr/home/cores/suggest" override="true" />
</Context>
should i set name="solr/home" to --> name="$SOLR_HOME" ???
id did not find the reason.
Solr Home is set by :
export JAVA_OPTS="$JAVA_OPTS
-Dsolr.solr.home=/home/sites/path/to/home/cores"
in my cores/ home folder ist the serv.xml from my post above.
Jens Kapitza-2 wrote:
>
> Am 08.03.2010 15:08, schrieb stocki:
>> Hello.
>>
>> is use 2 cores for solr.
>>
>> when is restart my tomcat on debian, tomcat delete my index.
>>
> you should check your tomcat-setup.
>> is set data.dir to
>> <dataDir>${solr.data.dir:./suggest/data}</dataDir>
>> and
>> <dataDir>${solr.data.dir:./search/data}</dataDir>
>>
>>
> use an absolute path [you have not set the solr.home path] this is
> working/tmp dir from tomcat per default.
>> <cores adminPath="/admin/cores">
>> <core name="search" instanceDir="search"
>> dataDir="/search/data/index"/>
>> <core name="suggest" instanceDir="suggest"
>> dataDir="/suggest/data/index"/>
>> </cores>
>>
>>
> is ok. but this is relative from solr.home.
>> so. why is my index only temp ?
>>
>>
> try to setup solr again.
> http://wiki.apache.org/solr/SolrTomcat
>
> try to setup with Context fragment.
>
> Create a Tomcat Context fragment to point /docBase/ to the
> /$SOLR_HOME/apache-solr-1.3.0.war/ file and /solr/home/ to /$SOLR_HOME/:
>
>
> and avoid storing the data in .../tmp/
>
>
>
--
View this message in context: http://old.nabble.com/Tomcat-save-my-Index-temp-...-tp27819967p27833705.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Tomcat save my Index temp ...
Posted by stocki <st...@shopgate.com>.
okay i install my solr so like how the wiki said. and a new try. here one of
my two files:
<Context docBase="/var/lib/tomcat5.5/solr.war" debug="0" crossContext="true"
>
<Environment name="solr/home" type="java.lang.String"
value="/home/sites/my/path/to/Solr/home/cores/suggest" override="true" />
</Context>
Jens Kapitza-2 wrote:
>
> Am 08.03.2010 15:08, schrieb stocki:
>> Hello.
>>
>> is use 2 cores for solr.
>>
>> when is restart my tomcat on debian, tomcat delete my index.
>>
> you should check your tomcat-setup.
>> is set data.dir to
>> <dataDir>${solr.data.dir:./suggest/data}</dataDir>
>> and
>> <dataDir>${solr.data.dir:./search/data}</dataDir>
>>
>>
> use an absolute path [you have not set the solr.home path] this is
> working/tmp dir from tomcat per default.
>> <cores adminPath="/admin/cores">
>> <core name="search" instanceDir="search"
>> dataDir="/search/data/index"/>
>> <core name="suggest" instanceDir="suggest"
>> dataDir="/suggest/data/index"/>
>> </cores>
>>
>>
> is ok. but this is relative from solr.home.
>> so. why is my index only temp ?
>>
>>
> try to setup solr again.
> http://wiki.apache.org/solr/SolrTomcat
>
> try to setup with Context fragment.
>
> Create a Tomcat Context fragment to point /docBase/ to the
> /$SOLR_HOME/apache-solr-1.3.0.war/ file and /solr/home/ to /$SOLR_HOME/:
>
>
> and avoid storing the data in .../tmp/
>
>
>
--
View this message in context: http://old.nabble.com/Tomcat-save-my-Index-temp-...-tp27819967p27823287.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Tomcat save my Index temp ...
Posted by Jens Kapitza <j....@schwarze-allianz.de>.
Am 08.03.2010 15:08, schrieb stocki:
> Hello.
>
> is use 2 cores for solr.
>
> when is restart my tomcat on debian, tomcat delete my index.
>
you should check your tomcat-setup.
> is set data.dir to
> <dataDir>${solr.data.dir:./suggest/data}</dataDir>
> and
> <dataDir>${solr.data.dir:./search/data}</dataDir>
>
>
use an absolute path [you have not set the solr.home path] this is
working/tmp dir from tomcat per default.
> <cores adminPath="/admin/cores">
> <core name="search" instanceDir="search" dataDir="/search/data/index"/>
> <core name="suggest" instanceDir="suggest"
> dataDir="/suggest/data/index"/>
> </cores>
>
>
is ok. but this is relative from solr.home.
> so. why is my index only temp ?
>
>
try to setup solr again.
http://wiki.apache.org/solr/SolrTomcat
try to setup with Context fragment.
Create a Tomcat Context fragment to point /docBase/ to the
/$SOLR_HOME/apache-solr-1.3.0.war/ file and /solr/home/ to /$SOLR_HOME/:
and avoid storing the data in .../tmp/
Re: Tomcat save my Index temp ...
Posted by Erick Erickson <er...@gmail.com>.
You're probably hitting the difference between *nix file
handling and Windows. When you delete a file on a
Unix variant, if some other program has the file open
the file doesn't go away until that other program closes
it.
HTH
Erick
On Mon, Mar 8, 2010 at 9:08 AM, stocki <st...@shopgate.com> wrote:
>
> Hello.
>
> is use 2 cores for solr.
>
> when is restart my tomcat on debian, tomcat delete my index.
>
> is set data.dir to
> <dataDir>${solr.data.dir:./suggest/data}</dataDir>
> and
> <dataDir>${solr.data.dir:./search/data}</dataDir>
>
> <cores adminPath="/admin/cores">
> <core name="search" instanceDir="search" dataDir="/search/data/index"/>
> <core name="suggest" instanceDir="suggest"
> dataDir="/suggest/data/index"/>
> </cores>
>
> so. why is my index only temp ?
>
> solr save my index to: /var/lib/tomcat5.5/temp
>
> i test my solr env on XP with tomcat, and all ist okay =(
> --
> View this message in context:
> http://old.nabble.com/Tomcat-save-my-Index-temp-...-tp27819967p27819967.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>