[ 
https://issues.apache.org/jira/browse/HDFS-9117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14978780#comment-14978780
 ] 

Haohui Mai commented on HDFS-9117:
----------------------------------

bq. I disagree; the code is required for a pure C++ implementation that 
satisfies the use case of "Read the local config and connect to HDFS." The 
libhdfs compatability layer should be for the glue for the C API.

The principle is that the C++ APIs should be able to solely rely on the 
{{Options}} class for all configurations. The class is strongly-typed and has 
clear schema. From the dependency point of view there are strong desires and 
use cases that running libhdfspp without depending XML configuration. I'll be 
-1 if the C++ APIs are bundled with XML configurations.

bq. It has been moved over with the other substitutions. It's implemented, 
tested, and part of the spec of the Java config files, so I don't see any 
reason to excise it.

Environment variables and substitutions are clearly platform-dependent. There 
are use cases that want a platform-independent implementation for minimal 
dependency. The implementation needs to address the use case.

> Config file reader / options classes for libhdfs++
> --------------------------------------------------
>
>                 Key: HDFS-9117
>                 URL: https://issues.apache.org/jira/browse/HDFS-9117
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>    Affects Versions: HDFS-8707
>            Reporter: Bob Hansen
>            Assignee: Bob Hansen
>         Attachments: HDFS-9117.HDFS-8707.001.patch, 
> HDFS-9117.HDFS-8707.002.patch, HDFS-9117.HDFS-8707.003.patch, 
> HDFS-9117.HDFS-8707.004.patch, HDFS-9117.HDFS-8707.005.patch, 
> HDFS-9117.HDFS-8707.006.patch, HDFS-9117.HDFS-8707.008.patch, 
> HDFS-9117.HDFS-8707.009.patch, HDFS-9117.HDFS-9288.007.patch
>
>
> For environmental compatability with HDFS installations, libhdfs++ should be 
> able to read the configurations from Hadoop XML files and behave in line with 
> the Java implementation.
> Most notably, machine names and ports should be readable from Hadoop XML 
> configuration files.
> Similarly, an internal Options architecture for libhdfs++ should be developed 
> to efficiently transport the configuration information within the system.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to