lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomás Fernández Löbbe <tomasflo...@gmail.com>
Subject Re: Error with SolrCloud
Date Fri, 09 Nov 2012 19:34:45 GMT
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+hPZAk5D0eXrqHyXAXLa6uuTW1YQAE35g@mail.gmail.com%3E


On Fri, Nov 9, 2012 at 4:30 PM, Tomás Fernández Löbbe <tomasflobbe@gmail.com
> wrote:

> 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 ZK? how many JBoss AS
> are you running?
>
>
>
>
> On Fri, Nov 9, 2012 at 4:14 PM, Carlos Alexandro Becker <
> caarlos0@gmail.com> wrote:
>
>> 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
>> &bootstrap_conf=true<http://localhost:8080/ecm-indexer/admin/collections?action=CREATE&name=2&numShards=2&bootstrap_conf=true>
>> <
>> http://localhost:8983/solr/admin/collections?action=CREATE&name=mycollection&numShards=X&bootstrap_conf=true
>> >
>>
>> But, looks like the Zookeeper dont get up, because solr can't connect on
>> port 8983. I inspected it with fuser, and is no process running in this
>> port at all.
>>
>>
>> Do I have to add an extra thing to my pom.xml, or something?
>>
>> Thanks in advance.
>>
>>
>>
>> On Fri, Nov 9, 2012 at 4:23 PM, Tomás Fernández Löbbe <
>> tomasflobbe@gmail.com
>> > wrote:
>>
>> > 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 configuration). When you create a new
>> collection,
>> > you'll have to either upload the configuration again to a different
>> > directory, or use one of the existing configurations.
>> > See
>> >
>> >
>> http://wiki.apache.org/solr/SolrCloud#Getting_your_Configuration_Files_into_ZooKeeperand
>> >
>> >
>> http://wiki.apache.org/solr/SolrCloud#Managing_collections_via_the_Collections_API
>> >
>> > If all your collections are going to use the same confguration, I would
>> > use:
>> > first bootstrap_confdir=../solr/conf and collection.configName=myconf
>> > and then for every new collection use the command:
>> >
>> >
>> http://localhost:8983/solr/admin/collections?action=CREATE&name=mycollection&numShards=X&collection.configName=myconf
>> >
>> > In the other case, you can omit the configName parameter (the collection
>> > name will be used) and when you create a collection you do it like:
>> >
>> >
>> >
>> http://localhost:8983/solr/admin/collections?action=CREATE&name=mycollection&numShards=X&bootstrap_conf=true
>> >
>> >
>> > Tomás
>> >
>> >
>> > On Fri, Nov 9, 2012 at 2:16 PM, Carlos Alexandro Becker
>> > <caarlos0@gmail.com>wrote:
>> >
>> > > Actually, I want to use it with multiple cores, and my app dinamically
>> > add
>> > > cores to solr.
>> > > So, my solr.xml looks like this:
>> > >
>> > > <?xml version="1.0" encoding="UTF-8" ?>
>> > > <solr persistent="false">
>> > >   <cores defaultCoreName="collection1"
>> > >    adminPath="/admin/cores"
>> > >    zkClientTimeout="${zkClientTimeout:15000}"
>> > >    hostPort="8983"
>> > >    hostContext="solr">
>> > >     <core instanceDir="." name="collection1"/>
>> > >   </cores>
>> > > </solr>
>> > >
>> > > 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
>> > > -----synonyms.txt
>> > > data/
>> > > ----inde/ (etc..)
>> > > solr.xml
>> > > zoo.cfg
>> > >
>> > >
>> > > zoo.cfg is the default of the solrcloud example.
>> > >
>> > >
>> > > THanks in advance.
>> > >
>> > >
>> > >
>> > > On Fri, Nov 9, 2012 at 3:09 PM, Tomás Fernández Löbbe <
>> > > tomasflobbe@gmail.com
>> > > > wrote:
>> > >
>> > > > 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
>> > > > <caarlos0@gmail.com>wrote:
>> > > >
>> > > > > I started my JBoss server with the following command:
>> > > > >
>> > > > >
>> > > > > JAVA_OPTS="-DzkRun -DnumShards=2 -Dbootstrap_conf=true
>> > > > > -Dbootstrap_confdir=../solr/conf -Xmx2048m -XX:MaxPermSize=512m"
>> > > > > ./standalone.sh
>> > > > >
>> > > > > OK, server goes up, then I tried to search for something, and
got
>> the
>> > > > > following error:
>> > > > >
>> > > > > 10:47:28,594 ERROR [org.apache.solr.core.CoreContainer] (MSC
>> service
>> > > > thread
>> > > > > 1-6) : org.apache.zookeeper.KeeperException$NoNodeException:
>> > > > > KeeperErrorCode = NoNode for /configs/ecm/solrconfig.xml
>> > > > >
>> > > > > What am I missing?
>> > > > >
>> > > > > Thanks in advance.
>> > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > > Atenciosamente,
>> > > > > *Carlos Alexandro Becker*
>> > > > > http://caarlos0.github.com/about
>> > > > >
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > > Atenciosamente,
>> > > *Carlos Alexandro Becker*
>> > > http://caarlos0.github.com/about
>> > >
>> >
>>
>>
>>
>> --
>> Atenciosamente,
>> *Carlos Alexandro Becker*
>> http://caarlos0.github.com/about
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message