Thanks Shawn.

I have added few dependency jars into my project. There are no compilation 
errors or ClassNotFound exceptions, but Zookeeper exception " 
KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for 
/solr/solr.xml ". My temporary solrHome folder has a solr.xml.  No other files 
(solrconfig.xml , schema.xml) are provided. Thought it should start solr cloud 
server with defaults, but it doesn't. There are no other solr or zookeeper 
servers running on my machine. 

 I have had a look at the unit tests in solr-7.0 code base and tried tests in 
TestMiniSolrCloudCluster() by copying this test file across to my apps project. 
The tests fail possibly due to the difference in the environment. I am running 
the tests in eclipse.



-----Original Message-----
From: Shawn Heisey [mailto:apa...@elyograg.org] 
Sent: 14 April 2016 14:00
To: solr-user@lucene.apache.org
Subject: Re: MiniSolrCloudCluster usage in solr 7.0.0

On 4/14/2016 2:01 AM, Rohana Rajapakse wrote:
> Can someone give a sample code snippet to create MiniSolrCloudCluster from a 
> separate java application (outside of solr codebase).  Wants to know 
> dependency jars and config files you need.

I would imagine that you need to start with solr-test-framework.  I have looked 
at this jar on maven central (also used by ivy), and the 6.0 version has 
*eighty* direct dependencies, one of which is solr-core. 
These dependencies probably represent most of a full Solr install.

As for sample code ... the class is heavily used in Solr tests, all of which 
you can obtain by cloning the master branch with git.

Thanks,
Shawn



Registered Office: 24 Darklake View, Estover, Plymouth, PL6 7TL.
Company Registration No: 3553908

This email contains proprietary information, some or all of which may be 
legally privileged. It is for the intended recipient only. If an addressing or 
transmission error has misdirected this email, please notify the author by 
replying to this email. If you are not the intended recipient you may not use, 
disclose, distribute, copy, print or rely on this email.

Email transmission cannot be guaranteed to be secure or error free, as 
information may be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete or contain viruses. This email and any files attached to it have 
been checked with virus detection software before transmission. You should 
nonetheless carry out your own virus check before opening any attachment. GOSS 
Interactive Ltd accepts no liability for any loss or damage that may be caused 
by software viruses.


Reply via email to