Return-Path: X-Original-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1822DE72E for ; Fri, 4 Jan 2013 11:05:05 +0000 (UTC) Received: (qmail 9492 invoked by uid 500); 4 Jan 2013 11:05:05 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 9355 invoked by uid 500); 4 Jan 2013 11:05:04 -0000 Mailing-List: contact solr-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-commits@lucene.apache.org Received: (qmail 9322 invoked by uid 99); 4 Jan 2013 11:05:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2013 11:05:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2013 11:05:01 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id EE3B3BC6; Fri, 4 Jan 2013 11:04:39 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Fri, 04 Jan 2013 11:04:39 -0000 Message-ID: <20130104110439.7989.87579@eos.apache.org> Subject: =?utf-8?q?=5BSolr_Wiki=5D_Update_of_=22SolrCloud=22_by_Tom=C3=A1s_Fern?= =?utf-8?q?=C3=A1ndez_L=C3=B6bbe?= Auto-Submitted: auto-generated X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for chan= ge notification. The "SolrCloud" page has been changed by Tom=C3=A1s Fern=C3=A1ndez L=C3=B6b= be: http://wiki.apache.org/solr/SolrCloud?action=3Ddiff&rev1=3D85&rev2=3D86 Comment: Added documentation on how to use Zookeeper chroot with Solr {{{ sh zkcli.sh -cmd linkconfig -zkhost 127.0.0.1:9983 -collection collection= 1 -confname conf1 -solrhome example/solr }}} + =3D=3D=3D Zookeeper chroot =3D=3D=3D + If you are already using Zookeeper for other applications and you want to= keep the ZNodes organized by application, or if you want to have multiple = separated SolrCloud clusters sharing one Zookeeper ensemble you can use Zoo= keeper's "chroot" option. From Zookeeper's documentation: http://zookeeper.= apache.org/doc/r3.3.6/zookeeperProgrammers.html#ch_zkSessions + {{{ + An optional "chroot" suffix may also be appended to the connection string= . This will run the client commands while interpreting all paths relative t= o this root (similar to the unix chroot command). If used the example would= look like: "127.0.0.1:4545/app/a" or "127.0.0.1:3000,127.0.0.1:3001,127.0.= 0.1:3002/app/a" where the client would be rooted at "/app/a" and all paths = would be relative to this root - ie getting/setting/etc... "/foo/bar" would= result in operations being run on "/app/a/foo/bar" (from the server perspe= ctive). + }}} + To use this Zookeeper feature, simply start Solr with the "chroot" suffix= in the zkHost parameter. For example: + {{{ + java -DzkHost=3Dlocalhost:9983/foo/bar -jar start.jar + }}} + or + {{{ + java -DzkHost=3Dzoo1:9983,zoo2:9983,zoo3:9983/foo/bar -jar start.jar + }}} + '''NOTE:''' With Solr 4.0 you'll need to create the initial path in Zoook= eeper before starting Solr. Since Solr 4.1, the initial path will automatic= ally be created if you are using either ''bootstrap_conf'' or ''boostrap_co= nfdir''. =3D=3D Known Limitations =3D=3D A small number of Solr search components do not support distributed searc= h. In some cases, a component may never get distributed support, in other c= ases it may just be a matter of time and effort. All of the search componen= ts that do not yet support standard distributed search have the same limita= tion with SolrCloud. You can pass distrib=3Dfalse to use these components o= n a single SolrCore. =20