Re: SOLR 4.8 Collections API Create Collection Fails on Tomcat

2014-05-22 Thread cpalm
Shawn, I agree the data dir concept doesn't make much sense in the context of collections. With the config I had setup the solr home was in a different file mount, so I had to change my solr home filemount location to get the data dir to locate where I wanted it once the data dir option was removed

Re: SOLR 4.8 Collections API Create Collection Fails on Tomcat

2014-05-22 Thread Shawn Heisey
On 5/21/2014 3:15 PM, cpalm wrote: > Yes we use that to force the data dir to be someplace other than solr.home. > Removing the data dir field just puts the data in solr home, which isn't > desirable. > solr home is specified in conf/Catalina/localhost/solr.xml > >override="true"/> > > > Is t

Re: SOLR 4.8 Collections API Create Collection Fails on Tomcat

2014-05-22 Thread Shalin Shekhar Mangar
You can actually specify a dataDir in the Collection CREATE API by passing the property.dataDir=/your/data/dir parameter. It is not very well documented but it is possible. https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api1 On Thu, May 22, 2014 at 4:28 AM, cpal

Re: SOLR 4.8 Collections API Create Collection Fails on Tomcat

2014-05-21 Thread cpalm
What I did to finally get this working was remove the Catalina/localhost/solr.xml which was allowing the binary to be run from a different location, I made sure the solr.solr.home=/ebs-data/solr/conf was set to the file mount I wanted and I then had to remove the Dsolr.data.dir=/ebs-data/solr/data

Re: SOLR 4.8 Collections API Create Collection Fails on Tomcat

2014-05-21 Thread cpalm
Joel, Yes we use that to force the data dir to be someplace other than solr.home. Removing the data dir field just puts the data in solr home, which isn't desirable. solr home is specified in conf/Catalina/localhost/solr.xml Is there any way to use the collections api with a data.dir set? Th

Re: SOLR 4.8 Collections API Create Collection Fails on Tomcat

2014-05-21 Thread Joel Bernstein
Chris, I wasn't able to reproduce the error with a stock install of the HelioSearch Distribution for Solr (HDS). HDS runs under Tomcat. Looking at the stack trace this looks like the problem: Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/ebs-d

SOLR 4.8 Collections API Create Collection Fails on Tomcat

2014-05-21 Thread christopher palm
Hello, I am trying to use the collections API to add in a secondary collection similar to what is described in this article http://heliosearch.org/solrcloud-assigning-nodes-machines/ It works fine on a jetty setup where bootstrap config dir is specified. When I try to run this on a tomcat solr that