Thanks.

I ended up on slack and was instructed to use $SOLR_HOME/lib by copying the appropriate jars over from both dist and contrib. Apparently the s3 repository plugin won't load on a per core basis, but seems find on a per node basis. One of my original goals was to try and have upgrades automatically track the correct plugin versions, but his doesn't seem readily doable.

Things seem correctly operational with Wasabi in my small tests so far.



On 11/29/21 14:44, Houston Putman wrote:
Instead of using <lib> in your solrcloud.xml, instead try using the
<sharedLib> option in your solr.xml file.

More information can be found here:
https://solr.apache.org/guide/8_5/format-of-solr-xml.html#the-solr-element

- Houston

On Mon, Nov 29, 2021 at 7:42 AM Michael Conrad<[email protected]>  wrote:

Hello all,

Solr 8.11.0

java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)

I'm trying to enable S3 backup repository on a collection but I'm getting:

"error":{
      "metadata":[
        "error-class","org.apache.solr.common.SolrException",
        "root-error-class","java.lang.ClassNotFoundException"],
      "msg":"Error loading class 'org.apache.solr.s3.S3BackupRepository'",

I have the following in the solrconfig.xml for the collection:

<lib dir="${solr.install.dir:../../../..}/contrib/s3-repository/lib"
regex=".*\.jar" />
<lib dir="${solr.install.dir:../../../..}/dist/"
regex="solr-s3-repository-\d.*\.jar" />

The log appears to show the appropriate plugin folders correctly with a
correct libs added count:

2021-11-29 15:17:02.980 INFO
(coreLoadExecutor-21-thread-3-processing-n:solr-0001:8983_solr) [ ]
o.a.s.c.SolrResourceLoader Added 23 libs to classloader, from paths:
[/opt/solr/contrib/s3-repository/lib, /opt/solr/dist]

And I have in the solr.xml file:

<backup>
    <repository name="wasabi-solr-indexes"
class="org.apache.solr.s3.S3BackupRepository" default="false">
      <str name="s3.bucket.name">solr-indexes</str>
      <str name="s3.profile">wasabi-solr-indexes</str>
      <str name="s3.endpoint">s3.us-east-1.wasabisys.com</str>
    </repository>
</backup>

I'm trying to run the backup with:

curl
" http://solr-0001:8983/solr/admin/collections?action=BACKUP&name=test&collection=test_actual&repository=wasabi-solr-indexes "




Reply via email to