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 98738EF70 for ; Wed, 16 Jan 2013 17:21:17 +0000 (UTC) Received: (qmail 51297 invoked by uid 500); 16 Jan 2013 17:21:17 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 51242 invoked by uid 500); 16 Jan 2013 17:21:17 -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 51230 invoked by uid 99); 16 Jan 2013 17:21:17 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2013 17:21:17 +0000 Received: from localhost (HELO mail-ie0-f172.google.com) (127.0.0.1) (smtp-auth username vines, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2013 17:21:17 +0000 Received: by mail-ie0-f172.google.com with SMTP id c13so3019514ieb.31 for ; Wed, 16 Jan 2013 09:21:16 -0800 (PST) X-Received: by 10.50.183.169 with SMTP id en9mr5434521igc.92.1358356876093; Wed, 16 Jan 2013 09:21:16 -0800 (PST) MIME-Version: 1.0 Reply-To: vines@apache.org Received: by 10.64.60.131 with HTTP; Wed, 16 Jan 2013 09:20:35 -0800 (PST) In-Reply-To: References: From: John Vines Date: Wed, 16 Jan 2013 12:20:35 -0500 Message-ID: Subject: Re: Programtically invoking a Map/Reduce job To: "user@accumulo.apache.org" Content-Type: multipart/alternative; boundary=14dae934129313e81004d36b1bd3 --14dae934129313e81004d36b1bd3 Content-Type: text/plain; charset=ISO-8859-1 The code examples we have scripted simply do the necessary setup for creating a mapreduce job and kicking it off. If you check out the code for them in src/examples/simple/src/main/java/org/apache/accumulo/examples/simple/mapreduce/ you can see what we're doing in Java to kick off jobs. The short explanation is, just like any other MapReduce job, we're setting up a Job, configuring the AccumuloInput and/or OutputFormats, and sending them off like any other MapReduce job. John On Wed, Jan 16, 2013 at 12:11 PM, Mike Hugo wrote: > I'm writing a client program that uses the BatchWriter and BatchScanner > for inserting and querying data, but occasionally it also needs to be able > to kick of a Map/Reduce job on a remote accumulo cluster. The Map/Reduce > examples that ship with Accumulo look like they are meant to be invoked via > the command line. Does anyone have an example of how to kick something off > via a java client running on a separate server? Any best practices to > share? > Thanks, > Mike > --14dae934129313e81004d36b1bd3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The code examples we have scripted simply do the nece= ssary setup for creating a mapreduce job and kicking it off. If you check o= ut the code for them in src/examples/simple/src/main/java/org/apache/accumu= lo/examples/simple/mapreduce/ you can see what we're doing in Java to k= ick off jobs.

The short explanation is, just like any other MapReduce job, we&#= 39;re setting up a Job, configuring the AccumuloInput and/or OutputFormats,= and sending them off like any other MapReduce job.

John


On Wed, Jan 1= 6, 2013 at 12:11 PM, Mike Hugo <mike@piragua.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
I'm writing a client program that uses the BatchWriter= and BatchScanner for inserting and querying data, but occasionally it also= needs to be able to kick of a Map/Reduce job on a remote accumulo cluster.= =A0The Map/Reduce examples that ship with Accumulo look like they are mean= t to be invoked via the command line. =A0Does anyone have an example of how= to kick something off via a java client running on a separate server? =A0A= ny best practices to share?
Thanks,
Mike

--14dae934129313e81004d36b1bd3--