Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
Dynamic loading is possible from .system collection. It's much easier to host the jars on a remote service and load it from there. This way the user should have no problem in loading jars when the .system collection is not available for some reason.
The steps should look as follows
- get the hash of your jar file. openssl dgst -sha512 <jar>
- upload it your hosting service . say the location is http://host:port/my-jar/location
- create a runtime lib entry for the collection as follows
curl http://localhost:8983/solr/techproducts/config -H 'Content-type:application/json' -d '{ "add-runtimelib": { "name":"jarblobname", "sha512":"e94bb3990b39aacdabaa3eef7ca6102d96fa46766048da50269f25fd41164440a4e024d7a7fb0d5ec328cd8322bb65f5ba7886e076a8f224f78cb310fd45896d" , "url" : "http://host:port/my-jar/loaction"} }'
to update the jar, just repeat the steps and use the update-runtimelib to update the sha512 hash
Attachments
Issue Links
- is related to
-
SOLR-13564 Runtime libs loaded from remote URLs should be available to all components
- Resolved
-
SOLR-13565 Node level runtime libs loaded from remote urls
- Closed
-
LUCENE-8872 upgrade ecj on branch_8x to get bug fixes for linter
- Closed
- links to