Support Questions

Find answers, ask questions, and share your expertise

NIFI is not starting in HDF with error "nifi.security.encrypt.configuration.password' was not found in configurations dictionary!" below are the logs, can you suggest on this

avatar
Contributor

Traceback (most recent call last):

  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 360, in <module>
    Master().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 720, in restart
    self.start(env, upgrade_type=upgrade_type)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 164, in start
    self.configure(env, is_starting = True)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 145, in configure
    params.nifi_flow_config_dir, params.nifi_sensitive_props_key, is_starting)
  File "/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/nifi.py", line 296, in encrypt_sensitive_properties
    encrypt_config_script_params = encrypt_config_script_params + ('-p',PasswordString(master_key_password))
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py", line 73, in __getattr__
    raise Fail("Configuration parameter '" + self.name + "' was not found in configurations dictionary!")
resource_management.core.exceptions.Fail: Configuration parameter 'nifi.security.encrypt.configuration.password' was not found in configurations dictionary!
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Chaitanya Manthine

It appears Ambari is complaining that the following property was not set in your NiFi configs:

14125-screen-shot-2017-03-28-at-82700-am.png

Thanks, Matt

View solution in original post

4 REPLIES 4

avatar
Master Mentor

@Chaitanya Manthine

It appears Ambari is complaining that the following property was not set in your NiFi configs:

14125-screen-shot-2017-03-28-at-82700-am.png

Thanks, Matt

avatar
Contributor
@Matt Clarke

I see the below property and gave the password nothing else i see for specifing the password and i didnt find the specific property from HDF ambari. Please suggest me do i need to add in custom config.

Thanks in advance.

hdf-nifi-error2.jpg

Chaitanya

avatar
Contributor

I see it is referring to the below location

/var/lib/ambari-agent/cache/common-services/NIFI/1.0.0/package/scripts/params.py nifi_security_encrypt_configuration_password = config['configurations']['nifi-ambari-config']['nifi.security.encrypt.configuration.password']

avatar
Contributor

@Matt Clarke

After adding the property "nifi.security.encrypt.configuration.password" in Custom nifi-ambari-config it is working as expected. Thank you very much for your help.

nifi.jpg

Regards

Chaitanya