Re: Coprocessors on specific servers

2012-06-28 Thread Mohammad Tariq
Thank you guys for the valuable inputs. Regards,     Mohammad Tariq On Thu, Jun 28, 2012 at 10:27 AM, Lars George wrote: > Yes exactly, this plus what Mohammad says, use the internal scanner to get > just the data from the region once you are in the coprocessor code. There is > an example of

Re: Coprocessors on specific servers

2012-06-27 Thread Lars George
Yes exactly, this plus what Mohammad says, use the internal scanner to get just the data from the region once you are in the coprocessor code. There is an example of that in the book as well, here the online repo: https://github.com/larsgeorge/hbase-book/blob/master/ch04/src/main/java/coprocesso

Re: Coprocessors on specific servers

2012-06-27 Thread fding hbase
HTable api document shows: Map coprocessorExec( Class protocol, byte[] startKey, byte[] endKey, Batch.Call callable) throws IOException, Throwable; startKey && endKey bounds the region of your interest. On Thu, Jun 28, 2012 at 5:43 AM, Mohammad Tariq wrote: > Aman, Lars, > >

Re: Coprocessors on specific servers

2012-06-27 Thread Mohammad Tariq
Would it be useful to use InternalScanner in such a scenario?? Regards,     Mohammad Tariq On Thu, Jun 28, 2012 at 3:13 AM, Mohammad Tariq wrote: > Aman, Lars, > >              If I already know in advance that a particular region > holds the data of my interest, then how can I use Coprocessor

Re: Coprocessors on specific servers

2012-06-27 Thread Mohammad Tariq
Aman, Lars, If I already know in advance that a particular region holds the data of my interest, then how can I use Coprocessor to operate on that region only and not on all the regions of a particular table??Thank you. Regards,     Mohammad Tariq On Wed, Jun 27, 2012 at 11:57 PM,

Re: Coprocessors on specific servers

2012-06-27 Thread Lars George
Hi Mohammad, Not sure I follow. :( Coprocessor is not MapReduce. MapReduce already takes care to run your code local to the data. Coprocessors can be seen like lightweight Map-only MapReduce job. You need to share a few more details for us to be able to help. Thanks, Lars On Jun 26, 2012, a

Re: Coprocessors on specific servers

2012-06-27 Thread Amandeep Khurana
Mohammad, Can you describe what you are trying to do a little more? Is this a endpoint coprocessor you are trying to build? What is the functionality it'll provide? -Amandeep On Tue, Jun 26, 2012 at 12:44 PM, Mohammad Tariq wrote: > Hello Lars, > >Thank you so much for the quick respon

Re: Coprocessors on specific servers

2012-06-26 Thread Mohammad Tariq
Hello Lars, Thank you so much for the quick response.Actually, I want to run my MapReduce jobs on a region that contains a specific set of data. Regards,     Mohammad Tariq On Tue, Jun 26, 2012 at 9:18 PM, Lars George wrote: > Hi Mohammad, > > The code runs on the server which is openi

Re: Coprocessors on specific servers

2012-06-26 Thread Lars George
Hi Mohammad, The code runs on the server which is opening the region. It sounds to me that this is not what you want and that you need to have access to some sort of resources only available on one specific server? Because if that is not the case, then you are simply using the coprocessors the

Coprocessors on specific servers

2012-06-26 Thread Mohammad Tariq
Hello list, Is it possible to use Coprocessors on some specific regionservers instead of a per-region basis??As per my understanding a coprocessor allows us to run the code directly on each region server.Please correct me if I am wrong.Many thanks. Please correct me if I am wrong. Regard