You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by "Natarajan, Rajeswari" <ra...@sap.com.INVALID> on 2023/09/13 02:17:19 UTC
Solr latest 9.x - SOLR_HOST
Trying to upgrade to solr 9.3 .
Defined below in solr.in.sh
SOLR_HOST=<ipaddress of the machine>
SOLR_JETTY_HOST=0.0.0.0
But still see the solr instance getting registered as localhost with zookeeper . Not sure what is missing?
2023-09-13 02:11:10.514 INFO (main) [] o.a.s.c.ZkController Register node as live in ZooKeeper:/live_nodes/localhost:8983_solr
Thanks,
Rajeswari
On 5/21/22, 11:06 AM, "Shawn Heisey" <apache@elyograg.org <ma...@elyograg.org>> wrote:
On 5/21/2022 8:02 AM, Shawn Heisey wrote:
> If you have installed the solr service, then you would want to do
> "service solr status" instead, replacing solr with whatever you
> actually named the service. Did you install the service with the
> service installer script? What options did you use for that? What OS
> is this on? What is the full path of the configuration file where you
> changed SOLR_HOST? If you haven't used the installer script, then I
> will need details about exactly how and where you installed Solr in
> order to know what to ask next.
This might be really easy to resolve.
I've been looking at the startup scripts. SOLR_HOST does not control
what address Solr listens on. Solr 9.x only listens on 127.0.0.1 by
default. Previous Solr versions listened on all interfaces by default.
I bet if you added this line it might start working. If not, provide
the info already requested:
SOLR_JETTY_HOST=192.168.100.2
You should probably also keep the SOLR_HOST you have defined.
Thanks,
Shawn
Re: Solr latest 9.x - SOLR_HOST
Posted by "Natarajan, Rajeswari" <ra...@sap.com.INVALID>.
Nope , turned out to be adding the setting in wrong condition loop in solr.in.sh
Thanks,
Rajeswari
On 9/13/23, 5:34 AM, "Ishan Chattopadhyaya" <ichattopadhyaya@gmail.com <ma...@gmail.com>> wrote:
If you're sure it is a regression, please open a JIRA ticket for it and
someone can take a look. Alternatively, please feel free to submit a PR too.
Thanks!
Ishan
On Wed, 13 Sept, 2023, 8:00 am Natarajan, Rajeswari,
<rajeswari.natarajan@sap.com.inva <ma...@sap.com.inva>lid> wrote:
> Additional details
>
> Running Solr instance in alpine OS
> Not running solr as service
> And it is working with solr 8.11.1 version
>
> Thanks,
> Rajeswari
> On 9/12/23, 10:17 PM, "Natarajan, Rajeswari" <rajeswari.natarajan@sap.com.INVA <ma...@sap.com.INVA>
> <mailto:rajeswari.natarajan@sap.com.INVA <ma...@sap.com.INVA>>LID> wrote:
>
>
> Trying to upgrade to solr 9.3 .
>
>
> Defined below in solr.in.sh
> SOLR_HOST=<ipaddress of the machine>
> SOLR_JETTY_HOST=0.0.0.0
>
>
>
>
> But still see the solr instance getting registered as localhost with
> zookeeper . Not sure what is missing?
>
>
> 2023-09-13 02:11:10.514 INFO (main) [] o.a.s.c.ZkController Register node
> as live in ZooKeeper:/live_nodes/localhost:8983_solr
>
>
>
>
> Thanks,
> Rajeswari
>
>
>
>
> On 5/21/22, 11:06 AM, "Shawn Heisey" <apache@elyograg.org <ma...@elyograg.org> <mailto:
> apache@elyograg.org <ma...@elyograg.org>> <mailto:apache@elyograg.org <ma...@elyograg.org> <mailto:
> apache@elyograg.org <ma...@elyograg.org>>>> wrote:
>
>
>
>
>
>
>
>
> On 5/21/2022 8:02 AM, Shawn Heisey wrote:
> > If you have installed the solr service, then you would want to do
> > "service solr status" instead, replacing solr with whatever you
> > actually named the service. Did you install the service with the
> > service installer script? What options did you use for that? What OS
> > is this on? What is the full path of the configuration file where you
> > changed SOLR_HOST? If you haven't used the installer script, then I
> > will need details about exactly how and where you installed Solr in
> > order to know what to ask next.
>
>
>
>
> This might be really easy to resolve.
>
>
>
>
> I've been looking at the startup scripts. SOLR_HOST does not control
> what address Solr listens on. Solr 9.x only listens on 127.0.0.1 by
> default. Previous Solr versions listened on all interfaces by default.
>
>
>
>
> I bet if you added this line it might start working. If not, provide
> the info already requested:
>
>
>
>
> SOLR_JETTY_HOST=192.168.100.2
>
>
>
>
> You should probably also keep the SOLR_HOST you have defined.
>
>
>
>
> Thanks,
> Shawn
>
>
>
>
>
>
>
>
>
>
>
>
>
>
Re: Solr latest 9.x - SOLR_HOST
Posted by Ishan Chattopadhyaya <ic...@gmail.com>.
If you're sure it is a regression, please open a JIRA ticket for it and
someone can take a look. Alternatively, please feel free to submit a PR too.
Thanks!
Ishan
On Wed, 13 Sept, 2023, 8:00 am Natarajan, Rajeswari,
<ra...@sap.com.invalid> wrote:
> Additional details
>
> Running Solr instance in alpine OS
> Not running solr as service
> And it is working with solr 8.11.1 version
>
> Thanks,
> Rajeswari
> On 9/12/23, 10:17 PM, "Natarajan, Rajeswari" <rajeswari.natarajan@sap.com.INVA
> <ma...@sap.com.INVA>LID> wrote:
>
>
> Trying to upgrade to solr 9.3 .
>
>
> Defined below in solr.in.sh
> SOLR_HOST=<ipaddress of the machine>
> SOLR_JETTY_HOST=0.0.0.0
>
>
>
>
> But still see the solr instance getting registered as localhost with
> zookeeper . Not sure what is missing?
>
>
> 2023-09-13 02:11:10.514 INFO (main) [] o.a.s.c.ZkController Register node
> as live in ZooKeeper:/live_nodes/localhost:8983_solr
>
>
>
>
> Thanks,
> Rajeswari
>
>
>
>
> On 5/21/22, 11:06 AM, "Shawn Heisey" <apache@elyograg.org <mailto:
> apache@elyograg.org> <mailto:apache@elyograg.org <mailto:
> apache@elyograg.org>>> wrote:
>
>
>
>
>
>
>
>
> On 5/21/2022 8:02 AM, Shawn Heisey wrote:
> > If you have installed the solr service, then you would want to do
> > "service solr status" instead, replacing solr with whatever you
> > actually named the service. Did you install the service with the
> > service installer script? What options did you use for that? What OS
> > is this on? What is the full path of the configuration file where you
> > changed SOLR_HOST? If you haven't used the installer script, then I
> > will need details about exactly how and where you installed Solr in
> > order to know what to ask next.
>
>
>
>
> This might be really easy to resolve.
>
>
>
>
> I've been looking at the startup scripts. SOLR_HOST does not control
> what address Solr listens on. Solr 9.x only listens on 127.0.0.1 by
> default. Previous Solr versions listened on all interfaces by default.
>
>
>
>
> I bet if you added this line it might start working. If not, provide
> the info already requested:
>
>
>
>
> SOLR_JETTY_HOST=192.168.100.2
>
>
>
>
> You should probably also keep the SOLR_HOST you have defined.
>
>
>
>
> Thanks,
> Shawn
>
>
>
>
>
>
>
>
>
>
>
>
>
>
Re: Solr latest 9.x - SOLR_HOST
Posted by "Natarajan, Rajeswari" <ra...@sap.com.INVALID>.
Yes the solr.in.sh is modified and based on the env there is different logic to set the hostname. Solr is deployed and then modified solr.in.sh is copied .
As stated in the other email , this is user error.
Thanks,
Rajeeswari
On 9/13/23, 7:52 AM, "Jan Høydahl" <jan.asf@cominvent.com <ma...@cominvent.com>> wrote:
Are you modifying the correct solr.in.sh file?
How do you install solr?
Can you by any chance reproduce this in a new, tiny, fresh 9.3 cluster, to rule out old cruft remaining from an existing install?
Jan
> 13. sep. 2023 kl. 04:29 skrev Natarajan, Rajeswari <rajeswari.natarajan@sap.com.INVA <ma...@sap.com.INVA>LID>:
>
> Additional details
>
> Running Solr instance in alpine OS
> Not running solr as service
> And it is working with solr 8.11.1 version
>
> Thanks,
> Rajeswari
> On 9/12/23, 10:17 PM, "Natarajan, Rajeswari" <rajeswari.natarajan@sap.com.INVA <ma...@sap.com.INVA> <mailto:rajeswari.natarajan@sap.com.INVA <ma...@sap.com.INVA>>LID> wrote:
>
>
> Trying to upgrade to solr 9.3 .
>
>
> Defined below in solr.in.sh
> SOLR_HOST=<ipaddress of the machine>
> SOLR_JETTY_HOST=0.0.0.0
>
>
>
>
> But still see the solr instance getting registered as localhost with zookeeper . Not sure what is missing?
>
>
> 2023-09-13 02:11:10.514 INFO (main) [] o.a.s.c.ZkController Register node as live in ZooKeeper:/live_nodes/localhost:8983_solr
>
>
>
>
> Thanks,
> Rajeswari
>
>
>
>
> On 5/21/22, 11:06 AM, "Shawn Heisey" <apache@elyograg.org <ma...@elyograg.org> <mailto:apache@elyograg.org <ma...@elyograg.org>> <mailto:apache@elyograg.org <ma...@elyograg.org> <mailto:apache@elyograg.org <ma...@elyograg.org>>>> wrote:
>
>
>
>
>
>
>
>
> On 5/21/2022 8:02 AM, Shawn Heisey wrote:
>> If you have installed the solr service, then you would want to do
>> "service solr status" instead, replacing solr with whatever you
>> actually named the service. Did you install the service with the
>> service installer script? What options did you use for that? What OS
>> is this on? What is the full path of the configuration file where you
>> changed SOLR_HOST? If you haven't used the installer script, then I
>> will need details about exactly how and where you installed Solr in
>> order to know what to ask next.
>
>
>
>
> This might be really easy to resolve.
>
>
>
>
> I've been looking at the startup scripts. SOLR_HOST does not control
> what address Solr listens on. Solr 9.x only listens on 127.0.0.1 by
> default. Previous Solr versions listened on all interfaces by default.
>
>
>
>
> I bet if you added this line it might start working. If not, provide
> the info already requested:
>
>
>
>
> SOLR_JETTY_HOST=192.168.100.2
>
>
>
>
> You should probably also keep the SOLR_HOST you have defined.
>
>
>
>
> Thanks,
> Shawn
>
>
>
>
>
>
>
>
>
>
>
>
>
Re: Solr latest 9.x - SOLR_HOST
Posted by Jan Høydahl <ja...@cominvent.com>.
Are you modifying the correct solr.in.sh file?
How do you install solr?
Can you by any chance reproduce this in a new, tiny, fresh 9.3 cluster, to rule out old cruft remaining from an existing install?
Jan
> 13. sep. 2023 kl. 04:29 skrev Natarajan, Rajeswari <ra...@sap.com.INVALID>:
>
> Additional details
>
> Running Solr instance in alpine OS
> Not running solr as service
> And it is working with solr 8.11.1 version
>
> Thanks,
> Rajeswari
> On 9/12/23, 10:17 PM, "Natarajan, Rajeswari" <rajeswari.natarajan@sap.com.INVA <ma...@sap.com.INVA>LID> wrote:
>
>
> Trying to upgrade to solr 9.3 .
>
>
> Defined below in solr.in.sh
> SOLR_HOST=<ipaddress of the machine>
> SOLR_JETTY_HOST=0.0.0.0
>
>
>
>
> But still see the solr instance getting registered as localhost with zookeeper . Not sure what is missing?
>
>
> 2023-09-13 02:11:10.514 INFO (main) [] o.a.s.c.ZkController Register node as live in ZooKeeper:/live_nodes/localhost:8983_solr
>
>
>
>
> Thanks,
> Rajeswari
>
>
>
>
> On 5/21/22, 11:06 AM, "Shawn Heisey" <apache@elyograg.org <ma...@elyograg.org> <mailto:apache@elyograg.org <ma...@elyograg.org>>> wrote:
>
>
>
>
>
>
>
>
> On 5/21/2022 8:02 AM, Shawn Heisey wrote:
>> If you have installed the solr service, then you would want to do
>> "service solr status" instead, replacing solr with whatever you
>> actually named the service. Did you install the service with the
>> service installer script? What options did you use for that? What OS
>> is this on? What is the full path of the configuration file where you
>> changed SOLR_HOST? If you haven't used the installer script, then I
>> will need details about exactly how and where you installed Solr in
>> order to know what to ask next.
>
>
>
>
> This might be really easy to resolve.
>
>
>
>
> I've been looking at the startup scripts. SOLR_HOST does not control
> what address Solr listens on. Solr 9.x only listens on 127.0.0.1 by
> default. Previous Solr versions listened on all interfaces by default.
>
>
>
>
> I bet if you added this line it might start working. If not, provide
> the info already requested:
>
>
>
>
> SOLR_JETTY_HOST=192.168.100.2
>
>
>
>
> You should probably also keep the SOLR_HOST you have defined.
>
>
>
>
> Thanks,
> Shawn
>
>
>
>
>
>
>
>
>
>
>
>
>
Re: Solr latest 9.x - SOLR_HOST
Posted by "Natarajan, Rajeswari" <ra...@sap.com.INVALID>.
Additional details
Running Solr instance in alpine OS
Not running solr as service
And it is working with solr 8.11.1 version
Thanks,
Rajeswari
On 9/12/23, 10:17 PM, "Natarajan, Rajeswari" <rajeswari.natarajan@sap.com.INVA <ma...@sap.com.INVA>LID> wrote:
Trying to upgrade to solr 9.3 .
Defined below in solr.in.sh
SOLR_HOST=<ipaddress of the machine>
SOLR_JETTY_HOST=0.0.0.0
But still see the solr instance getting registered as localhost with zookeeper . Not sure what is missing?
2023-09-13 02:11:10.514 INFO (main) [] o.a.s.c.ZkController Register node as live in ZooKeeper:/live_nodes/localhost:8983_solr
Thanks,
Rajeswari
On 5/21/22, 11:06 AM, "Shawn Heisey" <apache@elyograg.org <ma...@elyograg.org> <mailto:apache@elyograg.org <ma...@elyograg.org>>> wrote:
On 5/21/2022 8:02 AM, Shawn Heisey wrote:
> If you have installed the solr service, then you would want to do
> "service solr status" instead, replacing solr with whatever you
> actually named the service. Did you install the service with the
> service installer script? What options did you use for that? What OS
> is this on? What is the full path of the configuration file where you
> changed SOLR_HOST? If you haven't used the installer script, then I
> will need details about exactly how and where you installed Solr in
> order to know what to ask next.
This might be really easy to resolve.
I've been looking at the startup scripts. SOLR_HOST does not control
what address Solr listens on. Solr 9.x only listens on 127.0.0.1 by
default. Previous Solr versions listened on all interfaces by default.
I bet if you added this line it might start working. If not, provide
the info already requested:
SOLR_JETTY_HOST=192.168.100.2
You should probably also keep the SOLR_HOST you have defined.
Thanks,
Shawn