Hello. Per

  https://solr.apache.org/guide/8_11/solr-system-requirements.html
  https://solr.apache.org/guide/8_11/enabling-ssl.html

I am trying to take Solr 8.11.1 to production on a CentOS 7 cloud VPS.

Solr 8.11.1 is working fine (SSL-secured; authentication via security.json; 
etc.) on my Arch Linux local host.

I installed Solr 8.11.1 via solr.in.sh, and tried it with Java JRE 1.8 (details 
below) and java-11-openjdk.x86_64.

  java-11-openjdk.x86_64    ## 
/usr/lib/jvm/java-11-openjdk-11.0.16.0.8-1.el7_9.x86_64/bin/java
  java-1.8.0-openjdk.x86_64 ## 
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.342.b07-1.el7_9.x86_64/jre/bin/java

Solr worked with the Java 11 OpenJDK, but I was unable to SSL-secure it.

Solr also works on the Java 1.8 JRE, but complains

  HTTP/2 + SSL is not support in Java 8. 
  Configure Solr with HTTP/1.1 + SSL

How can I resolve this issue?

-------------------------------------------------------------------------------

[victoria@vps1234 ~]$ date
  Tue Aug 16 20:55:23 PDT 2022

[victoria@vps1234 ~]$ cat /etc/centos-release
  CentOS Linux release 7.9.2009 (Core)

[victoria@vps1234 ~]$ uname -a
  Linux vps1234.inmotionhosting.com 3.10.0 #1 SMP Tue Jan 25 12:49:12 MSK 2022 
x86_64 x86_64 x86_64 GNU/Linux

[victoria@vps1234 ~]$ which java
  /usr/bin/java

[victoria@vps1234 ~]$ java -version

  openjdk version "1.8.0_342"
  OpenJDK Runtime Environment (build 1.8.0_342-b07)
  OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode)

[victoria@vps1234 ~]$ echo $JAVA_HOME
  /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.342.b07-1.el7_9.x86_64/jre

[victoria@vps1234 ~]$ echo $SOLR_JAVA_HOME
  /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.342.b07-1.el7_9.x86_64/jre/

[victoria@vps1234 ~]$ sudo service solr start

  HTTP/2 + SSL is not support in Java 8. 
  Configure Solr with HTTP/1.1 + SSL

  Waiting up to 30 seconds to see Solr running on port 8983 [\]  
  Started Solr server on port 8983 (pid=1355). Happy searching!

[victoria@vps1234 ~]$ sudo service solr status

  HTTP/2 + SSL is not support in Java 8. 
  Configure Solr with HTTP/1.1 + SSL

  Found 1 Solr nodes: 

  Solr process 1355 running on port 8983
  INFO  - 2022-08-16 19:55:03.830; 
org.apache.solr.util.configuration.SSLConfigurations; Setting 
javax.net.ssl.keyStorePassword
  INFO  - 2022-08-16 19:55:03.834; 
org.apache.solr.util.configuration.SSLConfigurations; Setting 
javax.net.ssl.trustStorePassword
  {
    "solr_home":"/home/victoria/apps/solr-8.11.1/server/solr",
    "version":"8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - janhoy - 
2021-12-14 13:50:55",
    "startTime":"2022-08-17T03:47:52.140Z",
    "uptime":"0 days, 0 hours, 7 minutes, 13 seconds",
    "memory":"162.5 MB (%31.7) of 512 MB"}

[victoria@vps1234 ~]$ 

==============================================================================

Reply via email to