You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Andrew Purtell <ap...@apache.org> on 2012/09/04 00:19:11 UTC
Re: Does HBase 0.92 Rest client supports coprocessor execution?
You are correct, it is not supported.
I think direct invocation of coprocessors is out of scope of the REST API,
because coprocessorExec is an arbitrary remote method call. That is the
domain of SOAP/WS. There is no WS API for HBase at this time (and none
planned that I know of).
On Thursday, August 30, 2012, anil gupta wrote:
> Hi All,
>
> I am running a HBase 0.92 cluster. I was trying to run the Aggregation
> coprocessor using HBase REST client api. When i ran the code i got the
> following error:
> java.lang.UnsupportedOperationException: coprocessorExec not implemented
> at
>
> org.apache.hadoop.hbase.rest.client.RemoteHTable.coprocessorExec(RemoteHTable.java:712)
> at
>
> com.intuit.ihub.hbase.poc.aggregation.client.AggregationClientRest.max(AggregationClientRest.java:101)
> at
> com.intuit.ihub.hbase.poc.rest.client.RestClient.main(RestClient.java:52)
>
> I also looked into the code and it seems like currently it's not possible
> to run coprocessor with REST client api of HBase 0.92. Right? Is it
> available in HBase0.94 ?
> Sorry, if my question sounds pretty obvious.
>
> --
> Thanks & Regards,
> Anil Gupta
>
--
Best regards,
- Andy
Problems worthy of attack prove their worth by hitting back. - Piet Hein
(via Tom White)
Re: Does HBase 0.92 Rest client supports coprocessor execution?
Posted by Anil Gupta <an...@gmail.com>.
Thanks for the response, Andrew.
After failure of running CP rest API, I figured out that when the client machine is directly connected to cluster, I can run hbase client code from any machine by providing the hbase conf in classpath. :)
Best Regards,
Anil
On Sep 3, 2012, at 3:19 PM, Andrew Purtell <ap...@apache.org> wrote:
> You are correct, it is not supported.
>
> I think direct invocation of coprocessors is out of scope of the REST API,
> because coprocessorExec is an arbitrary remote method call. That is the
> domain of SOAP/WS. There is no WS API for HBase at this time (and none
> planned that I know of).
>
> On Thursday, August 30, 2012, anil gupta wrote:
>
>> Hi All,
>>
>> I am running a HBase 0.92 cluster. I was trying to run the Aggregation
>> coprocessor using HBase REST client api. When i ran the code i got the
>> following error:
>> java.lang.UnsupportedOperationException: coprocessorExec not implemented
>> at
>>
>> org.apache.hadoop.hbase.rest.client.RemoteHTable.coprocessorExec(RemoteHTable.java:712)
>> at
>>
>> com.intuit.ihub.hbase.poc.aggregation.client.AggregationClientRest.max(AggregationClientRest.java:101)
>> at
>> com.intuit.ihub.hbase.poc.rest.client.RestClient.main(RestClient.java:52)
>>
>> I also looked into the code and it seems like currently it's not possible
>> to run coprocessor with REST client api of HBase 0.92. Right? Is it
>> available in HBase0.94 ?
>> Sorry, if my question sounds pretty obvious.
>>
>> --
>> Thanks & Regards,
>> Anil Gupta
>>
>
>
> --
> Best regards,
>
> - Andy
>
> Problems worthy of attack prove their worth by hitting back. - Piet Hein
> (via Tom White)