Skip to content

Option dfs.client.use.datanode.hostname is ignored #19

@faladu

Description

@faladu

The library ignores the setting dfs.client.use.datanode.hostname
This setting should make the library use names to connect to datanodes instead of the ipaddress.

In this library getIpAddr() is always used instead of using getHostName() if this setting is true.

If you have a cluster where the datanodes use internal ip-adresses in the configuration files but also have external ip-addresses for client access the getIpAddr always returns the internal ones. In this case you'd want to use the option so you get the names instead which the workstation the client runs on then resolves to the external ip adresses.

I made some adjustments on my download of this repository to enable this option and it seems to work well.
I wanted to ask if there is some way for me to commit them for inspection so they can make it back into this repository over time.

Kind regards
Max

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions