http://localhost:8983/solr/testing: Expected mime
> >> type
> >> > > > application/octet-stream but got text/html.
> >> > > >
> >> > > >
> >> > > > Error 401 require authentication
> >> > > >
> >
e
>> > > > application/octet-stream but got text/html.
>> > > >
>> > > >
>> > > > Error 401 require authentication
>> > > >
>> > > > HTTP ERROR 401
>> > > > Problem accessing /solr/testing/update. Reason:
; > Problem accessing /solr/testing/update. Reason:
> > > > require authentication
> > > >
> > > >
> > > >
> > > > at
> > > > org.apache.solr.client.solrj.impl.HttpSolrClient.
> > > exec
ache.solr.client.solrj.impl.HttpSolrClient.
> > executeMethod(HttpSolrClient.java:578)
> > > at
> > > org.apache.solr.client.solrj.impl.HttpSolrClient.request(
> > HttpSolrClient.java:279)
> > > at
> > > org.apache.solr.client.solrj.impl.HttpSolrClient.re
79)
> > at
> > org.apache.solr.client.solrj.impl.HttpSolrClient.request(
> HttpSolrClient.java:268)
> > at org.apache.solr.client.solrj.SolrRequest.process(
> SolrRequest.java:149)
> > at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:484)
> > at or
te:
>
>> can u paste the stacktrace here
>>
>> On Tue, Apr 11, 2017 at 1:19 PM, Zheng Lin Edwin Yeo
>> wrote:
>> > I found from StackOverflow that we should declare it this way:
>> > http://stackoverflow.com/questions/43335419/using-
>> basicauth-with-so
at we should declare it this way:
> > http://stackoverflow.com/questions/43335419/using-
> basicauth-with-solrj-code
> >
> >
> > SolrRequest req = new QueryRequest(new SolrQuery("*:*"));//create a new
> > request object
> > req.setBasicAuthCredenti
can u paste the stacktrace here
On Tue, Apr 11, 2017 at 1:19 PM, Zheng Lin Edwin Yeo
wrote:
> I found from StackOverflow that we should declare it this way:
> http://stackoverflow.com/questions/43335419/using-basicauth-with-solrj-code
>
>
> SolrRequest req = new QueryReques
I found from StackOverflow that we should declare it this way:
http://stackoverflow.com/questions/43335419/using-basicauth-with-solrj-code
SolrRequest req = new QueryRequest(new SolrQuery("*:*"));//create a new
request object
req.setBasicAuthCredentials(userName, password);
solrClie
Hi,
I have just set up the Basic Authentication Plugin in Solr 6.4.2 on
SolrCloud, and I am trying to modify my SolrJ code so that the code can go
through the authentication and do the indexing.
I tried using the following code from the Solr Documentation
https://cwiki.apache.org/confluence/displ
10 matches
Mail list logo