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 63353119E2 for ; Thu, 3 Jul 2014 23:36:22 +0000 (UTC) Received: (qmail 55154 invoked by uid 500); 3 Jul 2014 23:36:18 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 55089 invoked by uid 500); 3 Jul 2014 23:36:18 -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 55076 invoked by uid 99); 3 Jul 2014 23:36:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2014 23:36:18 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bpanulla@gmail.com designates 209.85.128.181 as permitted sender) Received: from [209.85.128.181] (HELO mail-ve0-f181.google.com) (209.85.128.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2014 23:36:15 +0000 Received: by mail-ve0-f181.google.com with SMTP id db11so950909veb.40 for ; Thu, 03 Jul 2014 16:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Wxi7JPwjnNBHGmfo0LnTMnP82s6+htW6GqSfIPcMiDI=; b=DPOXG4XFguWMoXja/Mlb9No++3wuyn/A7AkBV33S0Dp1aKgkXAsrEjBtV7xnduHA4G segDLsNHV7++S/GWZrwpFtCUj3R7izYpoKhbkC8wg/1G24vfMUBd92vmhgvTgF8qS21L yrkMQrlEcJ7YfR33KORTd8OZFET5wDDpYlcJb80aL4RiBUfHeqPfYieQ2hx9G3aon+9R guLTZqAZN27NP0drcYp/yhIYTCNK2TI3981ENBbOq94yZLf3iAGKeuaDt4vj+m5aWMbp 5FktgrCsnZhnnIXSTpXYr5jQFiroSF2LTJZxUgI3Ssuv+4mgUHvooNJm8Fx81xYVFrwM Ldqw== MIME-Version: 1.0 X-Received: by 10.58.150.100 with SMTP id uh4mr4351561veb.30.1404430550527; Thu, 03 Jul 2014 16:35:50 -0700 (PDT) Received: by 10.221.37.69 with HTTP; Thu, 3 Jul 2014 16:35:50 -0700 (PDT) Date: Thu, 3 Jul 2014 16:35:50 -0700 Message-ID: Subject: Passing Solr data directory to DataImportHandler? From: Brian Panulla To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=047d7b670b3713749904fd527882 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b670b3713749904fd527882 Content-Type: text/plain; charset=UTF-8 I'm trying to use the new propertyWriter configuration directive for DataImportHandler ( https://wiki.apache.org/solr/DataImportHandler#Configuring_The_Property_Writer). I'd like to tell Solr to write the dataimport.properties to the data directory for the corresponding Core on our multicore server. I'm passing in the filesystem location for Solr's data directory via Tomcat's catalina.properties file. Each core writes its data to: ${solr.data.dir}/${solr.core.name} Is there any way to reference these properties from within the DataImportHandler data-config.xml ? This doesn't seem to work: I get the following exception; I have a feeling it's not able to resolve the variables. [ERROR] 32:48 (SolrException.java:log:120) Full Import failed:org.apache.solr.handler.dataimport.DataImportHandlerException: Properties is not writable. Delta imports are supported by data config but will not work. Processing Document # 1 at org.apache.solr.handler.dataimport.DataImporter.checkWritablePersistFile(DataImporter.java:430) at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:410) at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:483) at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:464) Any hints on some way to accomplish this without hard-coding the paths in data-config.xml ? -B --047d7b670b3713749904fd527882--