hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haohui Mai (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9241) HDFS clients can't construct HdfsConfiguration instances
Date Fri, 16 Oct 2015 16:38:06 GMT

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

Haohui Mai commented on HDFS-9241:
----------------------------------

bq. One other thing to consider is "would we expect thin clients to ever instantiate this
class?". If so, should it be in that JAR.

My answer is no -- the current implementation has a class {{HdfsConfigurationLoader}} to load
the configurations that serves the original purposes of {{HdfsConfiguration}} on the client
side.

The reason is that {{HdfsConfiguration}} are used by both the client and the server side.
It contains deprecated keys for the server side, which IMO should not be exposed to the clients
at all.

> HDFS clients can't construct HdfsConfiguration instances
> --------------------------------------------------------
>
>                 Key: HDFS-9241
>                 URL: https://issues.apache.org/jira/browse/HDFS-9241
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>            Reporter: Steve Loughran
>            Assignee: Mingliang Liu
>         Attachments: HDFS-9241.000.patch
>
>
> the changes for the hdfs client classpath make instantiating {{HdfsConfiguration}} from
the client impossible; it only lives server side. This breaks any app which creates one.
> I know people will look at the {{@Private}} tag and say "don't do that then", but it's
worth considering precisely why I, at least, do this: it's the only way to guarantee that
the hdfs-default and hdfs-site resources get on the classpath, including all the security
settings. It's precisely the use case which {{HdfsConfigurationLoader.init();}} offers internally
to the hdfs code.
> What am I meant to do now? 



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

Mime
View raw message