Here are the steps made:
1 Got Solr:
wget http://my.mirror.com/apache.org/lucene/solr/4.6.1/solr-4.6.1.tgz
Unziped in /root/solr/
Installed jetty 6:
Step 1 : Enable the jpackage repo Download the jpackage.repo file to your /etc/yum.repos.d/ directory.
cd /etc/yum.repos.d/
wget http://jpackage.org/jpackage50.repo
Step 2 : Install the jetty package you want
yum search jetty will show you a list of jetty packages you want to install. At the time of writing you get 2 options - jetty 5 and
jetty 6. We installed jetty 6.
yum install jetty6
Copied /dist/solr.war to /usr/share/jetty6/webapps
Copied start.jar in my /home/solr directory
java -Dsolr.solr.home=/home/solr -jar start.jar
Got the exception:
java.io.FileNotFoundException: No XML configuration files specified in start.config or command line. at org.eclipse.jetty.start.Main.start(Main.java:502) at org.eclipse.jetty.start.Main.main(Main.java:96)
Usage: java -jar start.jar [options] [properties] [configs] java -jar start.jar --help # for more information
Any idea why?
if you are going to use jetty, I think you are better off using the version that comes bundled with solr.
Just follow the example/README.txt and you will start solr with bundled jetty (it is jetty8 btw). Advantages are that it is properly tunned/configured for Solr, and it is the most used container for Solr in my experience.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments