On 4/30/2018 4:32 AM, THADC wrote:
First of all, I have a second (unrelated) question on this solr user group.
I hope it is ok to have more than one question being asked at the same time
against this group. Please let me know if not.
Anyway, I have a need to keep our existing solr version 4.7 instance running
while I test this solr 7.3.0 instance. Is it alright to have two separate
instances from two solr versions running at the same time in the same tomcat
web instance?
If so, is it simply a matter of keeping the port numbers for the solr server
different?
Thanks for any response.
The first thing to say is that running Solr 5.0 and later in Tomcat is
an unsupported configuration. You might be able to get it to work, but
you're going to be on your own. Solr is only supported in the container
that ships with it.
https://wiki.apache.org/solr/WhyNoWar
The second thing to say is that if you DO get this working, at least one
of the Solr instances will need to be running on a different context
path -- a URL path that's something other than "/solr". The admin UI in
5.0 and later has hard-coded URL paths and will not work if it's changed
to something else. Solr itself will work correctly, but the admin UI
and the command-line tools for interfacing with Solr will *not* work if
the context path is changed. There are also difficulties with SolrCloud
when using an alternate context path.
Chances are that if you installed two versions into one container, that
they would be running on the same port. That's outside Solr's control
-- it would be a configuration for the container.
There could also be jar dependency problems with running two different
versions in the same container. This might also NOT be a problem, but I
cannot say for sure. It's not a supported configuration.
You should run Solr with the included scripts and the Jetty instance
that's included, on a different port than your existing Solr 4.x
installation.
Thanks,
Shawn