Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13534

Dynamic loading of jars from a url

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 8.2
    • Component/s: None
    • Labels:
      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

      1. get the hash of your jar file.  openssl dgst -sha512 <jar>
      2. upload it your hosting service . say the location is http://host:port/my-jar/location
      3. 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

            Activity

              People

              • Assignee:
                noble.paul Noble Paul
                Reporter:
                noble.paul Noble Paul
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m