Repository: hbase
Updated Branches:
  refs/heads/branch-2 1ee492373 -> 4dc3c40f1


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/4dc3c40f
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4dc3c40f
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4dc3c40f

Branch: refs/heads/branch-2
Commit: 4dc3c40f158401c821b4d61361a287b0e701de10
Parents: 1ee4923
Author: Apekshit Sharma <[email protected]>
Authored: Wed Sep 6 10:53:01 2017 -0700
Committer: Apekshit Sharma <[email protected]>
Committed: Sat Sep 9 15:23:45 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/4dc3c40f/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 02b2d8a..69f6e5d 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>

Reply via email to