Re: JNDI settings

2016-09-28 Thread Aristedes Maniatis
On 27/9/16 8:59pm, Jamie Jackson wrote:
> In 4, with a separate servlet container, I used externally-defined,
> container-managed jndi data sources. However, I'm in the middle of an
> upgrade to 5 (before moving on to 6), and I had to add the DIH lib to each
> core's solrconfig.xml and add connection details to each core's DIH config
> xml. See this:
> https://cwiki.apache.org/confluence/display/solr/Uploading+Structured+Data+Store+Data+with+the+Data+Import+Handler


The changes to solrconfig.xml are fine since that comes along with the 
zookeeper configuration bundle (I have that in version control, deployed using 
a combination of Jenkins and saltstack).

The problem is that we too used to have everything bundled nicely in a war file 
in Solr 4 and that's all been removed. A major step backward for the Solr 
project for no benefit I can understand. Standard tomcat deployment practices 
were simple enough.

But I like the approach you point out with the DIH file. Not as good as JNDI, 
but at least it gives us a place outside the Solr install where we can put DB 
connection details. Thanks for that.


Ari




-- 
-->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A


Re: JNDI settings

2016-09-27 Thread Jamie Jackson
In 4, with a separate servlet container, I used externally-defined,
container-managed jndi data sources. However, I'm in the middle of an
upgrade to 5 (before moving on to 6), and I had to add the DIH lib to each
core's solrconfig.xml and add connection details to each core's DIH config
xml. See this:
https://cwiki.apache.org/confluence/display/solr/Uploading+Structured+Data+Store+Data+with+the+Data+Import+Handler

On Sep 12, 2016 11:29 AM, "Aristedes Maniatis"  wrote:

> I am using Solr 5.5 and wanting to add JNDI settings to Solr (for data
> import). I'm new to Solr Cloud setup (previously I was running Solr running
> as a custom bundled war) so I can't figure where to put the JNDI settings
> with user/pass themselves.
>
> I don't want to add it to jetty.xml because that's part of the packaged
> application which will be upgraded from time to time.
>
> Should it go into solr.xml inside the solr.home directory? If so, what's
> the right syntax there?
>
>
> Ari
>
>
> --
> -->
> Aristedes Maniatis
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>


Re: JNDI settings

2016-09-26 Thread xavier jmlucjav
I did set up JNDI for DIH once, and you have to tweak the jetty setup. Of
course, solr should have its own jetty instance, the old way of being just
a war is not true anymore. I don't remember where, but there should be some
instructions somewhere, it took me an afternoon to set it up fine.

xavier

On Wed, Sep 21, 2016 at 1:15 PM, Aristedes Maniatis 
wrote:

> On 13/09/2016 1:29am, Aristedes Maniatis wrote:
> > I am using Solr 5.5 and wanting to add JNDI settings to Solr (for data
> import). I'm new to Solr Cloud setup (previously I was running Solr running
> as a custom bundled war) so I can't figure where to put the JNDI settings
> with user/pass themselves.
> >
> > I don't want to add it to jetty.xml because that's part of the packaged
> application which will be upgraded from time to time.
> >
> > Should it go into solr.xml inside the solr.home directory? If so, what's
> the right syntax there?
>
>
> Just a follow up on this question. Does anyone know of how I can add JNDI
> settings to Solr without overwriting parts of the application itself?
>
> Cheers
> Ari
>
>
>
> --
> -->
> Aristedes Maniatis
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>


Re: JNDI settings

2016-09-26 Thread Aristedes Maniatis
On 21/09/2016 9:15pm, Aristedes Maniatis wrote:
> On 13/09/2016 1:29am, Aristedes Maniatis wrote:
>> I am using Solr 5.5 and wanting to add JNDI settings to Solr (for data 
>> import). I'm new to Solr Cloud setup (previously I was running Solr running 
>> as a custom bundled war) so I can't figure where to put the JNDI settings 
>> with user/pass themselves.
>>
>> I don't want to add it to jetty.xml because that's part of the packaged 
>> application which will be upgraded from time to time.
>>
>> Should it go into solr.xml inside the solr.home directory? If so, what's the 
>> right syntax there?
> 
> 
> Just a follow up on this question. Does anyone know of how I can add JNDI 
> settings to Solr without overwriting parts of the application itself?
> 
> Cheers
> Ari


Am I approaching this the wrong way? Where do other people put 
username/password details for JDBC connections to data storage of the source 
data?

Is there a completely different way to solve this as a better approach? Store 
JDBC connection details in Zookeeper?


Ari





-- 
-->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A


Re: JNDI settings

2016-09-21 Thread Aristedes Maniatis
On 13/09/2016 1:29am, Aristedes Maniatis wrote:
> I am using Solr 5.5 and wanting to add JNDI settings to Solr (for data 
> import). I'm new to Solr Cloud setup (previously I was running Solr running 
> as a custom bundled war) so I can't figure where to put the JNDI settings 
> with user/pass themselves.
> 
> I don't want to add it to jetty.xml because that's part of the packaged 
> application which will be upgraded from time to time.
> 
> Should it go into solr.xml inside the solr.home directory? If so, what's the 
> right syntax there?


Just a follow up on this question. Does anyone know of how I can add JNDI 
settings to Solr without overwriting parts of the application itself?

Cheers
Ari



-- 
-->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A