Solr--Basic Example execution error


 
Thread Tools Search this Thread
Top Forums Programming Solr--Basic Example execution error
# 1  
Old 08-07-2014
Solr--Basic Example execution error

Hello ,

I am new bee to Solr and trying to run sample example for solr .

HTML Code:
 java -Durl=http://locahost:8983/solr/update -jar post.jar books.csv
Code:
Error 
 SimplePostTool version 1.5
 Posting files to base url http://locahost:8983/solr/update using content-type application/xml..
 POSTing file books.csv
 SimplePostTool: WARNING: Solr returned an error #404 Not Found
 SimplePostTool: WARNING: IOException while reading response: java.io.FileNotFoundException: http://locahost:8983/solr/update
 1 files indexed.
 COMMITting Solr index changes to http://locahost:8983/solr/update..
 SimplePostTool: WARNING: Solr returned an error #404 Not Found for url http://locahost:8983/solr/update?commit=true
 Time spent: 0:00:00.129

Not sure why its unable to contact host , I see that the URL is working fine too .

Last edited by Scrutinizer; 08-08-2014 at 05:36 AM.. Reason: code tags
# 2  
Old 08-08-2014
There appears to be a typo ? locahost should be localhost .
# 3  
Old 08-08-2014
Sorry I replaced ip address with localhost in the above example , in the real time I have given ip address
# 4  
Old 08-08-2014
according to https://wiki.apache.org/solr/UpdateC...ng_CSV_records you should adapt your url to
Code:
http://localhost:8983/solr/update/csv

Alternatively try it with curl.

HTH
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash on Fedora error on basic script

I am not able to execute bash script on Fedora. They were running on another environment. This is a sample script: #!/usr/bin/bash input="./data/heu/hout1" i=1 j=0 while IFS= read -r file1 do #Some code here done < "$input" #echo $j I get an error: bash: s.sh: command not... (3 Replies)
Discussion started by: ngabrani
3 Replies

2. UNIX for Dummies Questions & Answers

Execution Error!

I am having output in this format.. -rw-r--r-- 1 root root 20 Jan 01 14:32 abc.txt -rw-r--r-- 1 root root 40 Jan 01 14:32 abcd.txt -rw-r--r-- (9 Replies)
Discussion started by: bhargav456
9 Replies

3. Shell Programming and Scripting

Basic question on shell script execution

I have two shell scripts in the different directories listed below, /root/dev/dir1/test.sh /root/dev/dir2/master.sh I am executing the master.sh script from the test.sh like below and getting 'Permission denied' error. #! /bin/sh #test.sh path='/root/dev' $path/dir2/master.sh But it... (2 Replies)
Discussion started by: vel4ever
2 Replies

4. Ubuntu

Solr Documentation NEEDED | Solr 1.4 on Ubuntu 10.04 LTS

I have Solr 1.4 running on Tomcat6 installed in an Ubuntu 10.04 LTS openVZ container. I am looking for documentation on Solr. I need to know where Solr and Tomcat do their logging by default when installed from the standard Ubuntu apt repo. I would like to know more about both technologies but Solr... (0 Replies)
Discussion started by: Druonysus
0 Replies

5. Shell Programming and Scripting

error during the execution of script

Hi, I have a cron job which executes daily once 9 PM. The script is like if then TYPE=OC elif then TYPE=i elif then TYPE=mmc elif then TYPE=CB elif then TYPE=oth fi (1 Reply)
Discussion started by: surjyap
1 Replies

6. UNIX for Dummies Questions & Answers

basic question about error report in AIX

Hello everybody, iam new to unix. here is a question i had. when i run errpt -a , sample out put is as follows LABEL: FCP_ARRAY_ERR4 IDENTIFIER: D5385D18 Date/Time: Mon Sep 25 11:15:59 Sequence Number: 182869 Machine Id: 000166784C00 Node Id: ... (0 Replies)
Discussion started by: karthikosu
0 Replies

7. Shell Programming and Scripting

Basic Error

#!/bin/sh read a if ; then echo "ur good"; else echo "ur bad" exit fi I am getting the following error! /home/xyz/scripts >help.sh apple help.sh: [apple: not found. ur bad can i know what would be the wrong in my script (3 Replies)
Discussion started by: gkrishnag
3 Replies
Login or Register to Ask a Question