Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 859DB200BFB for ; Wed, 11 Jan 2017 15:19:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 84BBE160B4E; Wed, 11 Jan 2017 14:19:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D028E160B2E for ; Wed, 11 Jan 2017 15:19:36 +0100 (CET) Received: (qmail 48244 invoked by uid 500); 11 Jan 2017 14:19:35 -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 48232 invoked by uid 99); 11 Jan 2017 14:19:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jan 2017 14:19:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 64B041A061A for ; Wed, 11 Jan 2017 14:19:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fnevyqhc7tR8 for ; Wed, 11 Jan 2017 14:19:30 +0000 (UTC) Received: from mail-io0-f176.google.com (mail-io0-f176.google.com [209.85.223.176]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id ABAC05F286 for ; Wed, 11 Jan 2017 14:19:29 +0000 (UTC) Received: by mail-io0-f176.google.com with SMTP id j13so75974842iod.3 for ; Wed, 11 Jan 2017 06:19:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=lzJrxk0fzhv9YjwYBoMUy40ph0Y4gyPZ79IUZ4utYWQ=; b=gq5IxCxWMEA6V9FHDlyYbNsSrp1A8t6h2zpusnhk7GN8ivKB270cYINlVNX0+xP6wn zsG8Js8Q0nvOgX5xi6etiohRCzg32H6TCWeldHPeOhtbvG0vCPJxRMqPBznD/FFYfANw KqQ4P2HdiInlYx0DL8n3Go8CjECz70VJCozpwPp0tuYpneiLoGCTYFRDqIhxo1km391l 7D0SWxAYftPsg1Eohqwp70mISeqa6uJzeK8CiA/uOhqf71xOqoF5DtIWHHvaehNj7F44 twc32f5eDIHcuxCCwNudNDD4vZO0KpUKeFAVjbRJCNTm2HDTJ8GrkkyxkVcUlOxBMCUT 1RGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=lzJrxk0fzhv9YjwYBoMUy40ph0Y4gyPZ79IUZ4utYWQ=; b=G71echaa8sPL54Pr0ZnW/BgfGG5du94hTVbWiBZAmmdFKgSGJOiPsURbW9aCeRKJZn y6z60xSpLePXuJqGSl6MDfdd6xYmaiUwbYE6b7EVix2NRc21LptRQ5jSpWh2IoKXQxxs RtTykBH4dKf+PwsBp5E08re7dxLxF/ashQ9GN7zRX0qwaV6WFbPPjXNUYaC80V5Do25J 057A5e8IlwCndBYEwn/EaHp+7ApbFih5TZKeW/olSxIF3jeMnaTwbEpIENbVRh6VDPEf fQrP+l8yX8hBOArVyQzG8gyzstcGu0lZsf51CKvpDl1lfskp9SC5fqPJaSwmHo0S1zM6 KaUQ== X-Gm-Message-State: AIkVDXIMd+S6WXpV0PmImoD9fy3WFjlc7faHESORVRGqwV9yHijslC/1NJRjcJdXTFgnlJ98ysBufmqpEOHoxA== X-Received: by 10.107.141.80 with SMTP id p77mr5894193iod.97.1484144358798; Wed, 11 Jan 2017 06:19:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.9.153 with HTTP; Wed, 11 Jan 2017 06:18:38 -0800 (PST) In-Reply-To: <613195bf-6ab4-d25f-0ebe-bcbbb767282a@elyograg.org> References: <613195bf-6ab4-d25f-0ebe-bcbbb767282a@elyograg.org> From: Erick Erickson Date: Wed, 11 Jan 2017 09:18:38 -0500 Message-ID: Subject: Re: changing state.json using ZKCLI To: solr-user Content-Type: text/plain; charset=UTF-8 archived-at: Wed, 11 Jan 2017 14:19:37 -0000 BTW, since Solr 6.2 you can get/put arbitrary znodes using the bin/solr script with more unix-like commands. To see the options type bin/solr zk -help You can get the same functionality out of either, it's a matter of which one you're more comfortable with. Erick On Tue, Jan 10, 2017 at 11:12 PM, Shawn Heisey wrote: > On 1/10/2017 5:28 PM, Chetas Joshi wrote: >> I have got 2 shards having hash range set to null due to some index >> corruption. >> >> I am trying to manually get, edit and put the file. > >> ./zkcli.sh -zkhost ${zkhost} -cmd putfile ~/colName_state.json >> /collections/colName/state.json >> >> I am getting FileNotFound exception with the putfile command > > You've got the parameters backwards. The zookeeper location comes first. > > Run the zkcli script with no parameters to see the examples of the > various commands available, which includes this line: > > zkcli.sh -zkhost localhost:9983 -cmd putfile /solr.xml > /User/myuser/solr/solr.xml > > Thanks, > Shawn >