-
Notifications
You must be signed in to change notification settings - Fork 48
Pass auth to Active RM check #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass auth to Active RM check #58
Conversation
82022a1
to
6010ea0
Compare
6010ea0
to
af57fef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look great. I had the "one" comment (sorry for its length) per your initial question.
Also, I wonder if this should be changed to [WIP] until it can be tested. Are you in a position to try to check this out?
@kevin-bates i've applied the suggested change. Logger is not accessible from method, so it's printing to stdout for time being. |
I've validated new active RM check on existing cluster with such setup and it seems to work. One suggestion is still have in mind - response.text is showing very verbose output of page markup (basically html). Maybe it makes more sense to keep only the status code in log instead of full response body? |
Yes - that sounds good. Thank you for checking this! |
Adjusted the print statement. Hopefully nothing else missed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thank you!
@lresende any chance u can confirm as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is to fix #57
One thing I'm still not sure about is next:
https://github.com/dimon222/hadoop-yarn-api-python-client/blob/82022a1574c6134ade132736ef64d642053b13dc/yarn_api_client/hadoop_conf.py#L52-L57
Should we validate for 401 and throw exception for auth immediately or its valid scenario when we should return just False?