on which port does solr works on - solr

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.

Related

Solr: find ULR and port

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

what is solr web interface url

I am using datastax 2.2.2 in my ubuntu:12.04 system. I just downloaded tar ball and started solr using
dse cassandra -s
It starts solr. I verified it using
netstat -plten
It show port 8983 is being used.
10.XX.XX.XX:8983/solr/ --> Call never ends. It's keep on loading.
I started opscenter and checked with ip:8888/ it shows opscenter ui.
What is the solr web interface url for datastx 2.2.2 and Do i need to change any configurations for solr?
Any Ideas?
The Solr Admin UI default is usually:
<ip>:8983/solr
For example from my test VM on my local machine:
http://192.168.56.20:8983/solr/

Apache 2.4.6 and Apache Tomcat 7.0.42 on Port 80

On my Ubuntu 13.10 I have installed Apache and Tomcat. I am trying to get tomcat to work on port 80 with no luck at all. I have looked at using mod_jk following several online tutorials with no success. What I am trying to achieve is I have a webapp on tomcat running as the root application. Therefore the current url is www.example.com:8080. I also have apache which is on the url www.example.com. I want to be able to access files on the apache webserver for e.g www.example.com/somefile but also have my webapp running at the sametime on www.example.com. Please can anyone help.
You need to add url redirection to apache and check for the path in apache httpd.conf.
Check the path of the incoming request is just example.com then you rewrite it to example.com:8080.
The mod_proxy of apache should be able to do this for you.
http://tomcat.apache.org/tomcat-4.1-doc/proxy-howto.html
Apache Tomcat by default runs on port 8080. Incase if you need to run it in port 80 you need to use JSVC which comes along with tomcat. If you have installed tomcat by downloading the binary version then jsvc will be available under
[tomcat_install_path]/bin/commons-daemon-native.tar.gz
you need to untar it and compile it. Compiling it is easy.
# ./configure
# make
once you have compiled it you will get the jsvc binary file which needs to be placed under the tomcat bin directory.
Then to start up tomcat with the help of jsvc follow the steps mentioned here
JSVC is the officially recommended way of starting Tomcat in port 80.
So I managed to solve this problem by Using Mod_Proxy. Editing the 000-Deafult.conf file in /etc/apache2/sites-enabled and adding the following lines:
ProxyPass /SomeUrl !
ProxyPass / http://localhost:8080/
The first line indicates what you don't want to proxy and the second one indicates what to proxy.In this case forward the ROOT app of Tomcat at port 8080 to the root of the Apache web server
Also edited the server.xml file in /etc/tomcat7 and added the following
<Connector port="8080" protocol="AJP/1.3" proxyName="www.mydomain.com" proxyPort="80"/>

changing port number for solr-4.3.1

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

Setup Solr for ezPublish

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.

Resources