Skip to content
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

[PUBDEV-9037] add hdfs_config argument to h2o.init method #6658

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

usefulalgorithm
Copy link

This PR implements https://h2oai.atlassian.net/browse/PUBDEV-9037.

It simply adds an additional optional argument to h2o.init, H2OLocalServer.start and H2OLocalServer._launch_server.

Thanks!

Signed-off-by: andylii <andylii@mobagel.com>
@usefulalgorithm
Copy link
Author

CONTRIBUTING.md says:

New code must come with unit tests

However I'm really not sure how to write tests for this...

@mn-mikke
Copy link
Collaborator

Hi @usefulalgorithm,
IMHO this a good new feature, but would it be possible to make it more generic? Such arguments that would be rarely used in standalone deployment will be more. I’m thinking about adding a parameter called extra_args to init method of the python and R client. This parameter would be a dictionary and contain any additional arguments needed for starting h2o backend. E.g. h2o.init(extra_args= {'hdfs_config':'core-site.xml', …} ) WDYT?

@usefulalgorithm
Copy link
Author

Hi @mn-mikke , thanks for the suggestion, just added a new commit to the branch!

Signed-off-by: andylii <andylii@mobagel.com>
@usefulalgorithm
Copy link
Author

ping

h2o-py/h2o/backend/server.py Outdated Show resolved Hide resolved
h2o-py/h2o/backend/server.py Outdated Show resolved Hide resolved
h2o-py/h2o/h2o.py Outdated Show resolved Hide resolved
@mn-mikke mn-mikke requested a review from valenad1 March 30, 2023 15:32
Signed-off-by: andylii <andylii@mobagel.com>
@usefulalgorithm
Copy link
Author

Hi @mn-mikke , sorry for the late update, I fixed it like you suggested. Thanks!

@usefulalgorithm
Copy link
Author

ping

@usefulalgorithm
Copy link
Author

Hi @mn-mikke , is there any update regarding this PR? It's been stuck for quite awhile. If there is anything else I can do to help this PR get moving, please let me know. Thanks!

@mn-mikke
Copy link
Collaborator

Hi @usefulalgorithm,
deeply sorry for late reply. It looks good to me. Please rebase your change against branch rel-3.42.0 and we will release with the next fix release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants