Reputation: 333
I am new to Apache Solr. I am going by the following tutorial -https://examples.javacodegeeks.com/enterprise-java/apache-solr/apache-solr-tutorial-beginners/
While I am able to index my books.csv on my local machine, but I am getting following issue on my virtual machine- Unable to access jarfile post.jar
I am using Solr 6.3.0 and java 1.8
Please help !!
Upvotes: 1
Views: 1849
Reputation: 377
Try to add the path of post.jar to your solrconfig.xml file so that the core or collection can know where it is present.
Upvotes: 0
Reputation: 1
Sometimes there is an issue reading the path of the post.jar file.
In the tutorial it says the command is: java -jar /exampledocs/post.jar /films/films.xml
Instead,
Give the full path:
java -jar C:\Program Files\solr-8.6.1\example\films\post.jar films.xml
This worked for me
Upvotes: 0
Reputation: 663
Your java command is not able to find post.jar
in bin directory.
by default post.jar
is present in {solr_home}\example\exampledocs
directory of solr
you can try giving following path for post.jar
-jar ../example/exampledocs/post.jar
Complete command as per your directory structure.
solr-6.0.0\bin>java -Dtype=text/csv -Durl=http://localhost:8983/solr/jcg/update -jar ../example/exampledocs/post.jar books.csv
Upvotes: 1