Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # user >> Coreprocessor always scan the whole table.


Copy link to this message
-
Coreprocessor always scan the whole table.
Hello,

We use HBase core processor endpoint  to process realtime data. But when I use coreprocessorExec method to scan table and pass startRow and endRow. It always scan all table instead of the result between the startRow and endRow.

my code.

results = table.coprocessorExec(IEndPoint_SA.class,  startrow, endrow,
   new Batch.Call<IEndPoint_SA,Hashtable<String,Hashtable>>() {
     public Hashtable<String,Hashtable> call(IEndPoint_SA instance)throws IOException{
     Hashtable<String,Hashtable> s = null;
       try {
s=instance.GetList();
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
       return s;
     }
   });

Best Regards / 商祺
郭伟 Guo Wei
-----------------------------------------------------
+
ramkrishna vasudevan 2013-04-19, 10:01
+
Ted Yu 2013-04-19, 10:01
+
GuoWei 2013-04-19, 11:58
+
Ted Yu 2013-04-19, 12:59
+
Gary Helmling 2013-04-19, 16:17
+
GuoWei 2013-04-20, 05:30
+
GuoWei 2013-04-19, 14:24
+
Jean-Marc Spaggiari 2013-04-19, 12:12
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB