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 57BA0200C25 for ; Fri, 24 Feb 2017 20:20:40 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 56554160B69; Fri, 24 Feb 2017 19:20:40 +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 9FF0A160B62 for ; Fri, 24 Feb 2017 20:20:39 +0100 (CET) Received: (qmail 56828 invoked by uid 500); 24 Feb 2017 19:20:38 -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 56816 invoked by uid 99); 24 Feb 2017 19:20:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2017 19:20:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 504BF18E83B for ; Fri, 24 Feb 2017 19:20:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.301 X-Spam-Level: * X-Spam-Status: No, score=1.301 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=messagingengine.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Yzu722ImCrIA for ; Fri, 24 Feb 2017 19:20:35 +0000 (UTC) Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5FF345F659 for ; Fri, 24 Feb 2017 19:20:35 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 4FE2D2A59 for ; Fri, 24 Feb 2017 14:20:33 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 24 Feb 2017 14:20:33 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=M+ZfLQLk1jb2aS nJjh2mox0TfqM=; b=VbZ0yXIYZK8yqoUkIwTRVYii+NTG/UN+QpAwbEJBqux06X 5l2a68YbFUGvpCJhKX6s0seYizmwotVqG73pGmzGb5ewoAy84Mq3HlpIu+7u3DFu wtNEfvH+9m0+NvSI516ERJ25jLHp92EWr4P1NlFGtewAD0vXQbjQjUWpbcwLk= X-ME-Sender: X-Sasl-enc: qf6fkPkjKe1d5+Edyz8xf1HqvHO9wTf160Rm2ym8gWhL 1487964032 Received: from scml-wunder.chegg.com (unknown [199.58.143.199]) by mail.messagingengine.com (Postfix) with ESMTPA id 91F3424130 for ; Fri, 24 Feb 2017 14:20:32 -0500 (EST) From: Walter Underwood Content-Type: multipart/alternative; boundary="Apple-Mail=_EE5AD39A-8C9C-4F33-811F-07D7386214CC" Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: Setting Solr data dir isn't really working (6.3.0) Date: Fri, 24 Feb 2017 11:20:08 -0800 References: <1DC14231-D14D-4026-9553-A09D7D374726@wunderwood.org> <336af208-21fe-3261-2778-b67cabcb79bc@elyograg.org> To: solr-user@lucene.apache.org In-Reply-To: Message-Id: <9268A267-2C4F-4A36-A479-7681DE903225@wunderwood.org> X-Mailer: Apple Mail (2.3259) archived-at: Fri, 24 Feb 2017 19:20:40 -0000 --Apple-Mail=_EE5AD39A-8C9C-4F33-811F-07D7386214CC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks!=20 Now I need to write up the mistakes I made trying to use the solr = command. wunder Walter Underwood wunder@wunderwood.org http://observer.wunderwood.org/ (my blog) > On Feb 24, 2017, at 11:17 AM, Erick Erickson = wrote: >=20 > bq: Which means the docs have a problem, since they are recommending > something that should not be recommended >=20 > Absolutely, just changed: > = https://cwiki.apache.org/confluence/display/solr/DataDir+and+DirectoryFact= ory+in+SolrConfig. > Was that the one that mislead you? >=20 > Erick >=20 > On Fri, Feb 24, 2017 at 10:42 AM, Walter Underwood > wrote: >> Running with this, which works they way we want. >>=20 >> /solr/data/${solr.core.name} >>=20 >> wunder >> Walter Underwood >> wunder@wunderwood.org >> http://observer.wunderwood.org/ (my blog) >>=20 >>> On Feb 24, 2017, at 10:08 AM, Walter Underwood = wrote: >>>=20 >>> Dang it. I know better than that, but I was blindly following the = docs. Which means the docs have a problem, since they are recommending = something that should not be recommended. >>>=20 >>> Putting variable data on a different volume is very common. Official = support for that goes at least as far back as Unix V7 (1979), with /var. = It should be easy to do in Solr. >>>=20 >>> I expected to see the shard names as directories under /solr/data, = but I now remember that I need to set that with a variable. >>>=20 >>> Time to delete everything and rebuild everything again. >>>=20 >>> wunder >>> Walter Underwood >>> wunder@wunderwood.org >>> http://observer.wunderwood.org/ (my blog) >>>=20 >>>=20 >>>> On Feb 24, 2017, at 8:30 AM, Shawn Heisey = wrote: >>>>=20 >>>> On 2/23/2017 6:41 PM, Walter Underwood wrote: >>>>> I did this in the solrconfig.xml for both collections (tutors and = questions). >>>>>=20 >>>>> /solr/data >>>>>=20 >>>>> I deleted the old collection indexes, reloaded, restarted, and = created a new collection for =E2=80=9Ctutors". And I see this on the = disk. >>>>=20 >>>> Setting dataDir in solrconfig.xml, especially to an absolute path = like >>>> that, is generally not a good idea. It's VERY bad if that config = will >>>> be used by multiple cores. The best place to do it is in >>>> core.properties, so it's part of the core definition and = independent of >>>> config/schema. IMHO it's best to make it a relative path. Below = is a >>>> core.properties file from my dev system running 6.3.0, in a >>>> "cores/sparkinc_0" directory under the solr home. >>>>=20 >>>> I do not see anything broken in the directory listings you = provided. >>>> What do you see that is misplaced? >>>>=20 >>>> With SolrCloud, I wouldn't be setting dataDir *at all* -- I would = let >>>> Solr handle that, mostly because the config for SolrCloud is not on = the >>>> disk and therefore dataDir doesn't need to be separated from = instanceDir. >>>>=20 >>>> #Written by CorePropertiesLocator >>>> #Mon Feb 06 19:24:18 UTC 2017 >>>> name=3Dsparkinclive >>>> loadonStartup=3Dfalse >>>> dataDir=3D../../data/sparkinc_0 >>>> transient=3Dfalse >>>>=20 >>>> Thanks, >>>> Shawn >>>>=20 >>>=20 >>=20 --Apple-Mail=_EE5AD39A-8C9C-4F33-811F-07D7386214CC--