Solr--Basic Example execution error

Hello ,

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

 
 java -Durl=http://locahost:8983/solr/update -jar post.jar books.csv
 
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 .

There appears to be a typo ? locahost should be localhost .

Sorry I replaced ip address with localhost in the above example , in the real time I have given ip address

according to https://wiki.apache.org/solr/UpdateCSV\#Methods\_of\_uploading\_CSV_records you should adapt your url to

http://localhost:8983/solr/update/csv

Alternatively try it with curl .

HTH