hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Trivial Update of "Hbase/MavenPrimer" by stack
Date Tue, 11 May 2010 18:24:54 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "Hbase/MavenPrimer" page has been changed by stack.


   1. [[#core|I don't want to build all the other modules, I'm just interested in the base
Hbase 'core' stuff, is there something simpler?]]
   1. [[#javadoc|How do I build javadoc only?]]
   1. [[#oneunittest|How do I run one unit test only?]]
+  1. [[#starthbase|How do I do an in-situ bin/start-hbase.sh?]]
@@ -30, +31 @@

  == What about IDE support? ==
- IntelliJ: Built-in awesomeness
+ IntelliJ: Built-in awesomeness.  It just works.
- Eclipse: Definitely recommend the M2Eclipse plugin here: http://m2eclipse.sonatype.org/
+ Eclipse: Definitely recommend the M2Eclipse plugin here: http://m2eclipse.sonatype.org/.
Or, you can have eclipse generate the {{{.classpath}}} and {{{.project}}} for you.  This works
pretty well.  First do {{{$ mvn install}}}.  Then do {{{$mvn eclipse:eclipse}}}.  This writes
the eclipse files for core and each of the contribs.  In eclipse, you'd open new project based
off existing sources.  You will have to symlink hbase/core under your eclipse workspace to
get around eclipse complaint that projects need to be just inside the elipse workspace.
  == How do I just build the jars without going through a full unit test cycle? ==
@@ -73, +75 @@

  {{{mvn mvn test -Dtest=<CLASSNAME>}}}
+ <<Anchor(starthbase)>>
+ == How do I do an in-situ bin/start-hbase.sh? ==
+ To get around '''java.lang.ClassNotFoundException''' when you run '''${HBASE_HOME}/bin/start-hbase.sh'''
in-situ -- i.e. you are trying to run hbase in-place from where you did your checkout -- 
do the following:
+  * $ mvn install # Pass -DskipTests if you'd avoid running tests. Install is needed to get
hbase jars into mvn local repo under ~/.m2
+  * $ HBASE_CLASSPATH=`mvn -q dependency:build-classpath -Dmdep.outputFile="/tmp/cp.txt";
cat "/tmp/cp.txt"` ./bin/start-hbase.sh

View raw message