Re: Error with SolrCloud

2012-11-14 Thread Carlos Alexandro Becker
Hi, Tomás help me, and we found the issues. Basically, I had the solrconfig.xml, schema.xml and etc inside my war, and looks like zookeeper does't look for these files in classpath. That was pretty easy, just copied the files to the proper location inside solr folder, so I got something like this

Re: Error with SolrCloud

2012-11-12 Thread Carlos Alexandro Becker
Actually, that's really strange, I cant even see the dump button, and got this error: SolrCore Initialization Failures - *collection1:* org.apache.solr.common.cloud.ZooKeeperException:org.apache.solr.common.cloud.ZooKeeperException: Please check your logs for more information On Mon

Re: Error with SolrCloud

2012-11-12 Thread Tomás Fernández Löbbe
Once the configuration is uploaded to zk, Solr will stop using the directory you specify in the solr.xml to start using the configuration from zk (to make sure all the nodes of the collection have the same configuration). Maybe for some reason the solrconfig file was not uploaded properly? Could yo

Re: Error with SolrCloud

2012-11-12 Thread Carlos Alexandro Becker
yeah, I changed to collection1, but I not understand why I have to pass a configName if it use collection1 by default? also, I tried with collection1 config, and got another error: 13:49:02,226 ERROR [org.apache.solr.core.SolrCore] (http--0.0.0.0-8080-2) org.apache.solr.common.SolrException: Error

Re: Error with SolrCloud

2012-11-12 Thread Tomás Fernández Löbbe
In the last stacktrace that you sent, it looks like there is no configuration directory in zk called "myconf". Make sure you use a configuration that was already uploaded to zk. You can use zkCli.sh (in the zookeeper bin directory) to see what's inside of the "configs" zk node. If you started Solr

Re: Error with SolrCloud

2012-11-12 Thread Carlos Alexandro Becker
It's strange, my solrconfig.xml is inside the war file. Just in case, here is the actual content: https://gist.github.com/9f0ea455fd6a0d92a196 Thanks in advance On Mon, Nov 12, 2012 at 1:33 PM, Carlos Alexandro Becker wrote: > Hm, I still getting nullpointers accessing 127.0.0.1:8080/solr, so

Re: Error with SolrCloud

2012-11-12 Thread Tomás Fernández Löbbe
I'm not sure what could be the issue here, maybe there is a problem with finding the name of your machine? can you manually find ' http://carlos-OptiPlex-790:8080/solr' ? Maybe if you set the "host" parameter in solr.xml ( http://wiki.apache.org/solr/SolrCloud#SolrCloud_Instance_Params ) to 127.0.0

Re: Error with SolrCloud

2012-11-12 Thread Carlos Alexandro Becker
Any ideas? On Mon, Nov 12, 2012 at 9:03 AM, Carlos Alexandro Becker wrote: > Good Morning Sirs, > > Following your suggestions, I ran: > > JAVA_OPTS="-DzkRun -DnumShards=2 -Dbootstrap_conf=true > -Dcollection.configName=myconf -Xmx2048m -XX:MaxPermSize=512m" > ./standalone.sh > > And tried to c

Re: Error with SolrCloud

2012-11-10 Thread Tomás Fernández Löbbe
Created https://issues.apache.org/jira/browse/SOLR-4061 On Fri, Nov 9, 2012 at 8:51 PM, Mark Miller wrote: > Yeah, if you want to use a new config set when you dynamically create a > new collection, you must first upload the new config set. It's pretty easy > using the cloud-scripts/zkcli.sh|ba

Re: Error with SolrCloud

2012-11-09 Thread Mark Miller
Yeah, if you want to use a new config set when you dynamically create a new collection, you must first upload the new config set. It's pretty easy using the cloud-scripts/zkcli.sh|bat scripts. If someone likes the idea of being able to point to a new config set to upload when using the collecti

Re: Error with SolrCloud

2012-11-09 Thread Carlos Alexandro Becker
Hm, OK, now I just leave my work, next week I'll try to do what you say and give you a feedback. Meanwhile, thank you very much for your help. On Fri, Nov 9, 2012 at 6:30 PM, Tomás Fernández Löbbe wrote: > I thought it was possible to upload a new configuration when creating a new > collection

Re: Error with SolrCloud

2012-11-09 Thread Tomás Fernández Löbbe
I thought it was possible to upload a new configuration when creating a new collection through the Collections API, but it looks like the CREATE action only takes: replicationFactor name collection.configName numShards I think this means that you'll have to use an existing configuration (already u

Re: Error with SolrCloud

2012-11-09 Thread Carlos Alexandro Becker
Hi, about the port, that's my mistake, I have the wrong port specified in solr.xml. But, now, I got the following error: 17:37:10,358 WARN [com.datasul.technology.webdesk.indexer.engine.IndexerSearchEngine] (http--0.0.0.0-8080-6) Fail uptading indexer synonyms/stopwords list. 17:37:10,378 INFO

Re: Error with SolrCloud

2012-11-09 Thread Tomás Fernández Löbbe
Also, JBoss AS uses Tomcat, rigth? you may want to look at Mark Miller's comments here: http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201210.mbox/%3ccabcj++j+am6e0ghmm+hpzak5d0exrqhyxaxla6uutw1yqae...@mail.gmail.com%3E On Fri, Nov 9, 2012 at 4:30 PM, Tomás Fernández Löbbe wrote: > D

Re: Error with SolrCloud

2012-11-09 Thread Tomás Fernández Löbbe
Do you have a stacktrace of the error you are getting? When Zookeeper runs embedded (when you are using -DzkRun), it runs on [solr port]+1000. In the example Jetty, Solr runs at 8983, and so zk runs at 9983, in your case it should be using 9080. Which Solr instance is the one that can't connect to

Re: Error with SolrCloud

2012-11-09 Thread Carlos Alexandro Becker
Hi Thomás, thanks for your help. I change the start cmd to: JAVA_OPTS="-DzkRun -DnumShards=2 -Dbootstrap_conf=true -Xmx2048m -XX:MaxPermSize=512m" ./standalone.sh Then, I tried to add a new core like this: http://localhost:8080/ecm-indexer/admin/collections?action=CREATE&name=2&numShards=2 &boot

Re: Error with SolrCloud

2012-11-09 Thread Tomás Fernández Löbbe
I think you have to use either bootstrap_conf=true or "bootstrap_confdir=/path/to/conf"+"collection.configName=foo" (not both at the same time). If you use the first one, Solr will upload the configuration for all the cores that you have configured (with the name of the core as name of the configur

Re: Error with SolrCloud

2012-11-09 Thread Carlos Alexandro Becker
Actually, I want to use it with multiple cores, and my app dinamically add cores to solr. So, my solr.xml looks like this: so, my solr.home is jboss.home/solr, which is represented by the dot in instanceDir setting. My solr.home has the following files: conf/ -stopwords.txt --

Re: Error with SolrCloud

2012-11-09 Thread Tomás Fernández Löbbe
Are you sure you are pointing to the correct conf directory? sounds like you are missing the collection name in the path (maybe it should be ../solr/YOURCOLLECTIONNAME/conf?) On Fri, Nov 9, 2012 at 1:58 PM, Carlos Alexandro Becker wrote: > I started my JBoss server with the following command: >