hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1455355 - /hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
Date Mon, 11 Mar 2013 22:55:38 GMT
Author: tedyu
Date: Mon Mar 11 22:55:38 2013
New Revision: 1455355

URL: http://svn.apache.org/r1455355
Log:
HBASE-8044 split/flush/compact/major_compact from hbase shell does not work for region key
with \x format (Tianying)


Modified:
    hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java

Modified: hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java?rev=1455355&r1=1455354&r2=1455355&view=diff
==============================================================================
--- hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
(original)
+++ hbase/trunk/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
Mon Mar 11 22:55:38 2013
@@ -1116,7 +1116,7 @@ public class HBaseAdmin implements Abort
    */
   public void closeRegion(final String regionname, final String serverName)
   throws IOException {
-    closeRegion(Bytes.toBytes(regionname), serverName);
+    closeRegion(Bytes.toBytesBinary(regionname), serverName);
   }
 
   /**
@@ -1234,7 +1234,7 @@ public class HBaseAdmin implements Abort
    */
   public void flush(final String tableNameOrRegionName)
   throws IOException, InterruptedException {
-    flush(Bytes.toBytes(tableNameOrRegionName));
+    flush(Bytes.toBytesBinary(tableNameOrRegionName));
   }
 
   /**
@@ -1303,7 +1303,7 @@ public class HBaseAdmin implements Abort
    */
   public void compact(final String tableNameOrRegionName)
   throws IOException, InterruptedException {
-    compact(Bytes.toBytes(tableNameOrRegionName));
+    compact(Bytes.toBytesBinary(tableNameOrRegionName));
   }
 
   /**
@@ -1330,7 +1330,7 @@ public class HBaseAdmin implements Abort
    */
   public void compact(String tableOrRegionName, String columnFamily)
     throws IOException,  InterruptedException {
-    compact(Bytes.toBytes(tableOrRegionName), Bytes.toBytes(columnFamily));
+    compact(Bytes.toBytesBinary(tableOrRegionName), Bytes.toBytes(columnFamily));
   }
 
   /**
@@ -1357,7 +1357,7 @@ public class HBaseAdmin implements Abort
    */
   public void majorCompact(final String tableNameOrRegionName)
   throws IOException, InterruptedException {
-    majorCompact(Bytes.toBytes(tableNameOrRegionName));
+    majorCompact(Bytes.toBytesBinary(tableNameOrRegionName));
   }
 
   /**
@@ -1664,7 +1664,7 @@ public class HBaseAdmin implements Abort
    */
   public void split(final String tableNameOrRegionName)
   throws IOException, InterruptedException {
-    split(Bytes.toBytes(tableNameOrRegionName));
+    split(Bytes.toBytesBinary(tableNameOrRegionName));
   }
 
   /**
@@ -1682,7 +1682,7 @@ public class HBaseAdmin implements Abort
 
   public void split(final String tableNameOrRegionName,
     final String splitPoint) throws IOException, InterruptedException {
-    split(Bytes.toBytes(tableNameOrRegionName), Bytes.toBytes(splitPoint));
+    split(Bytes.toBytesBinary(tableNameOrRegionName), Bytes.toBytesBinary(splitPoint));
   }
 
   /**



Mime
View raw message