I have solr-4.10.3 installed in my Ubuntu server, I have forgot the URL and port.
Where can I find this infos in my Solr config files ?
Thanks for help.
The admin UI should be accessible at
http://localhost:8983/solr
Default port: 8983
To change a port
java -Djetty.port=9999 -jar start.jar
For solr 5.4.1 for example
solr-5.4.1\bin\solr start -p XXXX
Please visit https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production for more information.
Go inside your Solr directory. Navigate to example folder,As per your Solr insatance it will be like solr-4.10.3/example/
then start your Solr instance from Ubuntu terminal using command
java -jar start.jar
Open browser and hit URL
http://localhost:8983/solr
Related
I am new to solr i have just installed it with tomcat, and just after installing i opened http://localhost:8080/solr/#/ and i could see the solr admin page .
So the website i am refering,
it is given there that to start solr run bin/solr start ,and it can be seen at http://localhost:8983/solr/#/
So now solr admin page is visible at both 8080 and 8983.
So i just wanted to know on which port does solr actually works on ,8080 or 8983 ?
Well i am also new to Solr and i am running it with Jetty. and i think it actually works on 8983. although you can change it in the configuration xml file.
If you're using Solr 5 it will be hosted by jetty and listen on port 8983 by default; you can change the port from the solr command line using e.g. bin/solr start -p 9999
If you're using an older version of solr and you are hosting in tomcat as you say, then by default it will use the default tomcat port (8080) and you'll need to look at your maven/tomcat/whatever setup to change the port.
You can change the port from maven using -Djetty.port=9999 or -Dmaven.tomcat.port=9999 as appropriate.
From what you're describing it looks like you may have two copies of solr running on your machine, one with jetty and one with tomcat.
I try to run solr in schemaless mode on a windows machine, like it is described here. But if I run the command
java -Dsolr.solr.home=example-schemaless\solr -jar start.jar
I get the error:
Could not find or load main class .solr.home=example-schemaless.solr
check the path of your start.jar file. Make the correct path to start.jar file and set the solr home correctly, that may be fix your issue.
I have been using solr 3 and now I am plan to switch to solr 4. The port that I want to run solr on is 9090 instead of 8080. AFAIK, to change the port number we configure the solr.xml file. The entry in my solr.xml file looks like the following:
<cores adminPath="/admin/cores" defaultCoreName="collection1" host="${host:}" hostPort="9090" hostContext="${hostContext:solr}" zkClientTimeout="${zkClientTimeout:15000}">
<core name="collection1" instanceDir="collection1" />
What is surprising is, when I hit the url:
http://[domain]:9090/solr/admin.. it says page not found, but
http://[domain]:8983/solr/>.. works just as fine even after changing the port number. I am sure I am missing out something. Can someone please help me on this?
Thanks.
The port value in solr.xml is for Solr Cloud and is not actually where the listen port is defined for the server.
That port is defined (for default Jetty configuration) in jetty.xml file in the example/etc directory. Try changing it there or overriding it from the command line:
java -Djetty.port=9999 -jar start.jar
For Solr 5.4.1 you don't have to change any config files. Just run the following command in the Command Prompt to start solr on port number XXXX:
solr-5.4.1\bin\solr start -p XXXX
To stop run this command:
solr-5.4.1\bin\solr stop -p XXXX
I am using eZPublis(4.6.0). I have set solr folder folder in my xampp folder and activated the eZFind extension in \settings\override\site.ini.append.php.
My solr is runing on port 8080 ("http://127.0.0.1:8080/solr/"). when I run "http://127.0.0.1:8080/solr/", it loads fine.
However, when I try to run command : php extension/ezfind/bin/php/updatesearchindexsolr.php -s
it shows following error “Please, ensure the server is started and the configuration of eZ Find is correct”. I am following http://harmssite.com/post/86#comment-113.
Can anyone suggest what wrong I may be doing or any other solution?
If you are sure that solr is running then you might need to edit solr.ini (or one of its overrides) and use 127.0.0.1 instead of localhost. I've faced this issue sometimes.
The default Solr port is 8983, so eZ Find out of the box is set up to look at that port. If you are sure that Solr is up and running on port 8080 then look in your solr.ini to verify you have eZ Find pointed at the right Solr port.
I have followed this guide to install Solr in TomCat running on Windows Server 2008 R2.
http://drupal.org/node/1359598
As described in step 6 of the guide I can run Solr from the command line using the following:
java -Dsolr.solr.home=c:/solr/ -jar start.jar
As expected I can now see Solr at http://localhost:8983/solr/
If I reboot the server Solr does not start automatically. I have to run the start.jar file via the command line as shown above.
I have tried adding the following to the Java Options in the Configure TomCat UI.
-Dsolr.solr.home=c:\solr
This doesn't work. The only way I can run Solr is to use the command line. I'm sure that this is a simple problem to resolve but I can't work it out. Does anyone have any idea what I've configured incorrectly?
My technology stack is:
JRE 7
TomCat 7.0
Solr 3.6.0
Windows Server 2008 R2 (IIS 7.5)
Default servlet container in solr is jetty, not tomcat. So when you are running java -jar start.jar you are starting jetty.
Please refer to the following doc on running solr with tomcat .
Once you have done this, to start tomcat as a service that automatically restarts follow this doc http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html