I saw the comments. When I tried to start OOMERegionServer on Mac, I first got (using the sample command from javadoc):
TYus-MacBook-Pro:trunk tyu$ bin/hbase org.apache.hadoop.hbase.OOMERegionServer start Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/OOMERegionServer Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.OOMERegionServer at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) I then corrected class name: TYus-MacBook-Pro:trunk tyu$ bin/hbase org.apache.hadoop.hbase.regionserver.OOMERegionServer start 2014-01-07 07:09:38,852 WARN [main] regionserver.HRegionServerCommandLine: Not starting a distinct region server because hbase.cluster.distributed is false Since OOMERegionServer is in test tree, I wonder how people would use it. Cheers On Mon, Jan 6, 2014 at 9:58 PM, ramkrishna vasudevan < [email protected]> wrote: > I hope you saw that java doc. Just in case you have not seen > /** > * A region server that will OOME. > * Everytime {@link #put(regionName, Durability)} is called, we add > * keep around a reference to the batch. Use this class to test OOME > extremes. > * Needs to be started manually as in > * <code>${HBASE_HOME}/bin/hbase ./bin/hbase > org.apache.hadoop.hbase.OOMERegionServer start</code>. > */ > > So I think this is for testing the OOME cases only and not directly used > anywhere. If I am not right about the actual intent, pardon me. > > Regards > Ram > > > On Tue, Jan 7, 2014 at 11:10 AM, Ted Yu <[email protected]> wrote: > > > Hi, > > I came across this class (in > > trunk): > > > hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/OOMERegionServer.java > > > > I don't see where OOMERegionServer is used. > > > > Does someone know ? > > > > Thanks > > >
