Support Questions
Find answers, ask questions, and share your expertise

Infra Solr instance fails to start after securing the cluster with Kerberos. Error -Configuration parameter 'kerberos-env' was not found in configurations dictionary

Below is the Exception that shows up when starting the Ambari Infra service for the solr instance.

Not sure where the kerberos-env needs to be set? Or what is the underlying issue. The ambari-infra keytabs are present in the /etc/security/keytabs folder.


Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA/0.1.0/package/scripts/", line 123, in <module>
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/", line 367, in execute
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA/0.1.0/package/scripts/", line 46, in start
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/", line 120, in locking_configure
    original_configure(obj, *args, **kw)
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA/0.1.0/package/scripts/", line 41, in configure
    setup_infra_solr(name = 'server')
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA/0.1.0/package/scripts/", line 101, in setup_infra_solr
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 166, in __init__
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 124, in run_action
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/", line 123, in action_create
    content = self._get_content()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/", line 160, in _get_content
    return content()
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 52, in __call__
    return self.get_content()
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 144, in get_content
    rendered = self.template.render(self.context)
  File "/usr/lib/python2.6/site-packages/ambari_jinja2/", line 891, in render
    return self.environment.handle_exception(exc_info, True)
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_INFRA/0.1.0/package/templates/infra-solr-security.json.j2", line 28, in top-level template code
    "{{atlas_kerberos_service_user}}@{{kerberos_realm}}": ["{{infra_solr_role_atlas}}", "{{infra_solr_role_ranger_audit}}", "{{infra_solr_role_dev}}"],
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/", line 73, in __getattr__
    raise Fail("Configuration parameter '" + + "' was not found in configurations dictionary!")
resource_management.core.exceptions.Fail: Configuration parameter 'kerberos-env' was not found in configurations dictionary!


@Shivaji Dutta

# locate zookeeper Client

# locate zkCli

Go tp the bin directory

# cd /usr/hdp/ 
# bin/ 

Check the configs stored in zookeeper, there should be that of solr_infra

[zk: localhost:2181(CONNECTED) 0] ls / 

To get the live Solr node you should get a similar output

 [zk: localhost:2181(CONNECTED) 7] ls /infra-solr/live_nodes
[zk: localhost:2181(CONNECTED) 8] ls /infra-solr/collections
[vertex_index, edge_index, fulltext_index]
[zk: localhost:2181(CONNECTED) 9] ls /infra-solr/overseer_elect
[leader, election]
[zk: localhost:2181(CONNECTED) 10] ls /infra-solr/security.json

Delete the Solr_infra entry in zookeeper

[zk: localhost:2181(CONNECTED) 10] rmr /infra-solr

Restart Infra_solr this should reload the config into zookeeper and it should start successfully

@Geoffrey Shelton Okot - The instruction above does not solve the issue. Still have the same problem.


currently getting the same...

did you manage to resolve this issue? If yes, how?



Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.