Re: BasicAuth help

2020-09-04 Thread Aroop Ganguly
Try looking at a simple ldap authentication suggested here: 
https://github.com/itzmestar/ldap_solr 
You can combine this for authentication and couple it with rule based 
authorization.



> On Aug 28, 2020, at 12:26 PM, Vanalli, Ali A - DOT  > wrote:
> 
> Hello,
> 
> Solr is running on windows machine and wondering if it possible to setup 
> BasicAuth with the LDAP?
> 
> Also, tried the example of Basic-Authentication that is published 
> here  
> >
>  but this did not work too.
> 
> Thanks...Ali
> 
> 



Re: BasicAuth help

2020-09-04 Thread Joe Doupnik
    There is an effective alternative approach to placing 
authentication within Solr. It is to use the web server (say Apache) as 
a smart proxy to Solr and in so doing also apply access restrictions of 
various kinds. Thus Solr remains intact, no addition needed for 
authentication, and authentication can be accomplished with a known 
robust tool.
    Sketching the Apache part, to clarify matters. This example 
requires both an IP range and an LDAP authentication, and it supports 
https as well.


    
    require ip  11.22.33.44/24  5.6.7.8/28
        AuthType Basic
        AuthBasicProvider ldap
        AuthName "Solr"
        AuthLDAPUrl ldap://example.com/o=GCHQ?uid?one?(objectClass=user)
        require ldap-user admin james moneypenny
        proxypass  "http://localhost:8983/solr"  keepalive=on
        proxypassreverse  "http://localhost:8983/solr";
    

    Above, localhost can be replaced with the DNS name of another 
machine, that where Solr itself resides. The URI name /solr is clearly 
something which we can choose to suit ourselves. This example may be 
enhanced for local requirements.
    The Apache manual has full details, naturally. It is important to 
use proven robust tools when we deal with the bad guys.

    Thanks,
    Joe D.

On 04/09/2020 08:43, Aroop Ganguly wrote:

Try looking at a simple ldap authentication suggested here: 
https://github.com/itzmestar/ldap_solr 
You can combine this for authentication and couple it with rule based 
authorization.




On Aug 28, 2020, at 12:26 PM, Vanalli, Ali A - DOT mailto:ali.vana...@dot.wi.gov>> wrote:

Hello,

Solr is running on windows machine and wondering if it possible to setup 
BasicAuth with the LDAP?

Also, tried the example of Basic-Authentication that is published 
here>
 but this did not work too.

Thanks...Ali








Re: Solr client

2020-09-04 Thread Eric Pugh
Konstantinos, have you seen https://solr.cool/?  It’s an aggregation site for 
all the extensions to Solr.   You can add your project there, and that should 
get some more awareness!


> On Sep 2, 2020, at 2:21 AM, Konstantinos Koukouvis 
>  wrote:
> 
> Hi everybody, sorry in advance if I’m using the mailing list wrong, this is 
> the first time I’m attempting such a thing.
> 
> To all you gophers out there we at Mecenat, have been working at a new solr 
> client wrapper with focus on single solr instance usage, that supports the 
> search API, schema API and core admin API. With this email I’m trying to 
> raise awareness to the community, get some feedback by having more people to 
> test every nook and cranny of it, so that we can improve our solution and 
> hopefully help you find that client that makes using solr in go more 
> intuitive and simple.
> 
> Here’s the link, and thank you all for your time:
> https://github.com/mecenat/solr
> 
> With regards,
> Konstantinos
> 

___
Eric Pugh | Founder & CEO | OpenSource Connections, LLC | 434.466.1467 | 
http://www.opensourceconnections.com  | 
My Free/Busy   
Co-Author: Apache Solr Enterprise Search Server, 3rd Ed 


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.



Semantic Knowledge Graph Jar File

2020-09-04 Thread Abhay Kumar
Hello,

I need to integrate Semantic Knowledge Graph with Solr 7.7.0 instance.
Can someone help to provide the jar file for "Semantic Knowledge Graph". I work 
on .net platform and I am not aware how to build using Maven.
So, I want compiled jar file for "Semantic Knowledge Graph".

Also, any help on integration with Solr and "Semantic Knowledge Graph" will be 
appreciated.

Regards,
Abhay

Confidentiality Notice

This email message, including any attachments, is for the sole use of the 
intended recipient and may contain confidential and privileged information. Any 
unauthorized view, use, disclosure or distribution is prohibited. If you are 
not the intended recipient, please contact the sender by reply email and 
destroy all copies of the original message. Anju Software, Inc. 4500 S. 
Lakeshore Drive, Suite 620, Tempe, AZ USA 85282.


RE: SolrCloud (6.6.6) SSL Setup - Unable to create collection

2020-09-04 Thread Victor Kretzer
I solved my problem by using just the certificate from my first node and 
copying that to the second node. I'm not sure whether all three are necessary, 
but I copied: 
*   solr-ssl.keystore.jks
*   solr-ssl-keystore.p12
*   solr-ssl.pem.
If you originally made separate certificates for each node, make sure that on 
the additional nodes you remove those cert files before adding the files from 
the first node. I moved mine to a backup folder I created because I wasn't sure 
what I was trying would work but I think that was unnecessary.

Victor 

-Original Message-
From: Victor Kretzer  
Sent: Thursday, September 3, 2020 3:03 PM
To: solr-user@lucene.apache.org
Subject: SolrCloud (6.6.6) SSL Setup - Unable to create collection

BACKGROUND: I'm attempting to setup SolrCloud (Solr 6.6.6) with an external 
zookeeper ensemble on Azure. I have three dedicated vms for the zookeeper 
ensemble and two for solr all running Ubuntu 18.04 LTS. I'm new to Solr (and 
Linux) and have been heavily relying on the Solr Ref Guide 6.6, most recently 
the following section on enabling ssl:



https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flucene.apache.org%2Fsolr%2Fguide%2F6_6%2Fenabling-ssl.html&data=02%7C01%7CVictorKretzer%40gdcit.com%7Ca124b9385d4a4eab744408d8503c0457%7C87b66f08478c40adbb095e93796da295%7C1%7C0%7C637347565991726245&sdata=BE%2BPvrXsVzAR67Aoe3D%2FxMruuRlY2Img4aBHeuKpJY8%3D&reserved=0



So far I have:

Installed and setup zookeeper

Installed Solr (using install_solr_service.sh script) on both vms.

Followed the steps under Basic SSL Setup, generating certificates on each of 
the nodes.

Set the cluster-wide property to https per the Configure Zookeeper section of 
SolrCloud in the document

Started both nodes and have been able to navigate to them in my browser with 
https



If I do bin/solr status I get:



Solr process 13106 running on port 8983

{

  "solr_home":"/opt/solr-6.6.6/cloud/test2",

  "version":"6.6.6 68fa249034ba8b273955f20097700dc2fbb7a800 - ishan - 
2019-03-29 09:13:13",

  "startTime":"2020-09-03T18:15:34.092Z",

  "uptime":"0 days, 0 hours, 43 minutes, 29 seconds",

  "memory":"52.7 MB (%10.7) of 490.7 MB",

  "cloud":{

"ZooKeeper":"zk1:2181,zk2:2181,zk3:2181/solr",

"liveNodes":"2",

"collections":"0"}}







THE ISSUE

When I try to create a collection using the steps outlined in the above 
document, I get the following error:



azureuser@solr-node-01-test:/opt/solr$ sudo bin/solr create -c mycollection 
-shards 2 -force



Connecting to ZooKeeper at zk1:2181,zk2:2181,zk3:2181/solr ...

INFO  - 2020-09-03 18:21:26.784; 
org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider; Cluster at 
zk1:2181,zk2:2181,zk3:2181/solr ready

Re-using existing configuration directory mycollection



Creating new collection 'mycollection' using command:

https://Solr1:8983/solr/admin/collections?action=CREATE&name=mycollection&numShards=2&replicationFactor=1&maxShardsPerNode=1&collection.configName=mycollection



ERROR: Failed to create collection 'mycollection' due to: 
{Solr2:8983_solr=org.apache.solr.client.solrj.SolrServerException:IOException 
occured when talking to server at: https://Solr2:8983/solr}

*I've attached logs at the bottom of this email.



QUESTIONS:

What am I doing wrong and how can I fix it?

Was I right to create separate certificates on each of the nodes (one cert on 
vm1, another cert on vm 2)?

Do I need to copy the certs for each node into the other (if so how)?



CONCLUSION

Thank you so much in advance and if there's any other information you need 
please let me know.

Victor

2020-09-03 18:15:35.240 INFO  
(zkCallback-5-thread-1-processing-n:Solr1:8983_solr) [   ] 
o.a.s.c.c.ZkStateReader Updated live nodes from ZooKeeper... (1) -> (2)
2020-09-03 18:15:40.124 INFO  (qtp401424608-45) [   ] 
o.a.s.c.TransientSolrCoreCacheDefault Allocating transient cache for 2147483647 
transient cores
2020-09-03 18:15:40.124 INFO  (qtp401424608-45) [   ] o.a.s.s.HttpSolrCall 
[admin] webapp=null path=/admin/cores 
params={indexInfo=false&wt=json&_=1599156956818} status=0 QTime=23
2020-09-03 18:15:40.134 INFO  (qtp401424608-20) [   ] o.a.s.s.HttpSolrCall 
[admin] webapp=null path=/admin/info/system params={wt=json&_=1599156956818} 
status=0 QTime=29
2020-09-03 18:15:40.171 INFO  (qtp401424608-13) [   ] 
o.a.s.h.a.CollectionsHandler Invoked Collection Action :list with params 
action=LIST&wt=json&_=1599156956818 and sendToOCPQueue=true
2020-09-03 18:15:40.172 INFO  (qtp401424608-13) [   ] o.a.s.s.HttpSolrCall 
[admin] webapp=null path=/admin/collections 
params={action=LIST&wt=json&_=1599156956818} status=0 QTime=1
2020-09-03 18:15:40.174 INFO  (qtp401424608-16) [   ] o.a.s.s.HttpSolrCall 
[admin] webapp=null path=/admin/info/system params={wt=json&_=1599156956818} 
status=0 QTime=8
2020-09-03 18:15:58.225 INFO  (qtp401424608-14) [   ] o.a.s.s.HttpSolrCall 
[admin] webapp=null path=/admin/cores 
params={indexInfo=false&wt=json&_=15991

Re: Semantic Knowledge Graph Jar File

2020-09-04 Thread Chris Hostetter


: I need to integrate Semantic Knowledge Graph with Solr 7.7.0 instance.

If you're talking about the work Trey Grainger has writtne some papers on 
that was originally implemented in this repo...

https://github.com/careerbuilder/semantic-knowledge-graph

..then that work was incorported into solr as the 'relatedness()' 
aggregation in JSON faceting, and has been included in Solr since 7.4...

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

https://lucene.apache.org/solr/guide/7_7/json-facet-api.html#semantic-knowledge-graphs


-Hoss
http://www.lucidworks.com/