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 D4FAB10CB9 for ; Fri, 13 Jun 2014 08:29:31 +0000 (UTC) Received: (qmail 65106 invoked by uid 500); 13 Jun 2014 08:29:28 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 65023 invoked by uid 500); 13 Jun 2014 08:29:28 -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 65013 invoked by uid 99); 13 Jun 2014 08:29:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 08:29:28 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.212.175] (HELO mail-wi0-f175.google.com) (209.85.212.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 08:29:23 +0000 Received: by mail-wi0-f175.google.com with SMTP id r20so432294wiv.14 for ; Fri, 13 Jun 2014 01:29:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type:subject:date :in-reply-to:to:references:message-id; bh=EVkpIK8VsxrL1IZjBoGG43y83BHnKb8c+gtrJjUEy34=; b=IjiwVRNgjc/yeT3vkRNZimbX7arrCA6fNr7ECmLmUN6M1jguGoqnlcFbpan/Ks0RXS xAoslF2HUjt7cDsBhSAs8Kmj4O1L/VXlqD+uwP92+hq/MH8a50wMdvKMCFNrc8ovK86f zfays3t/7FyIt1sdRlKnI1PV5GpCQaxqnCKaK7GqLzTgdXFbw80HlyhkxMkbkvlag/Aq 2wRa4KVytirexlYM0ZvurPY0lWoI/IkqhXaIMxwCJ3Wy6KFmX3XFyEF4VbYdw3W+PGrB 1tTgn8IpIv5MkdUJKkv1FTspqrdHJBKiWTHQfQEyEbd0F9Ehnso0Qd1PxmDxTDl7dYTT HJbg== X-Gm-Message-State: ALoCoQm9JRMOrVDv85b5luIrzUc366bjEDEL3FAK4o0VSdkn2QMYGV15NBBAmINPTWCtqrQxvMhZ X-Received: by 10.180.94.37 with SMTP id cz5mr2506890wib.19.1402648140675; Fri, 13 Jun 2014 01:29:00 -0700 (PDT) Received: from [192.168.0.2] (host-92-16-147-77.as13285.net. [92.16.147.77]) by mx.google.com with ESMTPSA id e11sm1124633wiw.19.2014.06.13.01.28.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Jun 2014 01:28:59 -0700 (PDT) From: Alan Woodward Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/alternative; boundary="Apple-Mail=_90353F86-F5A0-49AD-9B0A-A274DC1E0839" Subject: Re: Solr Replication Issue : Incorrect Base_URL Date: Fri, 13 Jun 2014 09:28:59 +0100 In-Reply-To: <1402616671072-4141537.post@n3.nabble.com> To: solr-user@lucene.apache.org References: <1402616671072-4141537.post@n3.nabble.com> Message-Id: <9A8E1149-2093-46FD-9C36-BBDB9D37E080@flax.co.uk> X-Mailer: Apple Mail (2.1283) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_90353F86-F5A0-49AD-9B0A-A274DC1E0839 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Pramod, You need to set hostContext in your solr.xml. See = https://cwiki.apache.org/confluence/display/solr/Format+of+solr.xml Alan Woodward www.flax.co.uk On 13 Jun 2014, at 00:44, pramodEbay wrote: > Hi, > I am deploying Solr in a larger web application. The standalone solr > instance works fine. The path-prefix I use is raptorslrweb. A = standalone > SOLR query to my instance that works is as follows: >=20 > = http://hostname:8080/raptorslrweb/solr/reviews/select?q=3D*%3A*&wt=3Djson&= indent=3Dtrue >=20 > However, when I configure a solr cloud, I get the following error in > RecoveryStrategy: > "msg":"org.apache.solr.client.solrj.SolrServerException: Server at > http://hostname:8080/solr/reviews sent back a redirect (302).", >=20 > The reason is the base_url does not seem to honor the path-prefix. > clusterstate.json shows the following for the node: > {"reviews":{ > "shards":{"shard1":{ > "range":null, > "state":"active", > "parent":null, > "replicas":{ > "core_node1":{ > "state":"down", > * "base_url":"http://hostname:8080/solr",* =20 > "core":"reviews", > "node_name":"10.98.63.98:8080_solr"}, >=20 > Can someone please tell me where do I tell zookeeper or solr cloud = that the > base url should be hostname:8080/raptorslrweb/solr and not > hostname:8080/solr. >=20 > Thanks, > Pramod >=20 >=20 >=20 > -- > View this message in context: = http://lucene.472066.n3.nabble.com/Solr-Replication-Issue-Incorrect-Base-U= RL-tp4141537.html > Sent from the Solr - User mailing list archive at Nabble.com. --Apple-Mail=_90353F86-F5A0-49AD-9B0A-A274DC1E0839--