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 C7FA010796 for ; Mon, 15 Jul 2013 22:28:49 +0000 (UTC) Received: (qmail 89144 invoked by uid 500); 15 Jul 2013 22:28:49 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 89111 invoked by uid 500); 15 Jul 2013 22:28:49 -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 89103 invoked by uid 99); 15 Jul 2013 22:28:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jul 2013 22:28:49 +0000 Date: Mon, 15 Jul 2013 22:28:49 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-4905) Add appendToFile command to "hdfs dfs" 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-4905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13709068#comment-13709068 ] Chris Nauroth commented on HDFS-4905: ------------------------------------- The patch is looking really good. I tested successfully on Mac and Windows. The only problem I found is that {{TestDFSShell#testAppendToFileBadArgs}} failed for me due to timeout. Can you take a look? Aside from that, here are just a few more minor suggestions: {code} public static final int DEFAULT_IO_LENGTH = 1024 * 1024; {code} This doesn't appear to be needed outside the class, so should we make it private? {code} if (is != null) { is.close(); } if (fos != null) { fos.close(); } {code} Could you please use {{IOUtils#cleanup}} here? Otherwise, there is a risk that {{is.close()}} throws before we attempt to call {{fos.close()}}. {code} * <<>> * <<>> * <<>> * <<>> Reads the input from stdin. {code} In the second example, could you change "hadoopdir" to "hadoopfile" like the others? Otherwise, a user might mistakenly think that the multi-input form of the command operates on a destination directory instead of file. > Add appendToFile command to "hdfs dfs" > -------------------------------------- > > Key: HDFS-4905 > URL: https://issues.apache.org/jira/browse/HDFS-4905 > Project: Hadoop HDFS > Issue Type: Bug > Components: tools > Affects Versions: 3.0.0 > Reporter: Arpit Agarwal > Assignee: Arpit Agarwal > Priority: Minor > Attachments: HDFS-4905.002.patch, HDFS-4905.003.patch, HDFS-4905.patch > > > A "hdfs dfs -appendToFile..." option would be quite useful for quick testing. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira