Re: Embedded Solr now deprecated?

2015-08-06 Thread Lukasz Salwinski

On 08/05/2015 08:34 PM, Ken Krugler wrote:

Hi Shawn,

We have a different use case than the ones you covered in your response to 
Robert
(below), which I wanted to call out.

We currently use the embedded server when building indexes as part of a Hadoop
workflow. The results get copied to a production analytics server and swapped 
in on
a daily basis.

Writing to multiple embedded servers (one per reduce task) gives us maximum
performance, and has proven to be a very reliable method for the daily rebuild 
of
pre-aggregations we need for our analytics use case.

Regards,

-- Ken


Hi,
  applications that are ultimately deployed by a third party not well versed in
the intricacies of deploying a full-blown installation of solr would be another
use case.  Embedding the server, either through embedded class or by deploying
it entirely within web application (as opposed to a stand alone server) might be
preferred as it makes deployment much simpler.
   There are applications where solr could be used as a search engine to 
supplement
their core functionalities but only when one doesnt have to pay the price of 
overly
complicated deployment of the entire package.

lukasz




PS - I'm also currently looking at using embedded Solr as a state storage 
engine for Samza.


From: Shawn Heisey
Sent: August 5, 2015 7:54:07am PDT
To: solr-user@lucene.apache.org
Subject: Re: Embedded Solr now deprecated?

On 8/5/2015 7:09 AM, Robert Krüger wrote:

I tried to upgrade my application from solr 4 to 5 and just now realized
that embedded use of solr seems to be on the way out. Is that correct or is
there a just new API to use for that?


Building on Erick's reply:

I doubt that the embedded server is going away, and I do not recall
seeing *anything* marking the entire class deprecated.  The class still
receives attention from devs -- this feature was released with 5.1.0:

https://issues.apache.org/jira/browse/SOLR-7307

That said, we have discouraged users from deploying it in production for
quite some time, even though it continues to exist and receive developer
attention.  Some of the reasons that I think users should avoid the
embedded server:  It doesn't support SolrCloud, you cannot make it
fault-tolerant (redundant), and troubleshooting is harder because you
cannot connect to it from outside of the source code where it is embedded.

Deploying Solr as a network service offers much more capability than you
can get when you embed it in your application.  Chances are that you can
easily replace EmbeddedSolrServer with one of the SolrClient classes and
use a separate Solr deployment from your application.

Thanks,
Shawn




--
Ken Krugler
+1 530-210-6378
http://www.scaleunlimited.com
custom big data solutions  training
Hadoop, Cascading, Cassandra  Solr









--
-
 Lukasz Salwinski PHONE:310-825-1402
 UCLA-DOE Institute FAX:310-206-3914
 UCLA, Los AngelesEMAIL: luk...@mbi.ucla.edu
-


Embedded Solr now deprecated?

2015-08-05 Thread Robert Krüger
Hi,

I tried to upgrade my application from solr 4 to 5 and just now realized
that embedded use of solr seems to be on the way out. Is that correct or is
there a just new API to use for that?

Thanks in advance,

Robert


Re: Embedded Solr now deprecated?

2015-08-05 Thread Erick Erickson
Where did you see that? Maybe I missed something yet
again. This is unrelated to whether we ship a WAR if that's
being conflated here.

I rather doubt that embedded is on it's way out, although
my memory isn't what it used to be.

For starters, MapReduceIndexerTool uses it, so it gets
regular exercise from that, and anything removing it would
require some kind of replacement.

How are you using it that you care? Wondering what
alternatives exist...

Best,
Erick


On Wed, Aug 5, 2015 at 9:09 AM, Robert Krüger krue...@lesspain.de wrote:
 Hi,

 I tried to upgrade my application from solr 4 to 5 and just now realized
 that embedded use of solr seems to be on the way out. Is that correct or is
 there a just new API to use for that?

 Thanks in advance,

 Robert


Re: Embedded Solr now deprecated?

2015-08-05 Thread Shawn Heisey
On 8/5/2015 7:09 AM, Robert Krüger wrote:
 I tried to upgrade my application from solr 4 to 5 and just now realized
 that embedded use of solr seems to be on the way out. Is that correct or is
 there a just new API to use for that?

Building on Erick's reply:

I doubt that the embedded server is going away, and I do not recall
seeing *anything* marking the entire class deprecated.  The class still
receives attention from devs -- this feature was released with 5.1.0:

https://issues.apache.org/jira/browse/SOLR-7307

That said, we have discouraged users from deploying it in production for
quite some time, even though it continues to exist and receive developer
attention.  Some of the reasons that I think users should avoid the
embedded server:  It doesn't support SolrCloud, you cannot make it
fault-tolerant (redundant), and troubleshooting is harder because you
cannot connect to it from outside of the source code where it is embedded.

Deploying Solr as a network service offers much more capability than you
can get when you embed it in your application.  Chances are that you can
easily replace EmbeddedSolrServer with one of the SolrClient classes and
use a separate Solr deployment from your application.

Thanks,
Shawn



Re: Embedded Solr now deprecated?

2015-08-05 Thread Alexandre Rafalovitch
I thought the Embedded server was good for a scenario where you wanted
quickly to build a core with lots of documents locally. And then, move
the core into production and swap it in. So you minimize the network
traffic.

Regards,
   Alex.

Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
http://www.solr-start.com/


On 5 August 2015 at 10:54, Shawn Heisey apa...@elyograg.org wrote:
 On 8/5/2015 7:09 AM, Robert Krüger wrote:
 I tried to upgrade my application from solr 4 to 5 and just now realized
 that embedded use of solr seems to be on the way out. Is that correct or is
 there a just new API to use for that?

 Building on Erick's reply:

 I doubt that the embedded server is going away, and I do not recall
 seeing *anything* marking the entire class deprecated.  The class still
 receives attention from devs -- this feature was released with 5.1.0:

 https://issues.apache.org/jira/browse/SOLR-7307

 That said, we have discouraged users from deploying it in production for
 quite some time, even though it continues to exist and receive developer
 attention.  Some of the reasons that I think users should avoid the
 embedded server:  It doesn't support SolrCloud, you cannot make it
 fault-tolerant (redundant), and troubleshooting is harder because you
 cannot connect to it from outside of the source code where it is embedded.

 Deploying Solr as a network service offers much more capability than you
 can get when you embed it in your application.  Chances are that you can
 easily replace EmbeddedSolrServer with one of the SolrClient classes and
 use a separate Solr deployment from your application.

 Thanks,
 Shawn



Re: Embedded Solr now deprecated?

2015-08-05 Thread Robert Krüger
I just saw lots of deprecation warnings in my current code and a method
that was removed, which is why I asked.

Regarding the use case, I am embedding it with a desktop application just
as others use java-based no-sql or rdbms engines and that makes sense
architecturally in my case and is just simpler than deploying a separate
little tomcat instance. API-wise, I know it is the same and it would be
doable to do it that way. The embedded option is just the logical and
simpler choice in terms of delivery, packaging, installation, automated
testing in this case. The network option just doesn't add anything here
apart from overhead (probably negligible in our case) and complexity.

So our use is in production but in a desktop way, not what people normally
think about when they hear production use.

Thanks everyone for the quick feedback! I am very relieved to hear it is
not on its way out and I will look at the api changes more closely and try
to get our application running on 5.2.1.

Best regards,

Robert

On Wed, Aug 5, 2015 at 4:34 PM, Erick Erickson erickerick...@gmail.com
wrote:

 Where did you see that? Maybe I missed something yet
 again. This is unrelated to whether we ship a WAR if that's
 being conflated here.

 I rather doubt that embedded is on it's way out, although
 my memory isn't what it used to be.

 For starters, MapReduceIndexerTool uses it, so it gets
 regular exercise from that, and anything removing it would
 require some kind of replacement.

 How are you using it that you care? Wondering what
 alternatives exist...

 Best,
 Erick


 On Wed, Aug 5, 2015 at 9:09 AM, Robert Krüger krue...@lesspain.de wrote:
  Hi,
 
  I tried to upgrade my application from solr 4 to 5 and just now realized
  that embedded use of solr seems to be on the way out. Is that correct or
 is
  there a just new API to use for that?
 
  Thanks in advance,
 
  Robert




-- 
Robert Krüger
Managing Partner
Lesspain GmbH  Co. KG

www.lesspain-software.com


Re: Embedded Solr now deprecated?

2015-08-05 Thread Erick Erickson
Hmmm, you may want to investigate the new no-war solution. Solr runs
as a service with start/stop scripts. Currently it uses an underlying
Jetty container, but that will (probably) eventually change and is
pretty much considered an implementation detail. Not quite sure
whether it'd be easier or harder for you though.

Best,
Erick

On Wed, Aug 5, 2015 at 1:08 PM, Robert Krüger krue...@lesspain.de wrote:
 I just saw lots of deprecation warnings in my current code and a method
 that was removed, which is why I asked.

 Regarding the use case, I am embedding it with a desktop application just
 as others use java-based no-sql or rdbms engines and that makes sense
 architecturally in my case and is just simpler than deploying a separate
 little tomcat instance. API-wise, I know it is the same and it would be
 doable to do it that way. The embedded option is just the logical and
 simpler choice in terms of delivery, packaging, installation, automated
 testing in this case. The network option just doesn't add anything here
 apart from overhead (probably negligible in our case) and complexity.

 So our use is in production but in a desktop way, not what people normally
 think about when they hear production use.

 Thanks everyone for the quick feedback! I am very relieved to hear it is
 not on its way out and I will look at the api changes more closely and try
 to get our application running on 5.2.1.

 Best regards,

 Robert

 On Wed, Aug 5, 2015 at 4:34 PM, Erick Erickson erickerick...@gmail.com
 wrote:

 Where did you see that? Maybe I missed something yet
 again. This is unrelated to whether we ship a WAR if that's
 being conflated here.

 I rather doubt that embedded is on it's way out, although
 my memory isn't what it used to be.

 For starters, MapReduceIndexerTool uses it, so it gets
 regular exercise from that, and anything removing it would
 require some kind of replacement.

 How are you using it that you care? Wondering what
 alternatives exist...

 Best,
 Erick


 On Wed, Aug 5, 2015 at 9:09 AM, Robert Krüger krue...@lesspain.de wrote:
  Hi,
 
  I tried to upgrade my application from solr 4 to 5 and just now realized
  that embedded use of solr seems to be on the way out. Is that correct or
 is
  there a just new API to use for that?
 
  Thanks in advance,
 
  Robert




 --
 Robert Krüger
 Managing Partner
 Lesspain GmbH  Co. KG

 www.lesspain-software.com


RE: Embedded Solr now deprecated?

2015-08-05 Thread Ken Krugler
Hi Shawn,

We have a different use case than the ones you covered in your response to 
Robert (below), which I wanted to call out.

We currently use the embedded server when building indexes as part of a Hadoop 
workflow. The results get copied to a production analytics server and swapped 
in on a daily basis.

Writing to multiple embedded servers (one per reduce task) gives us maximum 
performance, and has proven to be a very reliable method for the daily rebuild 
of pre-aggregations we need for our analytics use case.

Regards,

-- Ken

PS - I'm also currently looking at using embedded Solr as a state storage 
engine for Samza.

 From: Shawn Heisey
 Sent: August 5, 2015 7:54:07am PDT
 To: solr-user@lucene.apache.org
 Subject: Re: Embedded Solr now deprecated?
 
 On 8/5/2015 7:09 AM, Robert Krüger wrote:
 I tried to upgrade my application from solr 4 to 5 and just now realized
 that embedded use of solr seems to be on the way out. Is that correct or is
 there a just new API to use for that?
 
 Building on Erick's reply:
 
 I doubt that the embedded server is going away, and I do not recall
 seeing *anything* marking the entire class deprecated.  The class still
 receives attention from devs -- this feature was released with 5.1.0:
 
 https://issues.apache.org/jira/browse/SOLR-7307
 
 That said, we have discouraged users from deploying it in production for
 quite some time, even though it continues to exist and receive developer
 attention.  Some of the reasons that I think users should avoid the
 embedded server:  It doesn't support SolrCloud, you cannot make it
 fault-tolerant (redundant), and troubleshooting is harder because you
 cannot connect to it from outside of the source code where it is embedded.
 
 Deploying Solr as a network service offers much more capability than you
 can get when you embed it in your application.  Chances are that you can
 easily replace EmbeddedSolrServer with one of the SolrClient classes and
 use a separate Solr deployment from your application.
 
 Thanks,
 Shawn
 


--
Ken Krugler
+1 530-210-6378
http://www.scaleunlimited.com
custom big data solutions  training
Hadoop, Cascading, Cassandra  Solr