Closed priancho closed 7 years ago
I think you are exactly right. Would you like to contribute that code as a PR?
Even simpler would be
port = conf.pop('port', None)
if port is not None:
_lib.hdfsBuilderSetNameNodePort(o, port)
(like for the other parameters).
Sure, I will make PR with the the fix (and the code simplified with your suggestion).
Hi,
First, thank you for a great library! It is very helpful utility to use HDFS-related functionalities in Python.
While using hdfs3 in HA-mode Hadoop, I am failing to use HA configuration with following commands.
It fails with the following error message.
While digging the cause in the source file, I found that the following codes are suspicious.
When I added if-else statement that just skips allocation if par=="port", HDFileSystem can be properly initialized. It seems that port/user/etc. properties that are set before this loop shouldn't be used inside this loop as in the following code:
https://github.com/priancho/hdfs3/blob/bugfix_SkipAlreadyEvaluatedConnectionProperties/hdfs3/core.py#L125
I would like to hear any comments on this since I wonder if this is a valid fix for the problem.
Best wishes, Han-Cheol