Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Nothing to start" when trying to start Apache Solr

I have Ubuntu 14.10 and now I want to install and try Apache Solr. First of all, I visited official Apache Solr page and downloaded a zip archive. Then I unzipped it in one folder called solr, so that this manually created folder now contains these files:

contexts/
libs/
modules/
...
start.jar

Among those files I see start.jar and, so, following one of the tutorials I tried this command (inside this very folder):

$ java -jar start.jar

But, as a result, I have this error message: WARNING. Nothing to start, exiting.... I wonder what I'm doing wrong.

like image 228
Jacobian Avatar asked Jun 22 '15 15:06

Jacobian


People also ask

How do I start Apache Solr?

If you are running Windows, you can start Solr by running bin\solr. cmd instead. This will start Solr in the background, listening on port 8983. When you start Solr in the background, the script will wait to make sure Solr starts correctly before returning to the command line prompt.


2 Answers

According to http://lucene.apache.org/solr/quickstart.html the command to start Solr 5.2.1 is

bin/solr start -e cloud -noprompt

The reference to start.jar is from an older tutorial to a start.jar in the examples folder.

like image 113
JP Moresmau Avatar answered Nov 05 '22 00:11

JP Moresmau


Add --module=http parameter.

Like this: $ java -jar start.jar --module=http

bin/solr does exactly that, except it shows complete disrespect for Linux Standard Base (LSB). I would not recommend to use it.

like image 31
user4674453 Avatar answered Nov 04 '22 23:11

user4674453