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 Neha Jatav <ne...@gmail.com> on 2013/01/28 11:00:46 UTC
Error setting up SOLR with Tomcat on Windows
Dear Sir,
I am not able to files to SOLR using post.jar. I am getting the following
message. I get 0 results upon querying:-
C:\Developer\solr-4.1.0\example\exampledocs>java -Durl=<solr-url>/update
-jar post.jar *.xml
SimplePostTool version 1.5
Posting files to base url <solr-url>/solr/updat
e using content-type application/xml..
POSTing file gb18030-example.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file hd.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file ipod_other.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file ipod_video.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file manufacturers.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file mem.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file money.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file monitor.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file monitor2.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file mp500.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file sd500.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file solr.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file utf8-example.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
POSTing file vidcard.xml
SimplePostTool: WARNING: Solr returned an error #302 Found
14 files indexed.
COMMITting Solr index changes to <solr-url>/update..
SimplePostTool: WARNING: Solr returned an error #302 Found for url
<solr-url>/update?commit=true
Please find attached the error report upon clicking <solr-URL>/
collection1/browse
--
Sent from Gmail Mobile
Re: Error setting up SOLR with Tomcat on Windows
Posted by Rafał Kuć <r....@solr.pl>.
Hello!
What Gora says is valid. Just point the SimplePostTools to the correct
host, core name and handler and it should work just fine, of course if
Solr is up and running. For example the following works just fine with
Solr running on 8080:
java -Durl=http://localhost:8080/solr/collection1/update -jar post.jar *.xml
--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch
> (a) I am not using jetty, I am using tomcat as mentioned in the subject line
> (b) I am using some other port number and that I have included in the url
> On Monday, January 28, 2013, Gora Mohanty <go...@mimirtech.com> wrote:
>> On 28 January 2013 16:11, Neha Jatav <ne...@gmail.com> wrote:
>>> Dear Gora Mohanty,
>>>
>>> I am not using <solr-url> literally. I am using the localhost url slash
>>> solr.
>>
>> Again, please read the documentation. As mentioned earlier: (a) You
>> do not need -Durl=... if using built-in Jetty, (b) and the URL should
> include
>> the 8983 port number.
>>
>> Regards,
>> Gora
>>
Re: Error setting up SOLR with Tomcat on Windows
Posted by Neha Jatav <ne...@gmail.com>.
Got it! There's an authenticator with the tomcat and the cookies are
missing when I do an update. Thanks all.
On Monday, January 28, 2013, Stefan Matheis <ma...@gmail.com>
wrote:
> Neha
>
> One thing that made me think is the line "SimplePostTool: WARNING: Solr
returned an error #302 Found" - Status Code 302 is no real error .. it's a
forward/redirect to another url. so, you want to check the used url with
curl/wget/or maybe even a normal browser, to see where it gets redirected?
>
> Stefan
>
>
> On Monday, January 28, 2013 at 12:58 PM, Neha Jatav wrote:
>
>> (a) I am not using jetty, I am using tomcat as mentioned in the subject
line
>> (b) I am using some other port number and that I have included in the url
>>
>> On Monday, January 28, 2013, Gora Mohanty <gora@mimirtech.com (mailto:
gora@mimirtech.com)> wrote:
>> > On 28 January 2013 16:11, Neha Jatav <neha.jatav@gmail.com (mailto:
neha.jatav@gmail.com)> wrote:
>> > > Dear Gora Mohanty,
>> > >
>> > > I am not using <solr-url> literally. I am using the localhost url
slash
>> > > solr.
>> >
>> >
>> >
>> > Again, please read the documentation. As mentioned earlier: (a) You
>> > do not need -Durl=... if using built-in Jetty, (b) and the URL should
>>
>>
>> include
>> > the 8983 port number.
>> >
>> > Regards,
>> > Gora
>>
>>
>>
>> --
>> Sent from Gmail Mobile
>
>
>
>
--
Sent from Gmail Mobile
Re: Error setting up SOLR with Tomcat on Windows
Posted by Stefan Matheis <ma...@gmail.com>.
Neha
One thing that made me think is the line "SimplePostTool: WARNING: Solr returned an error #302 Found" - Status Code 302 is no real error .. it's a forward/redirect to another url. so, you want to check the used url with curl/wget/or maybe even a normal browser, to see where it gets redirected?
Stefan
On Monday, January 28, 2013 at 12:58 PM, Neha Jatav wrote:
> (a) I am not using jetty, I am using tomcat as mentioned in the subject line
> (b) I am using some other port number and that I have included in the url
>
> On Monday, January 28, 2013, Gora Mohanty <gora@mimirtech.com (mailto:gora@mimirtech.com)> wrote:
> > On 28 January 2013 16:11, Neha Jatav <neha.jatav@gmail.com (mailto:neha.jatav@gmail.com)> wrote:
> > > Dear Gora Mohanty,
> > >
> > > I am not using <solr-url> literally. I am using the localhost url slash
> > > solr.
> >
> >
> >
> > Again, please read the documentation. As mentioned earlier: (a) You
> > do not need -Durl=... if using built-in Jetty, (b) and the URL should
>
>
> include
> > the 8983 port number.
> >
> > Regards,
> > Gora
>
>
>
> --
> Sent from Gmail Mobile
Re: Error setting up SOLR with Tomcat on Windows
Posted by Neha Jatav <ne...@gmail.com>.
(a) I am not using jetty, I am using tomcat as mentioned in the subject line
(b) I am using some other port number and that I have included in the url
On Monday, January 28, 2013, Gora Mohanty <go...@mimirtech.com> wrote:
> On 28 January 2013 16:11, Neha Jatav <ne...@gmail.com> wrote:
>> Dear Gora Mohanty,
>>
>> I am not using <solr-url> literally. I am using the localhost url slash
>> solr.
>
> Again, please read the documentation. As mentioned earlier: (a) You
> do not need -Durl=... if using built-in Jetty, (b) and the URL should
include
> the 8983 port number.
>
> Regards,
> Gora
>
--
Sent from Gmail Mobile
Re: Error setting up SOLR with Tomcat on Windows
Posted by Gora Mohanty <go...@mimirtech.com>.
On 28 January 2013 16:11, Neha Jatav <ne...@gmail.com> wrote:
> Dear Gora Mohanty,
>
> I am not using <solr-url> literally. I am using the localhost url slash
> solr.
Again, please read the documentation. As mentioned earlier: (a) You
do not need -Durl=... if using built-in Jetty, (b) and the URL should include
the 8983 port number.
Regards,
Gora
Re: Error setting up SOLR with Tomcat on Windows
Posted by Neha Jatav <ne...@gmail.com>.
Dear Gora Mohanty,
I am not using <solr-url> literally. I am using the localhost url slash
solr.
On Monday, January 28, 2013, Gora Mohanty <go...@mimirtech.com> wrote:
> On 28 January 2013 15:30, Neha Jatav <ne...@gmail.com> wrote:
> [...]
>> I am not able to files to SOLR using post.jar. I am getting the following
>> message. I get 0 results upon querying:-
>>
>>
>>
>> C:\Developer\solr-4.1.0\example\exampledocs>java -Durl=<solr-url>/update
>> -jar post.jar *.xml
> [...]
>
> Please read and follow the instructions in example/README.txt
> under the top-level of a Solr distribution for how to index documents
> using post.jar. Here, <solr-url> is a path like
http://localhost:8983/solr/
> (assuming you are using the built-in Jetty container) and not a
> literal value, and you should not actually need -Durl=...
>
> Regards,
> Gora
>
--
Sent from Gmail Mobile
Re: Error setting up SOLR with Tomcat on Windows
Posted by Gora Mohanty <go...@mimirtech.com>.
On 28 January 2013 15:30, Neha Jatav <ne...@gmail.com> wrote:
[...]
> I am not able to files to SOLR using post.jar. I am getting the following
> message. I get 0 results upon querying:-
>
>
>
> C:\Developer\solr-4.1.0\example\exampledocs>java -Durl=<solr-url>/update
> -jar post.jar *.xml
[...]
Please read and follow the instructions in example/README.txt
under the top-level of a Solr distribution for how to index documents
using post.jar. Here, <solr-url> is a path like http://localhost:8983/solr/
(assuming you are using the built-in Jetty container) and not a
literal value, and you should not actually need -Durl=...
Regards,
Gora