Repository: hbase Updated Branches: refs/heads/master 2359ef518 -> 966f5ca3d
HBASE-18697 (addendum) Add "o.a.h.h.mapreduce.Driver" as main class to hbase-shaded-mapreduce jar. Without it, following command fails. bin/hadoop jar <jar> rowcouter <table> In general, the 'program names' won't work. One would have needed to specify class name explicitly otherwise. Change-Id: Ib94cca5e9fc45b19436b7ae0d6634de097572537 Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/966f5ca3 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/966f5ca3 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/966f5ca3 Branch: refs/heads/master Commit: 966f5ca3db705b7bb030b0075afa38ab37bb244a Parents: 2359ef5 Author: Apekshit Sharma <[email protected]> Authored: Wed Sep 6 10:53:01 2017 -0700 Committer: Apekshit Sharma <[email protected]> Committed: Sat Sep 9 15:27:15 2017 -0700 ---------------------------------------------------------------------- hbase-shaded/hbase-shaded-mapreduce/pom.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/966f5ca3/hbase-shaded/hbase-shaded-mapreduce/pom.xml ---------------------------------------------------------------------- diff --git a/hbase-shaded/hbase-shaded-mapreduce/pom.xml b/hbase-shaded/hbase-shaded-mapreduce/pom.xml index 041ccfe..f791ddc 100644 --- a/hbase-shaded/hbase-shaded-mapreduce/pom.xml +++ b/hbase-shaded/hbase-shaded-mapreduce/pom.xml @@ -45,6 +45,20 @@ <skipAssembly>true</skipAssembly> </configuration> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <archive> + <manifest> + <!--Include the Driver class as the 'main'. + Executing the jar will then show a list of the basic MR jobs. + --> + <mainClass>org/apache/hadoop/hbase/mapreduce/Driver</mainClass> + </manifest> + </archive> + </configuration> + </plugin> </plugins> </build> <dependencies>
