Jiajun, Sorry if i wasn't clear. First to 'mvn eclipse:eclipse'. Then in eclipse remove 'src/test/resources' from you build path. Also you may need go "clean out" your project by going to "project", "clean..." and then selecting your hbase build
You should be able to then run HMaster, or any of the other servers/utils. Jon. On Mon, Nov 21, 2011 at 7:39 AM, jiajun chen <[email protected]> wrote: > The eclipse setup generated with 'mvn eclipse:eclipse' has a build path > that has hbase setup in a "unit testing mode". This is great if you want > to run unit tests inside of eclipse but not good if you want to get the > actual hbase servers (master, regionserver, external utils like bulk load, > hfile, etc) running and debuggable. > > So,what should I do if I want to get the hbase servers running and > debuggable in eclipse ? > > On Mon, Nov 21, 2011 at 11:16 PM, Jonathan Hsieh <[email protected]> wrote: > > > I've found that if you remove 'src/test/resources' from your build path, > > things will work out better for the server testing cases. The "testing > > mode" settings live in the hbase-site.xml file in that dir. > > > > You can do this by right clicking on the package in package explorer, > Build > > Path, remove from build path. > > > > The eclipse setup generated with 'mvn eclipse:eclipse' has a build path > > that has hbase setup in a "unit testing mode". This is great if you want > > to run unit tests inside of eclipse but not good if you want to get the > > actual hbase servers (master, regionserver, external utils like bulk > load, > > hfile, etc) running and debuggable. > > > > Jon > > > > On Sun, Nov 20, 2011 at 5:40 PM, 陈加俊 <[email protected]> wrote: > > > > > I run HRegionServer whith program arguments that is start in eclipse. > > > > > > 2011-11-21 09:35:12,384 WARN [main] > > > regionserver.HRegionServerCommandLine(56): Not starting a distinct > region > > > server because hbase.cluster.distributed is false > > > > > > but the following contents in $HBAE_HOME/conf/hbase-site.xml : > > > > > > <property> > > > <name>hbase.cluster.distributed</name> > > > <value>true</value> > > > <description>The mode the cluster will be in. Possible values are > > > false: standalone and pseudo-distributed setups with managed > > Zookeeper > > > true: fully-distributed with unmanaged Zookeeper Quorum (see > > > hbase-env.sh) > > > </description> > > > </property> > > > > > > > > > > > -- > > // Jonathan Hsieh (shay) > > // Software Engineer, Cloudera > > // [email protected] > > > > > > -- > > 陈加俊 项目经理 > 优讯时代(北京)网络技术有限公司 > 优讯网 www.uuwatch.com > > 地址:北京市海淀区上地信息路2号D栋412 > > 电话:010-82895510 > 传真:010-82896636 > 手机:15110038983 > 电邮:*[email protected]* > -- // Jonathan Hsieh (shay) // Software Engineer, Cloudera // [email protected]
