Member since
05-15-2023
1
Post
0
Kudos Received
0
Solutions
05-15-2023
01:51 AM
Hi Team, We have implemented Kerberos in our environment recently. We have python scripts which collects metrics from Cloudera Manager. So, we are modifying these scripts post kerberization, all the scripts except YARN scripts are working fine after making changes. With YARN we are getting connection refused error. Can somebody please suggest what additional parameter should be included in case of YARN ================================= The script to collect metrics contains : print(rm_host_list) active_rm=getActiveRM(rm_host_list) print(active_rm) rm_host_list is giving correct output but the next line is failing ================================ def getActiveRM(rmHostList): active_rm=None if len(rmHostList)==2: if ResourceManager(rmHostList[0],timeout=10).cluster_information().data['clusterInfo']. ['haState']=='ACTIVE': active_rm=ResourceManager(rmHostList[0],timeout=600) elif ResourceManager(rmHostList[1],timeout=10).cluster_information().data['clusterInfo']['haState']=='ACTIVE': active_rm=ResourceManager(rmHostList[1],timeout=600) else: active_rm=None else: if ResourceManager(rmHostList[0],timeout=10).cluster_information().data['clusterInfo']['haState']=='ACTIVE': active_rm=ResourceManager(rmHostList[0],timeout=600) else: active_rm=None return active_rm =================================== Regards, Tejaswi
... View more
Labels:
- Labels:
-
Cloudera Manager
-
Kerberos