hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r895916 - in /hadoop/hbase/trunk: ./ src/test/org/apache/hadoop/hbase/ src/test/org/apache/hadoop/hbase/client/ src/test/org/apache/hadoop/hbase/regionserver/
Date Tue, 05 Jan 2010 06:12:15 GMT
Author: stack
Date: Tue Jan  5 06:12:11 2010
New Revision: 895916

URL: http://svn.apache.org/viewvc?rev=895916&view=rev
Log:
HBASE-2089 HBaseConfiguration() ctor. deprecated

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/HBaseTestingUtility.java
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/MiniHBaseCluster.java
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestFullLogReconstruction.java
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestZooKeeper.java
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestFromClientSide.java
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/regionserver/TestStoreReconstruction.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=895916&r1=895915&r2=895916&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Tue Jan  5 06:12:11 2010
@@ -285,6 +285,7 @@
    HBASE-1996  Configure scanner buffer in bytes instead of number of rows
                (Erik Rozendaal and Dave Latham via Stack)
    HBASE-2090  findbugs issues (Kay Kay via Stack)
+   HBASE-2089  HBaseConfiguration() ctor. deprecated (Kay Kay via Stack)
 
   NEW FEATURES
    HBASE-1901  "General" partitioner for "hbase-48" bulk (behind the api, write

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/HBaseTestingUtility.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/HBaseTestingUtility.java?rev=895916&r1=895915&r2=895916&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/HBaseTestingUtility.java (original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/HBaseTestingUtility.java Tue Jan 
5 06:12:11 2010
@@ -63,7 +63,7 @@
   
   private final Log LOG = LogFactory.getLog(getClass());
   
-  private final HBaseConfiguration conf = new HBaseConfiguration();
+  private final Configuration conf = HBaseConfiguration.create();
   private MiniZooKeeperCluster zkCluster = null;
   private MiniDFSCluster dfsCluster = null;
   private MiniHBaseCluster hbaseCluster = null;
@@ -76,9 +76,9 @@
   public static final String TEST_DIRECTORY_KEY = "test.build.data";
 
   /**
-   * @return Instance of HBaseConfiguration.
+   * @return Instance of Configuration.
    */
-  public HBaseConfiguration getConfiguration() {
+  public Configuration getConfiguration() {
     return this.conf;
   }
 
@@ -351,7 +351,7 @@
       Bytes.toBytes("xxx"), Bytes.toBytes("yyy")
     };
 
-    HBaseConfiguration c = getConfiguration();
+    Configuration c = getConfiguration();
     HTable meta = new HTable(c, HConstants.META_TABLE_NAME);
     HTableDescriptor htd = table.getTableDescriptor();
     if(!htd.hasFamily(columnFamily)) {

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/MiniHBaseCluster.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/MiniHBaseCluster.java?rev=895916&r1=895915&r2=895916&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/MiniHBaseCluster.java (original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/MiniHBaseCluster.java Tue Jan  5 06:12:11
2010
@@ -26,6 +26,7 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
+import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.client.HConnectionManager;
 import org.apache.hadoop.hbase.master.HMaster;
 import org.apache.hadoop.hbase.regionserver.HRegionServer;
@@ -40,7 +41,7 @@
  */
 public class MiniHBaseCluster implements HConstants {
   static final Log LOG = LogFactory.getLog(MiniHBaseCluster.class.getName());
-  private HBaseConfiguration conf;
+  private Configuration conf;
   public LocalHBaseCluster hbaseCluster;
 
   /**
@@ -49,7 +50,7 @@
    * @param numRegionServers initial number of region servers to start.
    * @throws IOException
    */
-  public MiniHBaseCluster(HBaseConfiguration conf, int numRegionServers) 
+  public MiniHBaseCluster(Configuration conf, int numRegionServers) 
   throws IOException {
     this.conf = conf;
     init(numRegionServers);

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestFullLogReconstruction.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestFullLogReconstruction.java?rev=895916&r1=895915&r2=895916&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestFullLogReconstruction.java (original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestFullLogReconstruction.java Tue
Jan  5 06:12:11 2010
@@ -22,6 +22,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.client.HTable;
 import org.apache.hadoop.hbase.client.Result;
 import org.apache.hadoop.hbase.client.ResultScanner;
@@ -38,7 +39,7 @@
   private final static byte[] TABLE_NAME = Bytes.toBytes("tabletest");
   private final static byte[] FAMILY = Bytes.toBytes("family");
 
-  private HBaseConfiguration conf;
+  private Configuration conf;
 
     /**
    * @throws java.lang.Exception

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestZooKeeper.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestZooKeeper.java?rev=895916&r1=895915&r2=895916&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestZooKeeper.java (original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/TestZooKeeper.java Tue Jan  5 06:12:11
2010
@@ -19,6 +19,7 @@
  */
 package org.apache.hadoop.hbase;
 
+import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.client.*;
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper;
@@ -34,7 +35,7 @@
   private final static HBaseTestingUtility
       TEST_UTIL = new HBaseTestingUtility();
 
-  private HBaseConfiguration conf;
+  private Configuration    conf;
   private MiniHBaseCluster cluster;
 
   /**

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestFromClientSide.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestFromClientSide.java?rev=895916&r1=895915&r2=895916&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestFromClientSide.java (original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/client/TestFromClientSide.java Tue
Jan  5 06:12:11 2010
@@ -33,6 +33,7 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hbase.HBaseConfiguration;
 import org.apache.hadoop.hbase.HBaseTestingUtility;
 import org.apache.hadoop.hbase.HColumnDescriptor;
@@ -403,7 +404,7 @@
   @Test
   public void testMaxKeyValueSize() throws Exception {
     byte [] TABLE = Bytes.toBytes("testMaxKeyValueSize");
-    HBaseConfiguration conf = TEST_UTIL.getConfiguration();
+    Configuration conf = TEST_UTIL.getConfiguration();
     String oldMaxSize = conf.get("hbase.client.keyvalue.maxsize");
     HTable ht = TEST_UTIL.createTable(TABLE, FAMILY);
     byte[] value = new byte[4 * 1024 * 1024];

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/regionserver/TestStoreReconstruction.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/regionserver/TestStoreReconstruction.java?rev=895916&r1=895915&r2=895916&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/regionserver/TestStoreReconstruction.java
(original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/regionserver/TestStoreReconstruction.java
Tue Jan  5 06:12:11 2010
@@ -19,6 +19,7 @@
  */
 package org.apache.hadoop.hbase.regionserver;
 
+import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.hbase.*;
 import org.apache.hadoop.hbase.client.Get;
@@ -42,7 +43,7 @@
   private MiniDFSCluster cluster;
   private static final String TABLE = "testtable";
   private static final int TOTAL_EDITS = 10000;
-  private HBaseConfiguration conf;
+  private Configuration conf;
 
   /**
    * @throws java.lang.Exception



Mime
View raw message