HBASE-2995 Incorrect dependency on Log class from Jetty

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1001936 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-09-27 22:18:28 +00:00
parent aff46efe9e
commit 9069ed1ac6
3 changed files with 10 additions and 5 deletions

View File

@ -549,6 +549,7 @@ Release 0.21.0 - Unreleased
time as a split time as a split
HBASE-3042 Use LO4J in SequenceFileLogReader HBASE-3042 Use LO4J in SequenceFileLogReader
(Nicolas Spiegelberg via Stack) (Nicolas Spiegelberg via Stack)
HBASE-2995 Incorrect dependency on Log class from Jetty
IMPROVEMENTS IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable HBASE-1760 Cleanup TODOs in HTable

View File

@ -31,7 +31,8 @@ import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat; import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
import org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat; import org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat;
import org.apache.hadoop.util.GenericOptionsParser; import org.apache.hadoop.util.GenericOptionsParser;
import org.mortbay.log.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/** /**
* Export an HBase table. * Export an HBase table.
@ -39,6 +40,7 @@ import org.mortbay.log.Log;
* back in again. * back in again.
*/ */
public class Export { public class Export {
private static final Log LOG = LogFactory.getLog(Export.class);
final static String NAME = "export"; final static String NAME = "export";
/** /**
@ -89,7 +91,7 @@ public class Export {
long startTime = args.length > 3? Long.parseLong(args[3]): 0L; long startTime = args.length > 3? Long.parseLong(args[3]): 0L;
long endTime = args.length > 4? Long.parseLong(args[4]): Long.MAX_VALUE; long endTime = args.length > 4? Long.parseLong(args[4]): Long.MAX_VALUE;
s.setTimeRange(startTime, endTime); s.setTimeRange(startTime, endTime);
Log.info("verisons=" + versions + ", starttime=" + startTime + LOG.info("verisons=" + versions + ", starttime=" + startTime +
", endtime=" + endTime); ", endtime=" + endTime);
TableMapReduceUtil.initTableMapperJob(tableName, s, Exporter.class, null, TableMapReduceUtil.initTableMapperJob(tableName, s, Exporter.class, null,
null, job); null, job);

View File

@ -37,7 +37,8 @@ import org.junit.AfterClass;
import org.junit.Assert; import org.junit.Assert;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
import org.mortbay.log.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import static org.junit.Assert.assertNull; import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
@ -46,6 +47,7 @@ import static org.junit.Assert.assertNotNull;
* This class is for testing HCM features * This class is for testing HCM features
*/ */
public class TestHCM { public class TestHCM {
private static final Log LOG = LogFactory.getLog(TestHCM.class);
private final static HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility(); private final static HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();
private static final byte[] TABLE_NAME = Bytes.toBytes("test"); private static final byte[] TABLE_NAME = Bytes.toBytes("test");
private static final byte[] FAM_NAM = Bytes.toBytes("f"); private static final byte[] FAM_NAM = Bytes.toBytes("f");
@ -99,7 +101,7 @@ public class TestHCM {
// to remove them, so the LRU strategy does not work. // to remove them, so the LRU strategy does not work.
configuration.set("someotherkey", String.valueOf(_randy.nextInt())); configuration.set("someotherkey", String.valueOf(_randy.nextInt()));
last = connection; last = connection;
Log.info("Cache Size: " LOG.info("Cache Size: "
+ getHConnectionManagerCacheSize() + ", Valid Keys: " + getHConnectionManagerCacheSize() + ", Valid Keys: "
+ getValidKeyCount()); + getValidKeyCount());
Thread.sleep(100); Thread.sleep(100);
@ -154,4 +156,4 @@ public class TestHCM {
HRegionLocation rl = conn.getCachedLocation(TABLE_NAME, ROW); HRegionLocation rl = conn.getCachedLocation(TABLE_NAME, ROW);
assertNull("What is this location?? " + rl, rl); assertNull("What is this location?? " + rl, rl);
} }
} }