benkelly / NiFi-Authentication-with-Azure-Active-Directory-Setup-Guide

6 stars 8 forks source link

Unable to locate initial admin #6

Closed dash042 closed 2 years ago

dash042 commented 2 years ago

Hi!

great guide sorely missed as a walkthrough in the original NiFi docs!

Unfortunately I am stuck trying to get my NiFi (deployed in AKS - Azure Kubernetes) to load the initial admin:

2022-05-30 15:19:08,951 INFO [main] o.a.nifi.properties.NiFiPropertiesLoader Loaded 155 properties from /opt/nifi/nifi-current/./conf/nifi.properties 2022-05-30 15:19:12,124 ERROR [main] o.s.web.context.ContextLoader Context initialization failed ... Caused by: org.apache.nifi.authorization.exception.AuthorizerCreationException: Unable to locate initial admin initadmin@example.com to seed policies

I do not see any attempts in the log to actually connect to the AAD... anything I might have missed or that got changed in NiFi version 1.16.0?

dash042 commented 2 years ago

Fixed by adding initial admin to "file-user-group-provider" <property name="Initial User Identity 1">USER_UPN</property>