lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Roberts <srobe...@hortonworks.com>
Subject SolrCLI commands (i.e. health check) in kerberos environment
Date Tue, 23 Jan 2018 11:03:35 GMT
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.tld@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
```

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message