lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <>
Subject Re: Loading resources from Zookeeper using SolrCloud API
Date Fri, 24 Jan 2014 16:40:50 GMT
The best way is to use the ResourceLoader without relying on ResourceLoader#getConfigDir (which
will fail in SolrCloud mode).

For example, see openSchema, openConfig, openResource.

If you use these API’s, your code will work both with those files being on the local filesystem
for non SolrCloud mode and being in ZooKeeper in SolrCloud mode.

There are also low level API’s you could use, but I wouldn’t normally recommend that.

- Mark

On Jan 24, 2014, at 11:16 AM, Ugo Matrangolo <> wrote:

> Hi,
> we have a quite large SOLR 3.6 installation and we are trying to update to
> 4.6.x.
> One of the main point in doing this is to get SolrCloud and centralized
> configuration using Zookeeper.
> Unfortunately, some custom code we have (custom indexer extending
> org.apache.solr.handler.dataimport.EntityProcessorBase) are trying to load
> resources from the file system and this is now a problem given that
> everything under solr.home/core/conf is under Zookeeper.
> What is the best way to load resources from Zookeeper using SolrCloud API ?
> Regards,
> Ugo

View raw message