Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6955EDD85 for ; Mon, 3 Sep 2012 22:33:14 +0000 (UTC) Received: (qmail 22613 invoked by uid 500); 3 Sep 2012 22:33:12 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 22564 invoked by uid 500); 3 Sep 2012 22:33:12 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 22555 invoked by uid 99); 3 Sep 2012 22:33:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 22:33:12 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anilgupta84@gmail.com designates 209.85.160.41 as permitted sender) Received: from [209.85.160.41] (HELO mail-pb0-f41.google.com) (209.85.160.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 22:33:04 +0000 Received: by pbbro12 with SMTP id ro12so9095102pbb.14 for ; Mon, 03 Sep 2012 15:32:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=mkt7MgsaryNYM9dWWx+OHeC6zvhxk6FaWa8eFAiQ9qA=; b=j23nuqU/yWFsknV2mby+JJYkOr1uzUhHRfIDiMob7YqsPBxs7XtwI/zE+rnqzSrUNC bUCprd0aMN4jOsWDudmqhXOBpaT/mrLRu0Ab70HQgKgPz0/+i8LUTfs5mzgriUlIer1l swvSVxMViZAXja1JFlCyDj2pqqRqy7O9zDOXggw3g7F9JRGA/yKciMuwtpwnwEmF6lmN JyMbcGKeFo7IGBbs9t/dj2QNpRra7kV+bM8/EwBiH9zURTvuWWa5/xsNTKwvJH5GbOhz JoZM3TVI4lm/Xs+Oev8UdOdMjcf/dPOlHGQdMKUAQ3PpgYZjNs8Ha3OGKc/6SQINV593 Yl+A== Received: by 10.68.212.161 with SMTP id nl1mr41387444pbc.84.1346711564195; Mon, 03 Sep 2012 15:32:44 -0700 (PDT) Received: from [192.168.1.130] (cpe-72-129-67-128.socal.res.rr.com. [72.129.67.128]) by mx.google.com with ESMTPS id sv8sm4671372pbc.7.2012.09.03.15.32.40 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 03 Sep 2012 15:32:41 -0700 (PDT) Subject: Re: Does HBase 0.92 Rest client supports coprocessor execution? References: From: Anil Gupta Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (9B206) In-Reply-To: Message-Id: Date: Mon, 3 Sep 2012 15:32:38 -0700 To: "user@hbase.apache.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the response, Andrew. After failure of running CP rest API, I figured out that when the client mac= hine is directly connected to cluster, I can run hbase client code from any m= achine by providing the hbase conf in classpath. :) Best Regards, Anil On Sep 3, 2012, at 3:19 PM, Andrew Purtell wrote: > You are correct, it is not supported. >=20 > 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). >=20 > On Thursday, August 30, 2012, anil gupta wrote: >=20 >> Hi All, >>=20 >> 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 >>=20 >> org.apache.hadoop.hbase.rest.client.RemoteHTable.coprocessorExec(RemoteHT= able.java:712) >> at >>=20 >> com.intuit.ihub.hbase.poc.aggregation.client.AggregationClientRest.max(Ag= gregationClientRest.java:101) >> at >> com.intuit.ihub.hbase.poc.rest.client.RestClient.main(RestClient.java:52)= >>=20 >> 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. >>=20 >> -- >> Thanks & Regards, >> Anil Gupta >>=20 >=20 >=20 > --=20 > Best regards, >=20 > - Andy >=20 > Problems worthy of attack prove their worth by hitting back. - Piet Hein > (via Tom White)