Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Connect to nifi cluster by passing username and password using nipyapi

New Contributor

Hello, 

 

I have been trying to connect to NiFi by passing the username and password using nypyapi. Here is the sample code I'm using. Am I doing something wrong here.

 

nipyapi.config.nifi_config.host = 'https://10.23.44.20:80/nifi-api'
login = nipyapi.security.service_login(service='nifi', username='nifi', password='xxxx', bool_response=True)

 

Below is the excerpt from the documentation on nipyapi.security.service_login.. 

 

Login requires a secure connection over https. Prior to calling this method, the host must be specified and the SSLContext should be configured (if necessary).

1 REPLY 1

New Contributor

Were you able to figure out the solution for this. I have been trying to connect to secured nifi using username and password.

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