From solr-user-return-140130-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Tue Mar 27 01:22:44 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D7839180649 for ; Tue, 27 Mar 2018 01:22:43 +0200 (CEST) Received: (qmail 62240 invoked by uid 500); 26 Mar 2018 23:22:41 -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 62214 invoked by uid 99); 26 Mar 2018 23:22:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2018 23:22:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D210EC0145 for ; Mon, 26 Mar 2018 23:22:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.112 X-Spam-Level: X-Spam-Status: No, score=-0.112 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=elyograg.org Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 1hZBgFzqkXIa for ; Mon, 26 Mar 2018 23:22:35 +0000 (UTC) Received: from frodo.elyograg.org (frodo.elyograg.org [166.70.79.217]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DD09960D8C for ; Mon, 26 Mar 2018 23:22:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by frodo.elyograg.org (Postfix) with ESMTP id AA2758B0 for ; Mon, 26 Mar 2018 17:22:31 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=elyograg.org; h= content-language:content-transfer-encoding:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=mail; t=1522106551; bh=VLlfMy62CQUbPtXfm2ubCm21yd2R 23YDI4XeoiI9dI8=; b=YkAK24lS8eUZ6Xw9FwAqDVSZfm/dHCEvHwI4LbcK6ywD 57tGTy/9eBHiLb+s0JVBLm6u4PzNsWMgB9kdeGfcomkTz8Xk2If0d3beeKjzAMup i0rILw092FEh7DbW2S4aX0ACCmY2zWoy8i6wxbcTtnk9036J8Fqbo5Humg7w93c= X-Virus-Scanned: Debian amavisd-new at frodo.elyograg.org Received: from frodo.elyograg.org ([127.0.0.1]) by localhost (frodo.elyograg.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LUtqKR88Aj+8 for ; Mon, 26 Mar 2018 17:22:31 -0600 (MDT) Received: from [10.2.0.108] (client175.mainstreamdata.com [209.63.42.175]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: elyograg@elyograg.org) by frodo.elyograg.org (Postfix) with ESMTPSA id AFB7BB3A for ; Mon, 26 Mar 2018 17:22:28 -0600 (MDT) Subject: Re: Solr 4.9 - configs and collections To: solr-user@lucene.apache.org References: From: Shawn Heisey Message-ID: Date: Mon, 26 Mar 2018 17:22:21 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US On 3/26/2018 8:43 AM, Abhi Basu wrote: > Running on MS HDInsight and Solr 4.9.What is the BKM for creation, update, > delete of configurations and collections? I have no idea what a BKM is.  I will cover the update of configuration below. > I do the following: > > 1. First I create the zk config: > sudo zkcli.sh -cmd upconfig -zkhost zknode > :2181 > -confdir /home/sshuser/ems-collection-49/conf/ -confname ems-collection Exactly what you've got configured there for the zkhost parameter is difficult to decipher because it looks like the hsotname got replaced with a URL by your mail client.  But I think you've only got one ZK server there.  Usually there are at least three of them.  The command actually only needs one, but the zkHost string usually has at least three.  It's generally a good idea to use the same string for zkcli that you use for Solr itself, so it works even when a server is down. > 2. Then I create the collection: > curl ' > http://headnode0:8983/solr/admin/collections?action=CREATE&name=ems-collection&numShards=2&replicationFactor=2&maxShardsPerNode=1 > ' > > This works the first time. When I change the zk config, do I run the same > command #1? Also, do I do a reload: Yes, if you want to change an existing config and then make it active, you re-upload the config and then reload any affected collection.  Deleting and recreating the collection is not something you would want to do unless you plan to completely rebuild it anyway -- deleting the collection will also delete all the index data.  If that's what you WANT, then deleting and recreating the collection is a good way to make it happen.  Many config updates *do* require a reindex, and some changes will also require completely deleting the index directories before building it again. > Very familiar with CDH solrctl commands that make life easier by only > having one command for this. Any help is appreciated. If you're using CDH, you'll want to talk to Cloudera for help.  They customize their Solr install to the point where they're the only ones who know how to use it properly. Thanks, Shawn