Created 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 :
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
Created 06-12-2023 10:45 PM
Hi @Tejaswi2503
From the description, I understand that you build some Python scripts to fetch yarn metrics.
and it is failing with connection refused.
Can you make sure the url which you're passing in the script is correct?
Created 06-19-2023 02:27 AM
@Tejaswi2503, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. If you are still experiencing the issue, can you provide the information @Scharan has requested?
Regards,
Vidya Sargur,