Solr experts - Do the org.apache.solr.util.SolrCLI commands work for a 
Kerberized Solr?

We are able to use Solr but executing `solr healthcheck` fails with a 401 
(unauthorized).

```
$ kinit -kt /etc/security/keytabs/ambari-infra-solr.service.keytab 
infra-solr/master01.domain....@domain.tld
$ source /etc/ambari-infra-solr/conf/infra-solr-env.sh
$ /usr/lib/ambari-infra-solr/bin/solr healthcheck -c ranger_audits -z 
"${ZK_HOST}"
ERROR - 2018-01-23 03:58:30.599; 
org.apache.solr.client.solrj.impl.CloudSolrClient; Request to collection 
ranger_audits failed due to (401) 
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error 
from server at http://master01.domain.tld:8886/solr/ranger_audits: Expected 
mime type application/octet-stream but got text/html.
```

This is the infra-solr-env.sh: 
https://gist.github.com/seanorama/21501559377148d6fd764180edd0b861


Thanks
--
Sean Roberts

This solr is part of another service so can’t be upgraded
```
# /usr/lib/ambari-infra-solr/bin/solr version
5.5.2
```

Reply via email to