incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject svn commit: r1183122 - in /incubator/bigtop/branches/hadoop-0.22/bigtop-tests/test-artifacts/hbase: pom.xml src/main/groovy/org/apache/bigtop/itest/util/HBaseTestUtil.java
Date Thu, 13 Oct 2011 21:52:00 GMT
Author: rvs
Date: Thu Oct 13 21:51:59 2011
New Revision: 1183122

URL: http://svn.apache.org/viewvc?rev=1183122&view=rev
Log:
Fixing HBase tests

Modified:
    incubator/bigtop/branches/hadoop-0.22/bigtop-tests/test-artifacts/hbase/pom.xml
    incubator/bigtop/branches/hadoop-0.22/bigtop-tests/test-artifacts/hbase/src/main/groovy/org/apache/bigtop/itest/util/HBaseTestUtil.java

Modified: incubator/bigtop/branches/hadoop-0.22/bigtop-tests/test-artifacts/hbase/pom.xml
URL: http://svn.apache.org/viewvc/incubator/bigtop/branches/hadoop-0.22/bigtop-tests/test-artifacts/hbase/pom.xml?rev=1183122&r1=1183121&r2=1183122&view=diff
==============================================================================
--- incubator/bigtop/branches/hadoop-0.22/bigtop-tests/test-artifacts/hbase/pom.xml (original)
+++ incubator/bigtop/branches/hadoop-0.22/bigtop-tests/test-artifacts/hbase/pom.xml Thu Oct
13 21:51:59 2011
@@ -44,7 +44,7 @@
     <dependency>
       <groupId>org.apache.hbase</groupId>
       <artifactId>hbase</artifactId>
-      <version>0.90.5-SNAPSHOT</version>
+      <version>0.92.0-SNAPSHOT</version>
       <exclusions>
         <exclusion>
           <groupId>org.apache.hadoop</groupId>
@@ -55,7 +55,7 @@
     <dependency>
       <groupId>org.apache.hbase</groupId>
       <artifactId>hbase</artifactId>
-      <version>0.90.5-SNAPSHOT</version>
+      <version>0.92.0-SNAPSHOT</version>
       <type>test-jar</type>
       <exclusions>
         <exclusion>

Modified: incubator/bigtop/branches/hadoop-0.22/bigtop-tests/test-artifacts/hbase/src/main/groovy/org/apache/bigtop/itest/util/HBaseTestUtil.java
URL: http://svn.apache.org/viewvc/incubator/bigtop/branches/hadoop-0.22/bigtop-tests/test-artifacts/hbase/src/main/groovy/org/apache/bigtop/itest/util/HBaseTestUtil.java?rev=1183122&r1=1183121&r2=1183122&view=diff
==============================================================================
--- incubator/bigtop/branches/hadoop-0.22/bigtop-tests/test-artifacts/hbase/src/main/groovy/org/apache/bigtop/itest/util/HBaseTestUtil.java
(original)
+++ incubator/bigtop/branches/hadoop-0.22/bigtop-tests/test-artifacts/hbase/src/main/groovy/org/apache/bigtop/itest/util/HBaseTestUtil.java
Thu Oct 13 21:51:59 2011
@@ -37,6 +37,7 @@ import org.apache.hadoop.hbase.client.Sc
 import org.apache.hadoop.hbase.io.hfile.Compression;
 import org.apache.hadoop.hbase.io.hfile.HFile;
 import org.apache.hadoop.hbase.util.Bytes;
+import org.apache.hadoop.hbase.HBaseTestingUtility;
 
 public class HBaseTestUtil {
 
@@ -44,6 +45,8 @@ public class HBaseTestUtil {
   public static String COMPRESSION =
     Compression.Algorithm.NONE.getName();
 
+  private final static Configuration conf = new HBaseTestingUtility().getConfiguration();
+
   private static String getTestPrefix() {
     return String.valueOf(System.currentTimeMillis());
   }
@@ -83,8 +86,8 @@ public class HBaseTestUtil {
       byte[] family, byte[] qualifier,
       byte[] startKey, byte[] endKey, int numRows) throws IOException
   {
-    HFile.Writer writer = new HFile.Writer(fs, path, BLOCKSIZE, COMPRESSION,
-        KeyValue.KEY_COMPARATOR);
+    HFile.Writer writer = HFile.getWriterFactory(conf).createWriter(fs, path, BLOCKSIZE,
COMPRESSION,
+                                                                    KeyValue.KEY_COMPARATOR);
     long now = System.currentTimeMillis();
     try {
       // subtract 2 since iterateOnSplits doesn't include boundary keys



Mime
View raw message