/
README
55 lines (32 loc) · 1.55 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Maven Plugin for Hadoop
-------------------------
http://maven-hadoop.blogspot.com .
Copyright (C) 2010 Karthik Kumar
This is a maven plugin for Hadoop issued under Apache License.
This software comes with absolutely *NO WARRANTY* whatsoever.
See LICENSE.txt for more details.
Installation
============
The plugin should be available in the central repository soon.
<plugin>
<groupId>com.github.maven-hadoop.plugin</groupId>
<artifactId>maven-hadoop-plugin</artifactId>
<version>0.20.1</version>
<configuration>
<hadoopHome>/opt/software/hadoop</hadoopHome>
</configuration>
</plugin>
where , hadoopHome is set to HADOOP_HOME installation directory of the version against which this needs to be compiled against.
Usage / Goals:
=============
Warning: the project is in its pre-infancy serving a very limited purpose at the moment of packing files.
More use cases are planned down the pipeline.
* pack:
------
Currently a single goal is available called as 'pack' that creates the jar file to be submitted to the hadoop job engine.
The jar contains a directory called ./lib , that contains all the dependent jars in the same.
The classes of the current project are also available in the same.
The jar would be created in $basedir/target/hadoop-deploy/${ant.project.name}-hdeploy.jar .
$ mvn hadoop:pack
Once created , this could be submitted to the hadoop jar engine
$ $HADOOP_HOME/bin/hadoop jar $basedir/target/hadoop-deploy/${ant.project.name}-hdeploy.jar job.launching.class