Hi, I didn't use Solr with Zookeeper before. But Solr 3.4 implements the synonym module with a different data structure. If the version of your Solr is not 3.4, then maybe you can try upgrading it first.
See also this thread on stackoverflow. http://stackoverflow.com/questions/6747664/solr-and-big-synonym-file Yung-chung Lin 2011/11/2 Phil Hoy <p...@friendsreunited.co.uk> > Hi, > > I am running solrcloud and a file in the Dbootstrap_confdir is a large > large synonym file (~50mb ) used by a SynonymFilterFactory configured in > the schema.xml. When i start solr I get a zookeeper exception presumably > because the file size is too large. > > Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException: > KeeperErrorCode = ConnectionLoss for /configs/recordsets_conf/firstnames.csv > at > org.apache.zookeeper.KeeperException.create(KeeperException.java:90) > at > org.apache.zookeeper.KeeperException.create(KeeperException.java:42) > at org.apache.zookeeper.ZooKeeper.setData(ZooKeeper.java:1038) > > Is there a way to either increase the limit in zookeeper or perhaps > configure the SynonymFilterFactory differently to get the file from > somewhere external to Dbootstrap_confdir? > > Phil >