You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by pramodEbay <pr...@ebay.com> on 2014/06/13 01:44:31 UTC
Solr Replication Issue : Incorrect Base_URL
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:
http://hostname:8080/raptorslrweb/solr/reviews/select?q=*%3A*&wt=json&indent=true
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).",
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",*
"core":"reviews",
"node_name":"10.98.63.98:8080_solr"},
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.
Thanks,
Pramod
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-Replication-Issue-Incorrect-Base-URL-tp4141537.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr Replication Issue : Incorrect Base_URL
Posted by Alan Woodward <al...@flax.co.uk>.
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:
>
> http://hostname:8080/raptorslrweb/solr/reviews/select?q=*%3A*&wt=json&indent=true
>
> 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).",
>
> 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",*
> "core":"reviews",
> "node_name":"10.98.63.98:8080_solr"},
>
> 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.
>
> Thanks,
> Pramod
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Solr-Replication-Issue-Incorrect-Base-URL-tp4141537.html
> Sent from the Solr - User mailing list archive at Nabble.com.