Hi Vamshi,

If you want to change source in eclipse, you need to create an eclipse project as documented on http://hbase.apache.org/book/ides.html#eclipse. The sources follow a standard maven structure that has no lib folder at the root.

Now, when your source is changed and you want to get a full distribution, you can invoke 'mvn package -DskipTests=true', and a tar.gz will be assembled in the target folder. You can now the tar.gz, and there you will find the lib folder with all needed jars, and also the bin...

If you want to avoid the pain to create a tar.gz each time to test against a real hadoop cluster, you can use another maven project (that depends on the hbase project) with a class to launch zookeper and the master (something like [1]). You can put a hbase-site.xml in your classpath with the configuration you want.

Maybe someone on mailing list has a more canonical way to launch/debug hbase in eclipse? I'm always interested to learn how other folks play :)

Thx.

Eric

[1] https://github.com/echarles/t4f-hbase/blob/master/server/src/main/java/aos/t4f/hbase/server/HBaseServerLauncher.java

On 09/09/11 20:57, vamshi krishna wrote:
Hi folks,
              i noticed one thing that, in the checked out version of hbase
from the link  http://svn.apache.org/repos/asf/hbase/trunk , we cannot find
the jar files and lib directory. instead we can directly get the actual
source code for hbase from http://apache.mesi.com.ar//hbase/ .
so, please once verify and update the svn checkout link in the hbase book.
plz let me now if i am wrong.

thank you.

On Fri, Sep 9, 2011 at 9:22 AM, vamshi krishna<[email protected]>  wrote:

Hi all,
           i am trying to change hbase code and rebuilt it, for that i
already built hadoop code successfully in eclipse IDE(helios). i am using
ubuntu 10.04, hadoop 0.20.203 and i cheked out hbase code from the link
mentioned in the hbase book( http://svn.apache.org/repos/asf/hbase/trunk )
after that i did the following

Added the $HBASE_HOME/conf directory to the CLASSPATH in eclipse: Project
Properites ->  Java Build Path ->  Libraries ->  Add Class Folder.

and i also added jars:  the project's properties dialog, in Java Build Path ->  
Libraries, click Add External Jars , selected

{HADOOP_HOME}/hadoop-0.20.203-core.jar , 
{HADOOP_HOME}/lib/commons-logging-api-1.0.4.jar,  
{HADOOP_HOME}/lib/log4j-1.2.15.jar .

But i could not find lib direcctory in the checked out code of hbase, i.e i 
couldn't find the {HBASE_HOME}/lib.
  And more over i could not find  the 2 jars ,zookeeper-3.2.2.jar,  
hadoop-core.jar in the hbase code.  *Infact there are no jar files in the hbase 
code

checked out.*

  Am i following correct steps or should i do some thing else?
please can anyone help?



--
*Regards*
*
Vamshi Krishna
*





--
Eric
http://about.echarles.net

Reply via email to