Member since
11-15-2021
2
Posts
0
Kudos Received
0
Solutions
12-06-2021
03:58 AM
Hello! Now I can get info about cluster and get hight-level parameters, but I don't get info about hosts with info about cluster with help to: api_instance = cm_client.ClustersResourceApi(cm_client)
clusters = api_instance.read_clusters(view="FULL")
cluster = clusters.item[0]
api_instance = cm_client.ServicesResourceApi(api_client)
services = api_instance.read_services(cluster.name, view="FULL")
api_instance = cm_client.HostsResourceApi(api_client)
hosts = api_instance.read_hosts() In this case, after read_cluster I do not get information about hosts and roles inside items, I need to get them separately. Can I somehow "in one line" get information about the cluster and all the sheets nested in it? (Hosts, services, roles, etc.)
... View more
Labels:
- Labels:
-
Cloudera Manager
11-15-2021
10:03 PM
I am trying to run an example from the cloudera documentation site in python. I am getting ssl certificate error: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) Getting a certificate is not a solution to my problem. Can I ignore the certificate validation when accessing the api, similar to how it can be done through a regular request? For example: import requests
res = requests.get(url, auth=(login, pass), timeout= 1000000, verify= False) my code: import cm_client
cm_client.configuration.username = login
cm_client.configuration.password = pass
api_url = api_host + ':' + port + '/api/' + api_version
api_client = cm_client.ApiClient(api_url)
cluster_api_instance = cm_client.ClustersResourceApi(api_client)
... View more
Labels:
- Labels:
-
Certification
-
Cloudera Manager