I am currently using Unix to access Cloudera manager (SAML protected). I have access to links such as https://servername.net:1111/static/release/js/cloudera/cmf/ but, I am unable to gain access to links with "/api" example: https://servername.net:1111/api/v13/clusters/ Here is my error message that I managed to get. I am using get requests from python to gain access to Cloudera. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>Error 401 Full authentication is required to access this resource</title> </head> <body><h2>HTTP ERROR 401</h2> <p>Problem accessing /api/v13/clusters/. Reason: <pre> Full authentication is required to access this resource</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> <br/> <br/>
... View more
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