Bingo!

Here's the recipe for the record:

 gcopts has the ton of gc options.

First, set up shop:

DIR=$PWD
cd ../solr-4.10.3/example
java -Xmx200g $gcopts DSTOP.PORT=7983 -DSTOP.KEY=solrrocks
-Djetty.port=8983 -Dsolr.solr.home=/data/solr+rni/cloud_solr_home
-Dsolr.install.dir=/dat\
a/solr-4.10.3 -Duser.timezone=UTC -Djava.net.preferIPv4Stack=true
-DzkRun -jar start.jar &

and then:

curl 
'http://localhost:8983/solr/admin/collections?action=CREATE&name=rni&numShards=8&replicationFactor=1&collection.configName=rni&maxSh\
ardsPerNode=8'



On Wed, Feb 25, 2015 at 11:03 AM, Benson Margulies
<bimargul...@gmail.com> wrote:
> It's the zkcli options on my mind. zkcli's usage shows me 'bootstrap',
> 'upconfig', and uploading a solr.xml.
>
> When I use upconfig, it might work, but it sure is noise:
>
> benson@ip-10-111-1-103:/data/solr+rni$ 554331
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:9983] WARN
> org.apache.zookeeper.server.NIOServerCnxn  – caught end of stream
> exception
> EndOfStreamException: Unable to read additional data from client
> sessionid 0x14bc16c5e660003, likely client has closed socket
>         at 
> org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:228)
>         at 
> org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
>         at java.lang.Thread.run(Thread.java:745)
>
> On Wed, Feb 25, 2015 at 10:52 AM, Shawn Heisey <apa...@elyograg.org> wrote:
>> On 2/25/2015 8:35 AM, Benson Margulies wrote:
>>> Do I need a zkcli bootstrap or do I start with upconfig? What port does
>>> zkRun put zookeeper on?
>>
>> I personally would not use bootstrap options.  They are only meant to be
>> used once, when converting from non-cloud, but many people who use them
>> do NOT use them only once -- they include them in their startup scripts
>> and use them on every startup.  The whole thing becomes extremely
>> confusing.  I would just use zkcli and the Collections API, so nothing
>> ever happens that you don't explicitly request.
>>
>> I believe that the port for embedded zookeeper (zkRun) is the jetty
>> listen port plus 1000, so 9983 if jetty.port is 8983 or not set.
>>
>> Thanks,
>> Shawn
>>

Reply via email to