- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
YARN Resource Manager API is failing post kerberization
- Labels:
-
Cloudera Manager
-
Kerberos
Created 05-15-2023 01:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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,Community Manager
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:
