Hello. I am having difficulty getting nifi to start for a simple single
node configuration without user authentication. My goal is to get a nifi
instance running over http. I understood that there would be no user
authentication in such a case. Why then is my nifi instance failing to
start with these errors thrown for authorizers.xml  (example of the errors
at bottom)?

I have no FileUserGroupProvider or LdapUserGroupProvider to access for user
account information. I establish a user named nifi and group named nifi at
the time I run my playbook.

Currently I have only this in my authorizers.xml file.
<?xml version='1.0' encoding='UTF-8'?>
<!-- ANSIBLE MANAGED FILE. DO NOT EDIT -->
<authorizers>
  <authorizer>
    <identifier>single-user-authorizer</identifier>

<class>org.apache.nifi.authorization.single.user.SingleUserAuthorizer</class>
  </authorizer>
</authorizers>
I run my ansible playbook as user ec2-user, and the ansible role
establishes a user nifi. How must authorizers.xml be configured for such a
single-node nifi configuration?

When I attempt to start nifi I get a series of errors like these in
nifi-app.log. I suspect my authorizers.xml is missing info.

Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name
'org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration':
Unsatisfied dependency expressed through method 'setObjectPostProcessor'
parameter 0; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating
 bean with name
'org.apache.nifi.web.security.configuration.AuthenticationSecurityConfiguration':
Unsatisfied dependency expressed through constructor parameter 2; nested
exception is org.springframe
work.beans.factory.BeanCreationException: Error creating bean with name
'authorizer': FactoryBean threw exception on object creation; nested
exception is java.lang.Exception: Unable to load the authorizer
configuration file at: /opt/nifi/releases/nifi-1.16.3/./conf/authorizers.xml

Reply via email to