Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update solr to latest version -- Apache Solr 9.0.0 available #6

Open
sebiboga opened this issue Jun 13, 2022 · 29 comments
Open

update solr to latest version -- Apache Solr 9.0.0 available #6

sebiboga opened this issue Jun 13, 2022 · 29 comments
Assignees
Labels
Milestone

Comments

@sebiboga
Copy link
Contributor

update solr to latest version -- Apache Solr 9.0.0 available

@sebiboga sebiboga added the task label Jun 18, 2022
@sebiboga sebiboga added this to the v03 milestone Jun 18, 2022
@sebiboga
Copy link
Contributor Author

needs JAVA 11

@sebiboga
Copy link
Contributor Author

@sebiboga
Copy link
Contributor Author

WINDOWS

c:\solr\solr-9.0.0\bin\solr.cmd create -c mycollection -n data_driven_schema_configs

@sebiboga
Copy link
Contributor Author

image

@sebiboga
Copy link
Contributor Author

c:\solr\solr-9.0.0\bin\solr.cmd create -c shaqodoon -n data_driven_schema_configs

@sebiboga
Copy link
Contributor Author

zimbor.go.ro already have JDK 11

@sebiboga
Copy link
Contributor Author

sebiboga commented Jun 18, 2022

@sebiboga
Copy link
Contributor Author

sebiboga commented Jun 18, 2022

@sebiboga
Copy link
Contributor Author

@sebiboga
Copy link
Contributor Author

solr-9.0.0 installed on port 8984 on zimbor.go.ro
IN TESTING

@sebiboga
Copy link
Contributor Author

@sebiboga
Copy link
Contributor Author

solr 9.0.0 doesn't START

@sebiboga
Copy link
Contributor Author

solr 9.0.0 works on Windows 10

@sebiboga
Copy link
Contributor Author

WARNING: /opt/solr-9.0.0 already exists! Skipping extract ...

Installing symlink /opt/solr2 -> /opt/solr-9.0.0 ...

Installing /etc/init.d/solr2 script ...

Installing /etc/default/solr2.in.sh ...

Service solr2 installed.
Customize Solr startup configuration in /etc/default/solr2.in.sh
● solr2.service - LSB: Controls Apache Solr as a Service
Loaded: loaded (/etc/init.d/solr2; generated)
Active: active (exited) since Sat 2022-06-18 18:49:23 EEST; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 5141 ExecStart=/etc/init.d/solr2 start (code=exited, status=0/SUCCESS)

iun 18 18:49:18 sebi-PowerEdge-T110-II systemd[1]: Starting LSB: Controls Apache Solr as a Service...
iun 18 18:49:18 sebi-PowerEdge-T110-II su[5143]: (to solr) root on none
iun 18 18:49:18 sebi-PowerEdge-T110-II su[5143]: pam_unix(su-l:session): session opened for user solr by (uid=0)
iun 18 18:49:22 sebi-PowerEdge-T110-II solr2[5194]: Started Solr server on port 8984 (pid=5190). Happy searching!
iun 18 18:49:23 sebi-PowerEdge-T110-II systemd[1]: Started LSB: Controls Apache Solr as a Service.

@sebiboga
Copy link
Contributor Author

ok, so the installer let SOLR_JETTY_HOST set by default to "127.0.0.1" which means it will work ONLY on localhost
YOU need to set this to "0.0.0.0"
the settings is in /etc/default/~solr or /etc/default/~solr2

@sebiboga
Copy link
Contributor Author

@irina-adam we have it working at http://zimbor.go.ro:81/

@sebiboga
Copy link
Contributor Author

[TO DO]

  • need to copy COREs to SOLR 9.0.0
  • need to set the API in _config to point to SOLR 9.0.0

@sebiboga
Copy link
Contributor Author

COREs created;

  • populating the data... from 8.10.1 to 9.0.0

@sebiboga
Copy link
Contributor Author

will resume first thing in the morning...

@sebiboga
Copy link
Contributor Author

image

@sebiboga
Copy link
Contributor Author

In prezent avem 2 instante de SOLR pe masina ZIMBOR.GO.RO
SOLR 8.10.1 pe portul 8983
SOLR 9.0.0 pe portul 8984
Din exterior portul 80 este redirectat spre SOLR 8.10.1, adica spre portul 8983
Din exterior portul 81 este redirectat spre SOLR 9.0.0 adica spre portul 8984

image

image

@sebiboga
Copy link
Contributor Author

  • pentru test s-a facut redirectarea de pe portul 8984 spre portul 8984 pe 192.168.1.13
  • se poate sterge redirectarea

@sebiboga
Copy link
Contributor Author

  • pentru upgrade-ul final vom schimba cele doua porturi configurate; din 80 in 81 si in 81 in 80, astfel prin ROUTARE vom pointa zimbor.go.ro pe portul 80 spre 8984 pe masina 192.168.1.13

  • doar pentru istoric vom pastra portul 81 in functiune care va pointa spre instanta de SOLR 8.10.1; (plus ca nu am copiat toate datele din core-ul romania in SOLR 9.0.0)

@sebiboga
Copy link
Contributor Author

image

@sebiboga
Copy link
Contributor Author

tested: zimbor.go.ro pointeaza spre SOLR 9.0.0

image

@sebiboga
Copy link
Contributor Author

  • note) with this UPGRADE, firme.peviitor.ro was also fixed.

@sebiboga
Copy link
Contributor Author

sebiboga commented Mar 2, 2023

  1. copiaza TGZ file de pe Apache SOLR local
  2. extrage TGZ file
  3. copiaza fisierul install_solr_service.sh la acelasi nivel cu arhiva solr
  4. rulezi comanda:
    sudo bash ./install_solr_service.sh solr-9.0.0.tgz -s solr4 -p 8986 -f

@sebiboga
Copy link
Contributor Author

sebiboga commented Mar 2, 2023

COPY CORES from old SOLR to NEW SOLR version

  1. sudo su -
  2. mc
  3. copy all cores from /var/solr3/data to /var/solr4/data
  4. sudo service solr4 stop
  5. sudo service solr4 start

@sebiboga
Copy link
Contributor Author

sebiboga commented Mar 5, 2024

wget https://dlcdn.apache.org/solr/solr/9.5.0/solr-9.5.0.tgz
tar xzf solr-9.5.0.tgz
cd solr-9.5.0/
copiaza solr-9.5.0.tgz in folderul bin
sudo bash ./install_solr_service.sh solr-9.5.0.tgz -s solr9 -p 8985
modifica in /etc/default/solr9.in.sh acel interface JETTY cu valoarea 0.0.0.0
restart service

sudo service solr9 stop
sudo service solr9 start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants