[
https://issues.apache.org/jira/browse/HDFS-6200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13962402#comment-13962402
]
Haohui Mai commented on HDFS-6200:
----------------------------------
The v0 patch moves WebHdfsFileSystem and SWebHdfsFileSystem into a separate
jar. The patch moves the files to a different project except for the following:
# It modifies {{DFSConfigKeys}} so that it no longer depends on the
{{AuthFilter}} and the {{BlockPlacementPolicyDefault}} class.
# It moves some methods from the {{HAUtil}} / {{DFSUtilClient}} in the original
hdfs jar to the {{HAUtilClient}} / {{DFSUtilClient}} in the client side jar.
# It moves some methods from the {{JsonUtils}} in the original hdfs jar to the
{{JsonUtilClient}} in the client side jar. It contains a new function that
translates JSON representation of the {{BlockLocation}} object to the Java
object.
To review this patch, one can use {{git diff -M}} to omit the renames.
> Create a separate jar for hdfs-client
> -------------------------------------
>
> Key: HDFS-6200
> URL: https://issues.apache.org/jira/browse/HDFS-6200
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Haohui Mai
> Assignee: Haohui Mai
> Attachments: HDFS-6200.000.patch
>
>
> Currently the hadoop-hdfs jar contain both the hdfs server and the hdfs
> client. As discussed in the hdfs-dev mailing list
> (http://mail-archives.apache.org/mod_mbox/hadoop-hdfs-dev/201404.mbox/browser),
> downstream projects are forced to bring in additional dependency in order to
> access hdfs. The additional dependency sometimes can be difficult to manage
> for projects like Apache Falcon and Apache Oozie.
> This jira proposes to create a new project, hadoop-hdfs-cliient, which
> contains the client side of the hdfs code. Downstream projects can use this
> jar instead of the hadoop-hdfs to avoid unnecessary dependency.
> Note that it does not break the compatibility of downstream projects. This is
> because old downstream projects implicitly depend on hadoop-hdfs-client
> through the hadoop-hdfs jar.
--
This message was sent by Atlassian JIRA
(v6.2#6252)