hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boris Shkolnik (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-222) Support for concatenating of files into a single file
Date Thu, 17 Sep 2009 17:11:58 GMT

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

Boris Shkolnik commented on HDFS-222:

here is the tentative plan:
# API void concat(String trg, String ... srcs) wil be added to DistributedFileSystem and DFSClient.
# actual implemntation will be in FsNamesystem.java and FSDirectory.java
# The following prerequisites will be checked before the actual blocks will be moved:
#* Files are not empty and not null
#* NameNode is not in the SafeMode
#* Permissions are valid:
#** Write permissions for target file 
#** Read permissions for src files
#** Write permissions in the source parent directory (for delete).
# All the blocks of all the files are of the same size and same replication level.

# Actual blocks moved to the target file
# Access/Modification times to be updated of the following files:
#*  target file
#*  src directory
# Quotas updated:
#* Target directory - NSQuota +0, DSQuota +Sum(block sizes)
#* Src directory - NSQuota -1, DSQuoa -Sum(block sizes)

Errors handling using exceptions.

Note. Should srcs be an array instead of varargs? Seems safer and easier to use.

> Support for concatenating of files into a single file
> -----------------------------------------------------
>                 Key: HDFS-222
>                 URL: https://issues.apache.org/jira/browse/HDFS-222
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>            Reporter: Venkatesh S
>            Assignee: Boris Shkolnik
> An API to concatenate files of same size and replication factor on HDFS into a single
larger file.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message