Thanks Nick. I switched to IntelliJ, remote debug works well now. It's possible my eclipse issue, but anyway, it works perfect for me now. Thanks a lot. :-)
> From: ndimi...@gmail.com > Date: Fri, 15 Aug 2014 12:58:58 -0700 > Subject: Re: how to debug hbase standalone? > To: user@hbase.apache.org > > I debug a local hbase out of my git checkout by attaching to the remote > process. I edit hbase-env.sh (there are lines you can uncomment) to start > the processes with debugging enabled. Then from my dev environment > (IntelliJ), I point it at the port and everything works. > > I imagine it would work similarly if you've built from the sources in a > dist tarball. It should be also possible to pull src jars from maven if > you're working from a release. > > How have you setup eclipse? Can you create a project from the hbase/pom.xml > ? > > -n > > > On Fri, Aug 15, 2014 at 6:24 AM, SiMaYunRui <myl...@hotmail.com> wrote: > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > I am > > writing to ask how to debug hbase-0.98 standalone mode thru eclipse. > > > > > > > > First I > > imported hbase-0.98.2 into eclipse, and compiled successfully thru "mvn > > clean install -DskipTests". Then I got an ClassNotFoundException when I > > tried to debug/run the java application with main class configured as > > "org.apache.hadoop.hbase.master.HMaster". I tried to add > > hbase-server.jar into Classpath, still no luck. > > > > > > > > > > > > Later I > > tried remote debug. I downloaded hbase-0.98.2-hadoop2.bin.tar. After > > modified > > "hbase" to enable remote debug, I could successfully start hbase. > > Then I can make eclipse remote connect to the started java application thru > > configured port. I can see the debug view and thread suspended. But my > > source > > code cannot by loaded correctly, "Source not found" error appears > > even I have right setting in Source Lookup dialog. > > > > > > > > > > > > I read > > lots of articles including reference book. But none of them actually work. > > What's right way/configuration to debug HBase? > > RegardsYunsima > > > >