Member since
07-23-2022
13
Posts
0
Kudos Received
0
Solutions
09-13-2023
10:44 PM
Hello, I'm setting up new cluster for educational purposes and configuring SSL using case 2 "Enabling Auto-TLS with an intermediate CA signed by an existing Root CA ", I just installed cloudera manager and enabled the kerbros using Free IPA & created the certificates using JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk /opt/cloudera/cm-agent/bin/certmanager setup --configure-services --stop-at-csr. But when I sign the csr from the IPA server I got the attached error,, Any help please Note: I'm using the user that automatically created by cloudera manager when setting the kerbros as principle, for more info >> Step 3: Create the Kerberos Principal for Cloudera Manager Server | CDP Private Cloud
... View more
Labels:
- Labels:
-
Cloudera Data Platform (CDP)
05-17-2023
08:54 AM
Thanks @rki_ for your response. Yes, I noticed I was running from the wrong node, so I re-run from name node but stuck in below error since then.
... View more
05-14-2023
10:31 AM
I can't connect to HDFS kerberized and SSL enabled though I generated a keytab and certificate, Any help?
... View more
Labels:
- Labels:
-
Cloudera Data Platform (CDP)
-
HDFS
03-31-2023
12:25 AM
How did you solve it
... View more
02-27-2023
08:07 AM
any one knows why nifi every time pull all the data from the table ignoring the max value
... View more
Labels:
- Labels:
-
Apache NiFi
02-02-2023
01:11 PM
@MattWho, THANKS NOW I'M ABLE TO LOGIN USING THE INITIAL ADMIN 🕺🏻
... View more
02-02-2023
11:37 AM
OK @MattWho , I will make the below change, are they ok? <property name="User Search Filter">cn={0}</property>
<property name="Identity Strategy">USE_DN</property>
nifi.security.identity.mapping.pattern.dn=^cn=(.*?),ou=(.*?),dc=(.*?),dc=(.*?),dc=(.*?)$
nifi.security.identity.mapping.value.dn=$1
nifi.security.identity.mapping.transform.dn=NONE And regarding 2 file-user-group-provider If I commented or deleted "Initial User Identity" valuse in the first property I got error Unable to locate initial admin cn=initial-admin,ou=initail-admin-ou,dc=domain,dc=com to seed policies at org.apache.nifi.authorization.FileAccessPolicyProvider.populateInitialAdmin(FileAccessPolicyProvider.java:678) I'm little confused in that
... View more
02-02-2023
11:16 AM
@MattWho Thanks for your Reply Yes, I removed users.xml and authorizations.xml as I did some changes & want the nodes to inherite the new policies Yes, I made the below change in nifi.properities file nifi.security.user.login.identity.provider=ldap-provider And indeed after using another laptop to access nifi it moved to the next step which I was about to login using the initial admin but it fails like below And this from the nifi-user.log 2023-02-02 21:18:29,980 INFO [NiFi Web Server-404] o.a.n.w.a.c.AccessDeniedExceptionMapper identity[initialAdmin], groups[] does not have permission to access the requested resource. Unknown user with identity 'initialAdmin'. Returning Forbidden response. Appreciate your valuable input 😅
... View more
02-02-2023
10:31 AM
I have installed Apache nifi 1.19.1 and configured the ssl using below command ./tls-toolkit.sh standalone -n 'nifi1,nifi2,nifi3' -B MyPassword -C 'CN=nifiadmin,OU=NIFI' -O -o /opt/nificert and it was wotking fine after importing the certificate in my browser. Then configured LDAP like below:- loginIdentityProviders <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<loginIdentityProviders>
<provider>
<identifier>ldap-provider</identifier>
<class>org.apache.nifi.ldap.LdapProvider</class>
<property name="Authentication Strategy">SIMPLE</property>
<property name="Manager DN">cn=Myuser,ou=Myuser,dc=Mydomain,dc=com</property>
<property name="Manager Password">Mypassword</property>
<property name="Referral Strategy">FOLLOW</property>
<property name="Connect Timeout">10 secs</property>
<property name="Read Timeout">10 secs</property>
<property name="Url">ldap://x.x.x.x:389</property>
<property name="User Search Base">dc=Mydomain,dc=com</property>
<property name="User Search Filter">(sAMAccountName={0})</property>
<property name="Identity Strategy">USE_USERNAME</property>
<property name="Authentication Expiration">12 hours</property>
</provider>
</loginIdentityProviders>
authorizers <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<authorizers>
<userGroupProvider>
<identifier>file-user-group-provider</identifier>
<class>org.apache.nifi.authorization.FileUserGroupProvider</class>
<property name="Users File">./conf/users.xml</property>
<property name="Legacy Authorized Users File"></property>
<property name="Initial User Identity 2">CN=nifi1, OU=NIFI</property>
<property name="Initial User Identity 3">CN=nifi2, OU=NIFI</property>
<property name="Initial User Identity 4">CN=nifi3, OU=NIFI</property>
<property name="Initial User Identity 1">cn=Myuser,ou=Myuser,dc=Mydomain,dc=com</property>
</userGroupProvider>
<userGroupProvider>
<identifier>ldap-user-group-provider</identifier>
<class>org.apache.nifi.ldap.tenants.LdapUserGroupProvider</class>
<property name="Authentication Strategy">SIMPLE</property>
<property name="Manager DN">cn=Myuser,ou=Myuser,dc=Mydomain,dc=com</property>
<property name="Manager Password">Mypassword</property>
<property name="Referral Strategy">FOLLOW</property>
<property name="Connect Timeout">10 secs</property>
<property name="Read Timeout">10 secs</property>
<property name="Url">ldap://Mydomain:389</property>
<property name="Page Size"></property>
<property name="Sync Interval">30 mins</property>
<property name="Group Membership - Enforce Case Sensitivity">false</property>
<property name="User Search Base">dc=Mydomain,dc=com</property>
<property name="User Object Class">person</property>
<property name="User Search Scope">ONE_LEVEL</property>
<property name="User Search Filter">(uid=*)</property>
<property name="User Identity Attribute">cn</property>
<property name="User Group Name Attribute"></property>
<property name="User Group Name Attribute - Referenced Group Attribute"></property>
<property name="Group Search Base"></property>
<property name="Group Object Class">group</property>
<property name="Group Search Scope">ONE_LEVEL</property>
<property name="Group Search Filter"></property>
<property name="Group Name Attribute"></property>
<property name="Group Member Attribute"></property>
<property name="Group Member Attribute - Referenced User Attribute"></property>
</userGroupProvider>
<userGroupProvider>
<identifier>composite-configurable-user-group-provider</identifier>
<class>org.apache.nifi.authorization.CompositeConfigurableUserGroupProvider</class>
<property name="Configurable User Group Provider">file-user-group-provider</property>
<property name="User Group Provider 1">ldap-user-group-provider</property>
</userGroupProvider>
<accessPolicyProvider>
<identifier>file-access-policy-provider</identifier>
<class>org.apache.nifi.authorization.FileAccessPolicyProvider</class>
<property name="User Group Provider">composite-configurable-user-group-provider</property>
<property name="Authorizations File">./conf/authorizations.xml</property>
<property name="Initial Admin Identity">cn=Myuser,ou=Myou,dc=Mydomain,dc=com</property>
<property name="Legacy Authorized Users File"></property>
<property name="Node Identity 1">CN=nifi1, OU=NIFI</property>
<property name="Node Identity 2">CN=nifi2, OU=NIFI</property>
<property name="Node Identity 3">CN=nifi3, OU=NIFI</property>
<property name="Node Group"></property>
</accessPolicyProvider>
<authorizer>
<identifier>managed-authorizer</identifier>
<class>org.apache.nifi.authorization.StandardManagedAuthorizer</class>
<property name="Access Policy Provider">file-access-policy-provider</property>
</authorizer>
</authorizers> I also changed nifi.properities but still getting below error Any help will be high appreciated
... View more
Labels:
- Labels:
-
Apache NiFi