You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Bernd Fehling <be...@uni-bielefeld.de> on 2021/12/14 15:08:33 UTC

running Solr 6.6 with OpenJDK 11?

Hi list,

we are running SolrCloud 6.6 and changing server (hardware).
Now I'm thinking about upgrading from Oracle Java 8 to OpenJDK 11.

Does Solr 6.6 run with OpenJDK 11, are there any known problems?

Regards Bernd

Re: running Solr 6.6 with OpenJDK 11?

Posted by dmitri maziuk <dm...@gmail.com>.
On 2021-12-14 9:08 AM, Bernd Fehling wrote:
> Hi list,
> 
> we are running SolrCloud 6.6 and changing server (hardware).
> Now I'm thinking about upgrading from Oracle Java 8 to OpenJDK 11.
> 
> Does Solr 6.6 run with OpenJDK 11, are there any known problems?

IIRC it wasn't recommended back when oracle EOL'ed Java 8 and we had to 
update (Solr 6.5). I forget whether it's untested or unsupported, but I 
ended up installing amazon coretto 1.8.

Dima



Re: running Solr 6.6 with OpenJDK 11?

Posted by Vincenzo D'Amore <v....@gmail.com>.
As far as I know changing the Java version does not solve the problem.

 https://twitter.com/Laughing_Mantis/status/1470412026119798786

On Tue, Dec 14, 2021 at 4:09 PM Bernd Fehling <
bernd.fehling@uni-bielefeld.de> wrote:

> Hi list,
>
> we are running SolrCloud 6.6 and changing server (hardware).
> Now I'm thinking about upgrading from Oracle Java 8 to OpenJDK 11.
>
> Does Solr 6.6 run with OpenJDK 11, are there any known problems?
>
> Regards Bernd
>


-- 
Vincenzo D'Amore

Re: running Solr 6.6 with OpenJDK 11?

Posted by Shawn Heisey <ap...@elyograg.org>.
On 12/14/21 8:08 AM, Bernd Fehling wrote:
> we are running SolrCloud 6.6 and changing server (hardware).
> Now I'm thinking about upgrading from Oracle Java 8 to OpenJDK 11.
>
> Does Solr 6.6 run with OpenJDK 11, are there any known problems? 

It probably will not work without at least some changes to the solr or 
solr.cmd script.  Solr 7.0 was the first version to be qualified as 
compatible with Java 9, which was still new at the time 7.0 was 
released.  The newer Java versions do things a little differently than 
Java 8 did, and I would expect Solr 6.x to have problems with anything 
newer than Java 8.

If you want guaranteed compatibility with Java 11, your best bet is to 
upgrade to Solr 8.x.  The 6.x versions are quite old.  I know that such 
an upgrade is probably difficult to get approved.

What I would recommend is installing something like OpenJDK 8. One of 
the replies mentioned Coretto.  I have no experience with that, but it 
would probably work too.

Thanks,
Shawn



Re: running Solr 6.6 with OpenJDK 11?

Posted by Bernd Fehling <be...@uni-bielefeld.de>.
Hi Vincenzo,

my question had nothing to do with log4j.

Thanks,
Bernd

Am 14.12.21 um 16:14 schrieb Vincenzo D'Amore:
> As far as I know changing the Java version does not solve the problem.
> 
>   https://twitter.com/Laughing_Mantis/status/1470412026119798786
> 
> On Tue, Dec 14, 2021 at 4:09 PM Bernd Fehling <
> bernd.fehling@uni-bielefeld.de> wrote:
> 
>> Hi list,
>>
>> we are running SolrCloud 6.6 and changing server (hardware).
>> Now I'm thinking about upgrading from Oracle Java 8 to OpenJDK 11.
>>
>> Does Solr 6.6 run with OpenJDK 11, are there any known problems?
>>
>> Regards Bernd
>>
> 
> 

Re: running Solr 6.6 with OpenJDK 11?

Posted by dmitri maziuk <dm...@gmail.com>.
On 2021-12-15 11:06 AM, Shawn Heisey wrote:
...
> I did an experiment, replacing the bin/solr script in 6.6.6 with the 
> bin/solr script from 8.11.0 ... although I have not done extensive 
> testing, this appears to work.  It was able to start Solr, and was also 
> able to start the cloud example, with "bin/solr -e cloud -noprompt".  I 
> can't guarantee that there isn't some kind of compatibility problem in 
> the actual Solr code, but it looks promising.

Anecdotally at least, Java's been the most stable over upgrades for us 
from half a dozen or so PLs (with Perl running a close second); I have 
Java code that's old enough to buy alcohol that's still running just 
fine w/o rebuilds. It's nowhere near as big and convoluted as Solr, but 
still... If it starts, there's a good chance it'll run just fine.

It usually builds, too, if you ignore warnings about "new features" like 
generics etc.

Dima

Re: running Solr 6.6 with OpenJDK 11?

Posted by Shawn Heisey <ap...@elyograg.org>.
On 12/15/21 9:14 AM, Shawn Heisey wrote:
>
> I am in the process of downloading 6.6.6 so I can do some testing.  
> Transfer speed from archive.apache.org is terrible, I should be done 
> with the download in about 15 minutes. 


Out of the box, Solr 6.6.6 refuses to start with Java 11.  It actually 
reports that the Java version is too old!  This is because Java went 
from version numbers like 1.8.0.292 to version numbers like 11.0.11 
after Java 8.  The start script in 6.x doesn't work with the new version 
numbers.

I did an experiment, replacing the bin/solr script in 6.6.6 with the 
bin/solr script from 8.11.0 ... although I have not done extensive 
testing, this appears to work.  It was able to start Solr, and was also 
able to start the cloud example, with "bin/solr -e cloud -noprompt".  I 
can't guarantee that there isn't some kind of compatibility problem in 
the actual Solr code, but it looks promising.

Thanks,
Shawn



Re: running Solr 6.6 with OpenJDK 11?

Posted by Shawn Heisey <ap...@elyograg.org>.
On 12/15/21 12:57 AM, Bernd Fehling wrote:
> To get away from the Oracle License by switching from Java 8 to
> OpenJDK 8, do you have any observations or measurements? 

What I have seen says that OpenJDK 8 is solid.  In the last few years, I 
have not had first-hand access to large-scale Solr installs.  I am 
running one Solr install for myself, but it is extremely small.  OpenJDK 
has worked well for that install.  It's running Solr 8.11.0, with 
OpenJDK 11.  I do use OpenjDK 8 to build Solr, and that does work 
without problems.  It's been a while since I have run the test suite, 
but that also works with OpenJDK 8.

Prior to Oracle changing the license for their implementation of Java, I 
would have recommended Oracle Java first, and OpenJDK second.  Since the 
license change, most uses of Oracle Java require paying Oracle, so now I 
recommend OpenJDK.  Bonus to that -- OpenJDK packages are available in 
most Linux distributions from distro repositories.

I am in the process of downloading 6.6.6 so I can do some testing.  
Transfer speed from archive.apache.org is terrible, I should be done 
with the download in about 15 minutes.

Thanks,
Shawn



Re: running Solr 6.6 with OpenJDK 11?

Posted by Bernd Fehling <be...@uni-bielefeld.de>.
Hi Shawn,

unfortunately upgrading from Solr 6.x to 8.x is currently no solution.
I have several extensions and plugins developed like thesaurus for
26 European languages as selectable query extension, query pre- and
post-processing and so on.

Nevertheless, upgrading from Java 8 to OpenJDK 11 has an upgrade
of Solr from 6.x to 8.x at a later time already in mind.

Yes, Solr 6.x is quite old but rock solid and fast. And there were
some complains on this list about degration of search speed with
Solr 8.x. This would be also something which I have to check and
do some testing with measurements.

To get away from the Oracle License by switching from Java 8 to
OpenJDK 8, do you have any observations or measurements?

Thanks for your hints,
Bernd


Am 14.12.21 um 19:30 schrieb Shawn Heisey:
> On 12/14/21 8:08 AM, Bernd Fehling wrote:
>> we are running SolrCloud 6.6 and changing server (hardware).
>> Now I'm thinking about upgrading from Oracle Java 8 to OpenJDK 11.
>>
>> Does Solr 6.6 run with OpenJDK 11, are there any known problems? 
> 
> It probably will not work without at least some changes to the solr or solr.cmd script.  Solr 7.0 was the first version to be qualified as 
> compatible with Java 9, which was still new at the time 7.0 was released.  The newer Java versions do things a little differently than Java 8 
> did, and I would expect Solr 6.x to have problems with anything newer than Java 8.
> 
> If you want guaranteed compatibility with Java 11, your best bet is to upgrade to Solr 8.x.  The 6.x versions are quite old.  I know that such 
> an upgrade is probably difficult to get approved.
> 
> What I would recommend is installing something like OpenJDK 8. One of the replies mentioned Coretto.  I have no experience with that, but it 
> would probably work too.
> 
> Thanks,
> Shawn
> 
>