-
Notifications
You must be signed in to change notification settings - Fork 48
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
HA enabled ResourceManager compatible #4
Conversation
xiaop1987
commented
Jun 24, 2016
- When ResourceManager enabled ha, the older way can't get the resource manager correct.
- When reusing the HttpConnection, the request will fail raising a ResponseNotReady exception.
Thanks for pull request @xiaop1987 Can you fix tests? |
…host_port 2. Add case of test_hadoop_conf.HadoopConfTestCase.test_get_resource_host_port_with_ha
@toidi I passed all the test cases in my environment, not quite understand the fail of Travis CI, the coverage is not good enough, i'll add some cases later. |
@xiaop1987 I think we can drop support to |
@toidi All cases should pass now. |
return rm_ids | ||
|
||
|
||
def get_resource_manager(hadoop_conf_path, rm_id = None): |
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.
If get_resource_manager
is a function for internal usage - prefix it with underscore.
2. Fix the private method name style in hadoop_conf.py
Hi @toidi , the method name issue you mentioned has been fixed, I add some cases to increase the coverage. |
@xiaop1987 good job 👍 Squash commits, bump version and I'll merge and update PyPI package. |
…koverflow.com/questions/3231543/python-httplib-responsenotready), fix this bug 2. Make compatible to resource manager which ha enabled 3. Add cases for new feature 4. Remove run tests in py32 py33 and add py34 py35 5. Bump version to 0.2.4
@toidi I squashed the commits, but don't known did it correctly. Check it please. |
@xiaop1987 sorry for the delay. I was quite busy last days. I'll merge it tonight. |
@toidi no need to sorry at all, merge it whenever you are free :), your project here saved me lots of time, I'm very appreciate about that. |
@xiaop1987 it's not what I expected. I'll create another PR with correct squashing |