Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62F8A10D08 for ; Tue, 25 Nov 2014 17:51:32 +0000 (UTC) Received: (qmail 602 invoked by uid 500); 25 Nov 2014 17:51:32 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 550 invoked by uid 500); 25 Nov 2014 17:51:32 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 540 invoked by uid 99); 25 Nov 2014 17:51:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2014 17:51:32 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of josh.elser@gmail.com designates 209.85.216.49 as permitted sender) Received: from [209.85.216.49] (HELO mail-qa0-f49.google.com) (209.85.216.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2014 17:51:27 +0000 Received: by mail-qa0-f49.google.com with SMTP id s7so735157qap.8 for ; Tue, 25 Nov 2014 09:51:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=wyuZanUoX17WKRy9TwTR2DksLA5FkxZ4vyIYgx0VM+I=; b=WzRts/phsO3A21omIuUXsiTgZjhZ4/gB9mwah/OinaKbDOliphgMLKof9z5pLy+7iC kjMPdtCGft5JNLyoyoNq3LbCc6LXHcVh6xdUTQfkczEdJnL9etDiwQowGpwmXHEqq8t2 X8eO7P3c9EQ00Zzjn7dQPqEdzLowWFZy0ljdQC0Y8E0QT7mYywzvS6Ey9dMyg1/jmRRA k7zb+3MfojgXazf+PomknnO9Imr1eC9MQ9lWLL3AL7dvRKkLd0CQrpXVluDPFzkrvJAl MRzWUeHPN7CS+w6SatUHMmUoYW+aeJDft1Ahby/b4bi54W2bpYUL3fCrzmX03g4ManVU 2nKQ== X-Received: by 10.229.79.132 with SMTP id p4mr38643334qck.14.1416937867295; Tue, 25 Nov 2014 09:51:07 -0800 (PST) Received: from [192.168.43.5] (mobile-166-171-057-094.mycingular.net. [166.171.57.94]) by mx.google.com with ESMTPSA id j11sm1648582qaa.47.2014.11.25.09.51.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Nov 2014 09:51:06 -0800 (PST) Message-ID: <5474C188.4020503@gmail.com> Date: Tue, 25 Nov 2014 12:51:04 -0500 From: Josh Elser User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: user@accumulo.apache.org CC: Ryan Bowman Subject: Re: Recursive Import Directory References: <5474B1E8.10508@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ah, ok. Thanks, Mike. It wouldn't be too bad to ensure that the failures are unique (we could preserve the directory name in the failures dir). I thought that we assign a unique name on the backend (b-XXXXXXX.rf) so I think that's ok now. What I'm boiling down to: sounds like a reasonable feature to request if you want to file an issue on JIRA, Ariel. :) Mike Drob wrote: > Name collision of failures and I think name collision of successes might > cause problems sometimes too. Or maybe that's just with older versions. > Regardless, having to write your own code puts it out of the realm of > easy into at least middling territory - if import directory could > natively handle recursion then it would become easy. > > On Tue, Nov 25, 2014 at 10:44 AM, Josh Elser > wrote: > > What's the difficulty, Mike? Handling name collision of failures? > > Mike Drob wrote: > > Ariel, > > There is not an easy way to do this recursively. Your best option is > going to be writing your own wrapper around the import command. If > you're using shell commands, this could be as easy as feeding the > results of 'find . -type d' into a script, or in Java you might > want to > look at DirectoryWalker in Apache Commons as possible solutions. > > Mike > > On Tue, Nov 25, 2014 at 10:22 AM, Ariel Valentin > > >> wrote: > > Hello! > > We are running a couple of experiments using > importDirectory and are > curious if there is a simple way to import directories > recursively. > Based on looking at the source code it does not look like it > currently supports that feature: > > > (https://github.com/apache/__accumulo/blob/__1835c27ca41426ddd570cde14f9612__c45680b917/core/src/main/java/__org/apache/accumulo/core/__client/admin/__TableOperationsImpl.java > ) > > Are there plans to add it in the future? Or is there a > simple way to > do this right now? > > Thanks, > Ariel Valentin > e-mail: ariel@arielvalentin.com > > > > website: http://blog.arielvalentin.com > skype: ariel.s.valentin > twitter: arielvalentin > linkedin: http://www.linkedin.com/__profile/view?id=8996534 > > ------------------------------__--------- > *simplicity *communication > *feedback *courage *respect > > >