Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E5EEE9ED3 for ; Fri, 18 May 2012 13:46:32 +0000 (UTC) Received: (qmail 56956 invoked by uid 500); 18 May 2012 13:46:31 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 56892 invoked by uid 500); 18 May 2012 13:46:31 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 56884 invoked by uid 99); 18 May 2012 13:46:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 13:46:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of markrmiller@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qc0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 13:46:24 +0000 Received: by qcsc21 with SMTP id c21so2552463qcs.35 for ; Fri, 18 May 2012 06:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=+/VSHsGrnBaA1QBh0qPaFAmMPLDDo5GDYBUhA2qr9LM=; b=b8hlxesu/rCMTDb2dOWvs0VVTYm5WS/1YC50zIe2jMZbdXRy1F0Mcjj2NQoPoFm9R+ rR/7AGr4iXDmJPL99Ez9/lODokyjk33d+3w4aW15BKIa9J2bhhVp4KLqPtVlo7KcUkmx XQHzvet/Um3hHjfqk+Vni2T8rHauyW1yqHT/ReSCsXPFsbH0D92QujrTD0Dj0wFNi7d8 DoRODnzWWKunu/3OxUNYIF4yZqyaqJILluUi30OZoMgeAH7gNk5+zvOM5TSyhP4qazjR ylREYuK5tcZQTwdz7tX6E8IcShgIduT9+6NjADxyOBy4zfMO/9qpA0Y/HCZsEJvIj5mO MB0A== Received: by 10.229.134.207 with SMTP id k15mr5371529qct.78.1337348763912; Fri, 18 May 2012 06:46:03 -0700 (PDT) Received: from [192.168.1.201] (ool-457bec5f.dyn.optonline.net. [69.123.236.95]) by mx.google.com with ESMTPS id dq7sm14450141qab.0.2012.05.18.06.46.02 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 May 2012 06:46:02 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: SolrCloud use of "bootstrap_conf" versus "bootstrap_confdir"? From: Mark Miller In-Reply-To: Date: Fri, 18 May 2012 09:46:01 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: dev@lucene.apache.org X-Mailer: Apple Mail (2.1278) They are for two different purposes. - bootstrap_confdir: you pass it a directory to upload to zk with an = optional config name. Any initial collections are automatically linked = to this config set. - bootstrap_conf: you pass it true and it reads solr.xml and uploads the = conf set for each SolrCore it finds, gives the conf set the name of the = collection and associates each collection with the same named config = set. So the first just lets you boot strap one collection easily...but what = if you start with a multi-core, multi-collection setup that you want to = bootstrap into SolrCloud? And they don't share a common config set? = That's what the second command is for. You can setup 30 local SolrCores = in solr.xml and then just bootstrap all 30 different config sets up and = have them fully linked with each collection just by passing = bootstrap_conf=3Dtrue. On May 18, 2012, at 8:56 AM, Eric Pugh wrote: > I was writing some unit tests to setup a traditional Master/Slave = environment as well as a new SolrCloud based environment. In playing = around with code based on TestMultiCoreConfBootstrap, I learned about = the "bootstrap_conf" system property which bootstraps your current = configuration into ZK, and is a boolean, versus "bootstrap_confdir" = which is a string passing the name of the directory. >=20 > Are they both needed? Seems like either both should always be there, = or just bootstrap_confdir. It seemed just a bit confusing, and very = magical. >=20 > Also, if you just use "bootstrap_conf", then the = "collection.configName" parameter is ignored, you always just get = "collection1". This is without a predefined set of cores in solr.xml, = which may make sense...? >=20 > @Test > public void testMultiCoreConfBootstrap() throws Exception { > // System.setProperty("bootstrap_conf", "true"); > System.setProperty("bootstrap_confdir",getSolrHome() + = "/conf"); > System.setProperty("collection.configName","leads"); > cores =3D new CoreContainer(home, new File(home, = "solr.xml")); > SolrZkClient zkclient =3D = cores.getZkController().getZkClient(); > // zkclient.printLayoutToStdOut(); > =20 > assertTrue(zkclient.exists("/configs/leads/solrconfig.xml", = true)); > assertTrue(zkclient.exists("/configs/leads/schema.xml", = true)); > // assertTrue(zkclient.exists("/configs/core0/solrconfig.xml", = true)); > // assertTrue(zkclient.exists("/configs/core1/schema.xml", = true)); > } >=20 > Eric >=20 > ----------------------------------------------------- > Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | = http://www.opensourceconnections.com > Co-Author: Apache Solr 3 Enterprise Search Server available from = http://www.packtpub.com/apache-solr-3-enterprise-search-server/book=09 > This e-mail and all contents, including attachments, is considered to = be Company Confidential unless explicitly stated otherwise, regardless = of whether attachments are marked as such. >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org >=20 - Mark Miller lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org