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 Eric Pugh <ep...@opensourceconnections.com> on 2020/03/27 17:17:26 UTC

Checking my understanding of SOLR_HOME

I am struggling with using the zkHost and the JDBC end point (https://lucene.apache.org/solr/guide/6_6/parallel-sql-interface.html#jdbc-driver) and I believe it’s because when I deploy, it gets a IP address that is internal to the network accessible, but accessible externally via DNS name:

http://quepid-solr.dev.o19s.com:8985/solr/#/~cloud?view=tree

I’m also using Docker, so the internal :8983 gets mapped to the external :8985 port.   

I *think* what I need to do is:

1) Use the SOLR_HOST parameter to make sure the hostname is “quepid-solr.dev.o19s.com” in my startup Script.
2) Set the environment variable SOLR_PORT to be 8985 instead of using the Docker mapping of ports.

If this is correct understanding, then I think adding a bit more documentation to https://lucene.apache.org/solr/guide/8_4/taking-solr-to-production.html#solr-hostname would be useful, and happy to add a documentation PR as it’s not super clear to me.

Eric
_______________________
Eric Pugh | Founder & CEO | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com <http://www.opensourceconnections.com/> | My Free/Busy <http://tinyurl.com/eric-cal>  
Co-Author: Apache Solr Enterprise Search Server, 3rd Ed <https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw>	
This e-mail and all contents, including attachments, is considered to be Company Confidential unless explicitly stated otherwise, regardless of whether attachments are marked as such.


Re: Checking my understanding of SOLR_HOME

Posted by Houston Putman <ho...@gmail.com>.
1. You are correct about the SOLR_HOST parameter.

2. Your SOLR_PORT variable should be 8983, as that's what solr will be
listening on. However you want to make sure to use port 8985 in the
solr.xml so that the node advertises itself as using that port in the
liveNodes.

<solr>
  <solrcloud>
    <int name="hostPort">${hostPort:8985}</int>
  </solr></solrcloud>

With this setup you can pass in the external port as -DhostPort=<>


On Fri, Mar 27, 2020 at 1:17 PM Eric Pugh <ep...@opensourceconnections.com>
wrote:

> I am struggling with using the zkHost and the JDBC end point (
> https://lucene.apache.org/solr/guide/6_6/parallel-sql-interface.html#jdbc-driver)
> and I believe it’s because when I deploy, it gets a IP address that is
> internal to the network accessible, but accessible externally via DNS name:
>
> http://quepid-solr.dev.o19s.com:8985/solr/#/~cloud?view=tree
>
> I’m also using Docker, so the internal :8983 gets mapped to the external
> :8985 port.
>
> I *think* what I need to do is:
>
> 1) Use the SOLR_HOST parameter to make sure the hostname is “
> quepid-solr.dev.o19s.com” in my startup Script.
> 2) Set the environment variable SOLR_PORT to be 8985 instead of using the
> Docker mapping of ports.
>
> If this is correct understanding, then I think adding a bit more
> documentation to
> https://lucene.apache.org/solr/guide/8_4/taking-solr-to-production.html#solr-hostname
> would be useful, and happy to add a documentation PR as it’s not super
> clear to me.
>
> Eric
> _______________________
> Eric Pugh | Founder & CEO | OpenSource Connections, LLC | 434.466.1467 |
> http://www.opensourceconnections.com <
> http://www.opensourceconnections.com/> | My Free/Busy <
> http://tinyurl.com/eric-cal>
> Co-Author: Apache Solr Enterprise Search Server, 3rd Ed <
> https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw>
>
> This e-mail and all contents, including attachments, is considered to be
> Company Confidential unless explicitly stated otherwise, regardless of
> whether attachments are marked as such.
>
>