lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chee Yee Lim <cheeyee....@gmail.com>
Subject Re: Upload/use a plugin JAR in ZooKeeper
Date Fri, 19 Jul 2019 02:02:29 GMT
Not sure if this is the recommended way, but I managed to use plugin JARs
with Solr Cloud.

Either include the absolute path to JAR in solrconfig.xml, or put the JAR
in a "lib" folder relative to your instanceDir. See the following text from
solrconfig.xml.

If a "./lib" directory exists in your instanceDir, all files found in it
are included as if you had used the following syntax...
<lib dir="./lib" />

If you modified the solrconfig.xml or other config files, remember to
upload it into Solr using the ConfigSet API or via command line tools. And
create a collection that uses the custom configset.

Hope this helps.

On Fri, 19 Jul 2019 at 09:20, Richard Walker <richard.walker@ardc.edu.au>
wrote:

> On 16 Jul 2019, at 4:14 pm, Richard Walker <richard.walker@ardc.edu.au>
> wrote:
> > ...
> >
> > To be specific, I'm trying to use this idea:
> >
> > "Resources and plugins may be stored:
> > • in ZooKeeper under a collection’s configset node (SolrCloud only);"
> >
> > ...
> >
> > So far, so good. But now how do I refer to the JAR in solrconfig.xml?
> > The user guide doesn't really say.
> >
> > ...
> >
> > No success at all; I only get a ClassNotFoundException
> > for the plugin class.
> >
> > ...
>
> I've now found this earlier thread:
>
>
> http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201701.mbox/%3cCAKHkODQV-y59+7M86oGVf1Feqj6iEiogp8TrhL1MG5fUAjL+MA@mail.gmail.com%3e
>
> in which the second message (from Shawn Heisey) says:
>
> > I actually do not know what the path for lib directives is relative to
> > when running SolrCloud.  Most things in a core config are relative to
> > the location of the config file itself, but in this case, the config
> > file is not on the filesystem at all, it's in zookeeper, and I don't
> > think Solr can use jars in zookeeper.
>
> So is this the definitive answer? As I suggested in my
> earlier message, the documentation in the user guide at
> https://lucene.apache.org/solr/guide/8_1/resource-and-plugin-loading.html
> strongly suggests that you _can_ use plugin JARs uploaded
> to a collection's znode.
>
> Richard.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message