[ 
https://issues.apache.org/jira/browse/HBASE-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717723#action_12717723
 ] 

stack commented on HBASE-1363:
------------------------------

Thanks Lars.  Here is one way to get table of binary keys:

{code}
Index: src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java
===================================================================
--- src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java (revision 
782878)
+++ src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java (working copy)
@@ -586,7 +586,7 @@
     byte [] b = new byte[10];
     int d = Math.abs(number);
     for (int i = b.length - 1; i >= 0; i--) {
-      b[i] = (byte)((d % 10) + '0');
+      b[i] = (byte)((d % 10));
       d /= 10;
     }
     return b;
{code}

This has PerformanceEvaluation write tables with binary keys.  To run PE, do: 
./bin/hbase org.apache.hadoop.hbase.PerformanceEvaluation  This dumps out 
options.  Do something like option 'sequentialWrite 1' as an option.  Should 
make a table of 5 or 6 regions.  Should be good to experiment with.

> Can't use 'close region' when keys are binary
> ---------------------------------------------
>
>                 Key: HBASE-1363
>                 URL: https://issues.apache.org/jira/browse/HBASE-1363
>             Project: Hadoop HBase
>          Issue Type: Sub-task
>    Affects Versions: 0.20.0
>            Reporter: ryan rawson
>             Fix For: 0.20.0
>
>
> maybe we should allow you to use an encoded name to close a region, or use 
> binary escaping.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to