Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C57AF183A3 for ; Thu, 10 Dec 2015 06:51:11 +0000 (UTC) Received: (qmail 24850 invoked by uid 500); 10 Dec 2015 06:51:11 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 24778 invoked by uid 500); 10 Dec 2015 06:51:11 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 24366 invoked by uid 99); 10 Dec 2015 06:51:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2015 06:51:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2FB522C1F5A for ; Thu, 10 Dec 2015 06:51:11 +0000 (UTC) Date: Thu, 10 Dec 2015 06:51:11 +0000 (UTC) From: "Daniel Vimont (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-14879) maven archetype: mapreduce application MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-14879?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Vimont updated HBASE-14879: ---------------------------------- Attachment: archetype_mr_prototype.zip Attaching a zip file, {{archetype_mr_prototype.zip}}, containing the compon= ents of a Maven archetype suitable for testing in a sandbox environment. It= is provided separately here so that folks can try it out and comment on it= before we try to incorporate it into the HBase project and push the archet= ype into the Maven central repository. The MapReduce job code that is generated from this archetype is called {{Co= pyTableExample.java}}, and it is derived from {{CopyTable}} in the HBase pr= oject. Also included is a corresponding test class {{TestCopyTableExample.j= ava}}. This archetype generates a prefab project for the user which (a) automatica= lly establishes for them all required Maven dependencies, (b) provides a co= mplete example of HBase-oriented MapReduce job code, and (c) provides a com= plete example of test code showing how to use the HBaseTestUtility to easil= y and effectively test a MapReduce job. It's recommended to do the following in a separate sandbox environment, not= in an active development environment. (I use VirtualBox to set up a fresh = Ubuntu environment whenever I need a new sandbox.) INSTRUCTIONS (1) Download and unzip {{archetype_mr_prototype.zip}}. (2) Go into the {{archetype_mr_prototype}} directory, and execute: {{mvn in= stall}} This will install the archetype (which is called {{hbase-mapreduce-job-arch= etype}}, version {{1.1.2-alpha}}) into your local Maven repository. (3) To create a new project based upon the archetype, go to the directory i= n which you want the project folder and its contents to be created, and exe= cute the following: {{mvn archetype:generate -DarchetypeCatalog=3Dlocal}} This will interactively ask you to (a) choose the number of the archetype y= ou want to use from a numbered list that is displayed (in this case, choose= the number corresponding to =E2=80=9Chbase-mapreduce-job-archetype=E2=80= =9D), (b) specify groupId (e.g., =E2=80=9Corg.example=E2=80=9D), (c) specif= y artifactId (e.g., =E2=80=9Ctest-hbase-mapreduce-project=E2=80=9D), (d) sp= ecify version (default is =E2=80=9C1.0-SNAPSHOT=E2=80=9D), and (e) specify = package (e.g., =E2=80=9Corg.example.testpackage=E2=80=9D). Your generated project components will be found in a new directory named wi= th the artifactId value that you specified above. Going to the new project = directory and running {{mvn install}} from the command line should result i= n downloading of all dependencies, compiling of the provided Java classes, = and running (hopefully to success) of all the tests in the test class. Note= that the tests could take 3 to 5 minutes to complete. > maven archetype: mapreduce application > -------------------------------------- > > Key: HBASE-14879 > URL: https://issues.apache.org/jira/browse/HBASE-14879 > Project: HBase > Issue Type: Sub-task > Components: build, Usability > Reporter: Nick Dimiduk > Labels: beginner > Attachments: archetype_mr_prototype.zip > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)