Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2206410332 for ; Tue, 3 Mar 2015 07:00:45 +0000 (UTC) Received: (qmail 39375 invoked by uid 500); 3 Mar 2015 06:54:05 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 39300 invoked by uid 500); 3 Mar 2015 06:54:05 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 39288 invoked by uid 99); 3 Mar 2015 06:54:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Mar 2015 06:54:05 +0000 Date: Tue, 3 Mar 2015 06:54:05 +0000 (UTC) From: "Steve Armstrong (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7800) Improve documentation for FileSystem.concat() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-7800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14344634#comment-14344634 ] Steve Armstrong commented on HDFS-7800: --------------------------------------- Wow, that's a fantastic piece of documentation. Why is this seperate from the javadoc I mentioned (https://hadoop.apache.org/docs/current/api/org/apache/hadoop/fs/FileSystem.html) and if they must be seperate, can the javadoc atleast point to the more detailed url? > Improve documentation for FileSystem.concat() > --------------------------------------------- > > Key: HDFS-7800 > URL: https://issues.apache.org/jira/browse/HDFS-7800 > Project: Hadoop HDFS > Issue Type: Task > Affects Versions: 2.2.0, 2.6.0 > Reporter: Steve Armstrong > Attachments: HDFS-7800-1.patch > > > This is a documentation request. > [FileSystem.concat()|https://hadoop.apache.org/docs/current/api/org/apache/hadoop/fs/FileSystem.html] says it will "Concat existing files together". It seems to be a Namenode-only operation though, mapping the data blocks into a single file. This means: > # The destination must exist > # The destination must be non-empty > # The destination must have it's last block exactly full > # All but the last of the source files must have their last block full > # All the source file will be deleted by this operation > HDFS-6641 brought up some of these limitations, but was closed as not a problem. I think the javadoc should be improved so it's clear this function was never intended to work the same as a general purpose file concatenation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)