Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C5309060 for ; Mon, 2 Apr 2012 12:33:25 +0000 (UTC) Received: (qmail 25704 invoked by uid 500); 2 Apr 2012 12:33:22 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 25532 invoked by uid 500); 2 Apr 2012 12:33:22 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 25524 invoked by uid 99); 2 Apr 2012 12:33:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 12:33:22 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-iy0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 12:33:16 +0000 Received: by iagw33 with SMTP id w33so5490048iag.35 for ; Mon, 02 Apr 2012 05:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=TNQiYcgLFLv4v8Hvp2MEh4LCK7mcgoIgeo+DWHbGkdI=; b=ZDsZ5v3v5F+Rm/I0hSiFg4LbxUQ5rENsgmm8l4+UKB9y/roXhXM4X6P3b16c8ibHrl W9ES3E9IgmEvN+olC8G5saQm/ut/xzHVH+2PEluoPZ49xkAqdE9fiXvn5rp46X0CqJhw 4nKLs3m6DcepI4S2cdhTF6Yn2lIgn/beco4Zd2+R/EsKguVIf8JI4Azus9XD9nESAl+5 QbqUrBfILujlZknoXowNDSIJgtb0ysQufPCNFVyLxjH8bPmvglflKxRUf6dhshQNP7R9 fBrOh8tBbrEqqN6tF/UBKwyNYmBpZVVCE7cRHcI/hdhGrpIkoUOaEowVUPshgQvbUXl9 xoVQ== MIME-Version: 1.0 Received: by 10.42.203.148 with SMTP id fi20mr4232551icb.10.1333369975279; Mon, 02 Apr 2012 05:32:55 -0700 (PDT) Received: by 10.43.46.137 with HTTP; Mon, 2 Apr 2012 05:32:55 -0700 (PDT) In-Reply-To: <1333346378471-3876869.post@n3.nabble.com> References: <1333010247546-3867086.post@n3.nabble.com> <1333081837678-3869896.post@n3.nabble.com> <6EC9B7CC-0B6C-4ECF-A079-E37A6FDCBBFA@gmail.com> <1333343715950-3876820.post@n3.nabble.com> <1333346378471-3876869.post@n3.nabble.com> Date: Mon, 2 Apr 2012 08:32:55 -0400 Message-ID: Subject: Re: SolrCloud From: Erick Erickson To: solr-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 No, you don't have to run zookeeper on each replica. Zookeeper is a repository for your system (cluster) information. It knows about each replica, but ZK does not need to run on each shard. You can run one zookeeper instance for your entire cluster, no matter how many shards/replicas you have. Here's a good place to get started understanding ZK: http://zookeeper.apache.org/ Internally, SolrCloud uses ZooKeeper to understand what to do with update and search requests. In effect, it asks ZK "How many shards are there and what is the address of each leader"? and "does the right thing" with the results... My suggestion is that you pretty much forget ZK exists until you get a bit more comfortable with SolrCloud. Run it embedded in a single instance (and do NOT shut that instance down!). >From there, you should see SolrCloud "just work" and it'll at least get you started. Best Erick On Mon, Apr 2, 2012 at 1:59 AM, asia wrote: > Thanks for replying, > So if i will make a replica of each shard,then should I use zookeeper for > every shards and replica or only for the replica.! more question i want to > ask is that I am using solr in tomcat and eclipse environment using solrj.so > I am a bit confuse as to how to use zookeeper in it along with tomcat.I have > downloaded zookeeper jar files also but need little help in it. > -Asia > > -- > View this message in context: http://lucene.472066.n3.nabble.com/SolrCloud-tp3867086p3876869.html > Sent from the Solr - User mailing list archive at Nabble.com.