You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Shankar R <ia...@gmail.com> on 2022/09/02 15:48:31 UTC

how to use solr streaming expressions without using zkhost

Hi All,
 Want to know how we can use httpSolrClient where we don't need to pass ZK
HOST details for streaming expressions using solrJ client. Any sample code
will really help.

Regards
Ravi

Re: how to use solr streaming expressions without using zkhost

Posted by Shankar R <ia...@gmail.com>.
Thanks a lot Joel. it works

On Mon, Sep 5, 2022 at 5:36 AM Joel Bernstein <jo...@gmail.com> wrote:

> This blog explains how to use the SolrStream to send a streaming expression
> to a Solr endpoint without zkhost information
>
> https://lucidworks.com/post/streaming-expressions-in-solrj/
>
>
>
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
>
> On Fri, Sep 2, 2022 at 1:40 PM Eric Pugh <ep...@opensourceconnections.com>
> wrote:
>
> > I think it’s SolrCloud only….    A lot of what makes streaming fun is the
> > ability to break workloads up amoung multiple solr nodes…. And push work
> > down to different nodes.
> >
> > However, you can just do .bin/start -c and run a single node Solr in
> > SolrCloud...
> >
> > > On Sep 2, 2022, at 12:34 PM, Shawn Heisey <apache@elyograg.org.INVALID
> >
> > wrote:
> > >
> > > On 9/2/22 10:30, Eric Pugh wrote:
> > >> "SolrJ streaming expressions: don’t depend on ZK anymore"
> > >
> > > For my own education... does streaming expressions require SolrCloud,
> or
> > can it work in standalone mode?
> > >
> > > Thanks,
> > > Shawn
> > >
> >
> > _______________________
> > 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: how to use solr streaming expressions without using zkhost

Posted by Joel Bernstein <jo...@gmail.com>.
This blog explains how to use the SolrStream to send a streaming expression
to a Solr endpoint without zkhost information

https://lucidworks.com/post/streaming-expressions-in-solrj/




Joel Bernstein
http://joelsolr.blogspot.com/


On Fri, Sep 2, 2022 at 1:40 PM Eric Pugh <ep...@opensourceconnections.com>
wrote:

> I think it’s SolrCloud only….    A lot of what makes streaming fun is the
> ability to break workloads up amoung multiple solr nodes…. And push work
> down to different nodes.
>
> However, you can just do .bin/start -c and run a single node Solr in
> SolrCloud...
>
> > On Sep 2, 2022, at 12:34 PM, Shawn Heisey <ap...@elyograg.org.INVALID>
> wrote:
> >
> > On 9/2/22 10:30, Eric Pugh wrote:
> >> "SolrJ streaming expressions: don’t depend on ZK anymore"
> >
> > For my own education... does streaming expressions require SolrCloud, or
> can it work in standalone mode?
> >
> > Thanks,
> > Shawn
> >
>
> _______________________
> 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: how to use solr streaming expressions without using zkhost

Posted by Eric Pugh <ep...@opensourceconnections.com>.
I think it’s SolrCloud only….    A lot of what makes streaming fun is the ability to break workloads up amoung multiple solr nodes…. And push work down to different nodes.

However, you can just do .bin/start -c and run a single node Solr in SolrCloud...

> On Sep 2, 2022, at 12:34 PM, Shawn Heisey <ap...@elyograg.org.INVALID> wrote:
> 
> On 9/2/22 10:30, Eric Pugh wrote:
>> "SolrJ streaming expressions: don’t depend on ZK anymore"
> 
> For my own education... does streaming expressions require SolrCloud, or can it work in standalone mode?
> 
> Thanks,
> Shawn
> 

_______________________
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: how to use solr streaming expressions without using zkhost

Posted by Shawn Heisey <ap...@elyograg.org.INVALID>.
On 9/2/22 10:30, Eric Pugh wrote:
> "SolrJ streaming expressions: don’t depend on ZK anymore"

For my own education... does streaming expressions require SolrCloud, or 
can it work in standalone mode?

Thanks,
Shawn


Re: how to use solr streaming expressions without using zkhost

Posted by Eric Pugh <ep...@opensourceconnections.com>.
I believe that this is actually a new feature of Solr 9.1, when it’s released…. The changes to SolrJ introduced in SOLR-15342 actually let you avoid using the ZK host….    

https://github.com/apache/solr/commit/88bc36ae9e916bafca8863c25b8bb5bb8185d89f <https://github.com/apache/solr/commit/88bc36ae9e916bafca8863c25b8bb5bb8185d89f>

"SolrJ streaming expressions: don’t depend on ZK anymore"

> On Sep 2, 2022, at 11:48 AM, Shankar R <ia...@gmail.com> wrote:
> 
> Hi All,
> Want to know how we can use httpSolrClient where we don't need to pass ZK
> HOST details for streaming expressions using solrJ client. Any sample code
> will really help.
> 
> Regards
> Ravi

_______________________
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.