Member since
06-12-2018
3
Posts
0
Kudos Received
0
Solutions
06-13-2018
05:14 AM
The server belongs the company, so I am using my registered account to login. I am looking at it and it is a SAML External Authentication Type, if that is related to my problem or not.
... View more
06-12-2018
08:36 AM
So, I am using the basic text from the api site. I enter my username and password that matches with the Cloudera manager and I am still getting an error. Do I need to add more code like a request authrozation? What exactly is a Kerberos authroization?
cm_api.api_client.ApiException: HTTP Error 401: basic auth failed (error 401)
---------------------
# Get a handle to the API client from cm_api.api_client import ApiResource cm_host = "cm-host" api = ApiResource(cm_host, username="admin", password="admin") # Get a list of all clusters cdh4 = None for c in api.get_all_clusters(): print c.name if c.version == "CDH4": cdh4 = c ## -- Output -- # Cluster 1 - CDH4 # Cluster 2 - CDH3
... View more
Labels:
- Labels:
-
Cloudera Manager
-
Kerberos