abayer / cdh-maven-archetype Goto Github PK
View Code? Open in Web Editor NEWThis project forked from patrickangeles/cdh-maven-archetype
CDH Maven Deployers and Archetypes
License: Other
This project forked from patrickangeles/cdh-maven-archetype
CDH Maven Deployers and Archetypes
License: Other
You can create a template hadoop executable jar that has a Driver with two MapReduce jobs: wordcount based on the org.apache.hadoop.mapred API, and the same wordcount based on the org.apache.hadoop.mapreduce API. Here's how you do it (you'll need a recent version of Maven installed): $ mvn archetype:generate -DarchetypeCatalog=http://cdh-maven-repo.googlecode.com/svn/trunk/archetype-catalog.xml [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom <<< [INFO] [INFO] --- maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0) Choose archetype: 1: http://cdh-maven-repo.googlecode.com/svn/trunk/archetype-catalog.xml -> mapred-driver-archetype (mapred-driver-archetype) Choose a number: : 1 Define value for property 'groupId': : foo Define value for property 'artifactId': : foo Define value for property 'version': 1.0-SNAPSHOT: : <enter> Define value for property 'package': foo: : <enter> Confirm properties configuration: groupId: foo artifactId: foo version: 1.0-SNAPSHOT package: foo Y: : <enter> [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.501s [INFO] Finished at: Wed Apr 27 22:20:16 EDT 2011 [INFO] Final Memory: 7M/81M [INFO] ------------------------------------------------------------------------ Now you've got a maven-based Hadoop project! To build and run in Hadoop: $ cd foo $ mvn package $ hadoop jar target/foobar-1.0-SNAPSHOT-driver.jar To run the unit tests: $ mvn test To import the project in Eclipse: $ mvn eclipse:eclipse -DdownloadSources Then, in Eclipse, go: Import... > Existing Projects... > select the 'foo' directory (or parent thereof) > done! The nice thing about using Maven here is that it links the sources for you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.