Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D779114CB for ; Thu, 10 Apr 2014 16:51:15 +0000 (UTC) Received: (qmail 75145 invoked by uid 500); 10 Apr 2014 16:51:14 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 74895 invoked by uid 500); 10 Apr 2014 16:51:14 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 74879 invoked by uid 99); 10 Apr 2014 16:51:12 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2014 16:51:12 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 606841D5E50; Thu, 10 Apr 2014 16:51:02 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0769140482405412634==" MIME-Version: 1.0 Subject: Re: Review Request 20180: ACCUMULO-2654 Adds utility for creating empty rfile. From: "Josh Elser" To: "Josh Elser" Cc: "Sean Busbey" , "accumulo" Date: Thu, 10 Apr 2014 16:51:02 -0000 Message-ID: <20140410165102.23650.95912@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Josh Elser" X-ReviewGroup: accumulo X-ReviewRequest-URL: https://reviews.apache.org/r/20180/ X-Sender: "Josh Elser" References: <20140410020025.847.83080@reviews.apache.org> In-Reply-To: <20140410020025.847.83080@reviews.apache.org> Reply-To: "Josh Elser" X-ReviewRequest-Repository: accumulo --===============0769140482405412634== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > On April 10, 2014, 2 a.m., Josh Elser wrote: > > src/core/src/main/java/org/apache/accumulo/core/file/rfile/CreateEmpty.java, line 43 > > > > > > This will create a file in HDFS because CachedConfiguration will include the HDFS conf files too, right? It would be good to note where the empty rfile will be created. Beware of multi-volume changes in the 1.6 merge too > > Sean Busbey wrote: > CachedConfiguration is just about Hadoop configs, AFAICT. It behaves per normal HDFS client rules: it uses the default filesystem if you don't give it a full url. On most hdfs installs that's storing into HDFS. I also tested making it with a local filesystem. > > Do you mean note like with a log message? > > I figured in 1.6, it's better to keep things simple and output with normal HDFS apis. This will normally be used in response to an error and the missing file will be in a particular HDFS instance. > > Josh Elser wrote: > I think the help message would be best. If I were using a tool, that'd be the first place I check for more information about what said tool is doing. > > Sean Busbey wrote: > Oh! you mean that the "path" component is a FileSystem URL and will default to the one in your Hadoop configs. > > I'll have to see if commons-cli will let me put a description of unparsed args. Would it be terrible if that part of the help message could only be on the later branches when we have jcommander? Bingo -- not the end of the world if commons-cli variant doesn't do something. Maybe a log message about the Path that's being created for those cases? Your judgement is sufficient. - Josh ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20180/#review39975 ----------------------------------------------------------- On April 9, 2014, 9:28 p.m., Sean Busbey wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/20180/ > ----------------------------------------------------------- > > (Updated April 9, 2014, 9:28 p.m.) > > > Review request for accumulo and Josh Elser. > > > Bugs: ACCUMULO-2654 > https://issues.apache.org/jira/browse/ACCUMULO-2654 > > > Repository: accumulo > > > Description > ------- > > Adds a simple utility for creating an empty RFile, leveraging existing code. > > > Diffs > ----- > > src/core/src/main/java/org/apache/accumulo/core/file/rfile/CreateEmpty.java PRE-CREATION > src/core/src/main/java/org/apache/accumulo/core/file/rfile/RFileOperations.java 5374332 > > Diff: https://reviews.apache.org/r/20180/diff/ > > > Testing > ------- > > tested basic error handling and help messages. tested creating file on hdfs and local file system. tested default codec, gz, and specifying the same codec as default. Used PrintInfo to verify generated files. > > > Thanks, > > Sean Busbey > > --===============0769140482405412634==--