Return-Path: X-Original-To: apmail-tajo-dev-archive@minotaur.apache.org Delivered-To: apmail-tajo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 54E9E17A8D for ; Thu, 12 Mar 2015 23:41:00 +0000 (UTC) Received: (qmail 33211 invoked by uid 500); 12 Mar 2015 23:41:00 -0000 Delivered-To: apmail-tajo-dev-archive@tajo.apache.org Received: (qmail 33162 invoked by uid 500); 12 Mar 2015 23:41:00 -0000 Mailing-List: contact dev-help@tajo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tajo.apache.org Delivered-To: mailing list dev@tajo.apache.org Received: (qmail 33152 invoked by uid 99); 12 Mar 2015 23:41:00 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Mar 2015 23:41:00 +0000 Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id C807B1A02C0 for ; Thu, 12 Mar 2015 23:40:59 +0000 (UTC) Received: by mail-vc0-f174.google.com with SMTP id la4so6688855vcb.5 for ; Thu, 12 Mar 2015 16:40:59 -0700 (PDT) X-Received: by 10.52.52.136 with SMTP id t8mr49911306vdo.49.1426203659096; Thu, 12 Mar 2015 16:40:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.14.41 with HTTP; Thu, 12 Mar 2015 16:40:38 -0700 (PDT) In-Reply-To: References: From: Dongjoon Hyun Date: Fri, 13 Mar 2015 08:40:38 +0900 Message-ID: Subject: Re: [DISCUSSION] Portable remote client APIs To: "dev@tajo.apache.org" Content-Type: multipart/alternative; boundary=089e0115f0487a58c605111fea81 --089e0115f0487a58c605111fea81 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I give +1 to REST API, too. Best regards, Dongjoon. On Fri, Mar 13, 2015 at 8:34 AM, Hyunsik Choi wrote: > We seem to get a consent to use REST API. I'll wait for one more day, > and then we can decide this issue. > > Best regards, > Hyunsik > > On Thu, Mar 12, 2015 at 7:56 AM, Hyoungjun Kim wrote: > > Hi all, > > > > I give +1 to REST API. > > I think REST is more common. > > > > Warm regards, > > Hyoungjun > > 2015. 3. 12. =EC=98=A4=ED=9B=84 10:41=EC=97=90 "Jihun Kang" =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > > >> Hello All, > >> > >> I would give +1 to REST API Implementation. Even Protobuf and Thrift > give > >> flexibility and extensibility to programmers, but entry barriers for > these > >> frameworks are extremely high. Also, if we want to make another client > >> implementation for other programming languages, we need to figure out > that > >> these framework have code generator feature for that programming > language. > >> > >> 2015-03-12 20:18 GMT+09:00 Jaehwa Jung : > >> > >> > Hi guys > >> > > >> > +1 for Hyunsik's suggestion. > >> > > >> > REST API may be more efficient for code maintenance and various > clients > >> > implementation. > >> > > >> > Cheers > >> > Jaehwa > >> > +1 RESTful API for code maintenance > >> > > >> > -Jinho > >> > Best regards > >> > > >> > 2015-03-12 17:56 GMT+09:00 CharSyam : > >> > > >> > > +1 > >> > > > >> > > I also agree with hyunsik's suggesttion. > >> > > I think it is better to make language binding to use Rest API. > >> > > It will be more efficient and less effort :) > >> > > > >> > > 2015-03-12 17:38 GMT+09:00 Jihoon Son : > >> > > > >> > > > +1 for Hyunsik's suggestion. > >> > > > I totally agree with you. > >> > > > > >> > > > Warm regards, > >> > > > Jihoon > >> > > > 2015=EB=85=84 3=EC=9B=94 12=EC=9D=BC (=EB=AA=A9) =EC=98=A4=ED=9B= =84 5:35, Hyunsik Choi =EB=8B=98=EC=9D=B4 =EC=9E=91=EC= =84=B1: > >> > > > > >> > > > > Here is my suggestion. > >> > > > > > >> > > > > I prefer REST API. I think that it would be better than other > due > >> to > >> > > > > the following reasons: > >> > > > > > >> > > > > * No dependency - most of script languages do not need any > >> > dependency > >> > > > > for this approach. Also, C and C++ just needs json library for > this > >> > > > > approach. Please look at JSON for Modern C++ > >> > > > > (https://github.com/nlohmann/json). It just requires to includ= e > >> one > >> > > > > header and one source file. As a result, there is no dependenc= y > >> > > > > problem. > >> > > > > > >> > > > > * Portability - most of script languages basically support RE= ST > >> and > >> > > > > JSON. They don't need client implementation. They can just use > REST > >> > > > > and JSON features in order to access Tajo. If necessary, we ca= n > >> make > >> > > > > easily some helper libraries for other languages. > >> > > > > > >> > > > > * Secure - It is easy to provide the secure channel and > >> > > > > authentication method too. Basically, many HTTP API provides > HTTP > >> > over > >> > > > > SSL. > >> > > > > > >> > > > > Jihoon Kang already started REST API work. If others start to > >> develop > >> > > > > clients for other languages like C/C++ client over REST API > after > >> his > >> > > > > work, it would be best for us. > >> > > > > > >> > > > > Best regards, > >> > > > > Hyunsik > >> > > > > > >> > > > > On Thu, Mar 12, 2015 at 1:32 AM, Hyunsik Choi < > hyunsik@apache.org> > >> > > > wrote: > >> > > > > > Hi folks, > >> > > > > > > >> > > > > > Recently, there are three trials to add new remote client > APIs. > >> > > > > > > >> > > > > > * C/C++ Client over Thrift - https://issues.apache.org/ > >> > > > > jira/browse/TAJO-1264 > >> > > > > > * Add REST Client API - > >> > > > https://issues.apache.org/jira/browse/TAJO-1331 > >> > > > > > * Tajo Python Native Client - https://issues.apache.org/ > >> > > > > jira/browse/TAJO-1367 > >> > > > > > > >> > > > > > In some aspect, I'm very happy to discuss such an issue. I > >> haven't > >> > > > > > expected that we are discuss and vote for duplicated efforts= . > >> > > > > > > >> > > > > > BTW, it would be great if we do not spend our resource on > >> > duplicated > >> > > > > works. > >> > > > > > > >> > > > > > In order to rearrange this duplicated works, we need some > >> > discussion > >> > > > > > about their pros and cons. I hope that we consent our > direction > >> > after > >> > > > > > this discussion. Otherwise, we can call for a vote for the > >> > approach. > >> > > > > > > >> > > > > > Best regards, > >> > > > > > Hyunsik > >> > > > > > >> > > > > >> > > > >> > > >> > --089e0115f0487a58c605111fea81--