Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 96251C2D2 for ; Wed, 2 May 2012 20:46:16 +0000 (UTC) Received: (qmail 17679 invoked by uid 500); 2 May 2012 20:46:16 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 17652 invoked by uid 500); 2 May 2012 20:46:16 -0000 Mailing-List: contact commits-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 commits@accumulo.apache.org Received: (qmail 17645 invoked by uid 99); 2 May 2012 20:46:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2012 20:46:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2012 20:46:15 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 4BD0A23888EA for ; Wed, 2 May 2012 20:45:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1333190 - /accumulo/branches/1.4/docs/examples/README.dirlist Date: Wed, 02 May 2012 20:45:55 -0000 To: commits@accumulo.apache.org From: ecn@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120502204555.4BD0A23888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ecn Date: Wed May 2 20:45:54 2012 New Revision: 1333190 URL: http://svn.apache.org/viewvc?rev=1333190&view=rev Log: ACCUMULO-570 clarify the dirlist example README Modified: accumulo/branches/1.4/docs/examples/README.dirlist Modified: accumulo/branches/1.4/docs/examples/README.dirlist URL: http://svn.apache.org/viewvc/accumulo/branches/1.4/docs/examples/README.dirlist?rev=1333190&r1=1333189&r2=1333190&view=diff ============================================================================== --- accumulo/branches/1.4/docs/examples/README.dirlist (original) +++ accumulo/branches/1.4/docs/examples/README.dirlist Wed May 2 20:45:54 2012 @@ -37,14 +37,18 @@ This may take some time if there are lar Note that running this example will create tables dirTable, indexTable, and dataTable in Accumulo that you should delete when you have completed the example. If you modify a file or add new files in the directory ingested (e.g. /local/username/workspace), you can run Ingest again to add new information into the Accumulo tables. -To browse the data ingested, use Viewer.java. Be sure to give the "username" user the authorizations to see the data (in this case, run "setauths -u username -s exampleVis" in the shell, and use the string "exampleVis" as the "auths" in command lines below). +To browse the data ingested, use Viewer.java. Be sure to give the "username" user the authorizations to see the data (in this case, run - $ ./bin/accumulo org.apache.accumulo.examples.simple.dirlist.Viewer instance zookeepers username password dirTable dataTable auths /local/username/workspace + $ ./bin/accumulo shell -u root -e 'setauths -u username -s exampleVis' + +then run the Viewer: + + $ ./bin/accumulo org.apache.accumulo.examples.simple.dirlist.Viewer instance zookeepers username password dirTable dataTable exampleVis /local/username/workspace To list the contents of specific directories, use QueryUtil.java. - $ ./bin/accumulo org.apache.accumulo.examples.simple.dirlist.QueryUtil instance zookeepers username password dirTable auths /local/username - $ ./bin/accumulo org.apache.accumulo.examples.simple.dirlist.QueryUtil instance zookeepers username password dirTable auths /local/username/workspace + $ ./bin/accumulo org.apache.accumulo.examples.simple.dirlist.QueryUtil instance zookeepers username password dirTable exampleVis /local/username + $ ./bin/accumulo org.apache.accumulo.examples.simple.dirlist.QueryUtil instance zookeepers username password dirTable exampleVis /local/username/workspace To perform searches on file or directory names, also use QueryUtil.java. Search terms must contain no more than one wild card and cannot contain "/". *Note* these queries run on the _indexTable_ table instead of the dirTable table.