Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 24901 invoked from network); 14 Mar 2008 05:43:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2008 05:43:00 -0000 Received: (qmail 18997 invoked by uid 500); 14 Mar 2008 05:42:56 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 18965 invoked by uid 500); 14 Mar 2008 05:42:56 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 18956 invoked by uid 99); 14 Mar 2008 05:42:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2008 22:42:56 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2008 05:42:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4967D234C09B for ; Thu, 13 Mar 2008 22:41:24 -0700 (PDT) Message-ID: <1548501991.1205473284299.JavaMail.jira@brutus> Date: Thu, 13 Mar 2008 22:41:24 -0700 (PDT) From: "eric baldeschwieler (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-2429) The lowest level map-reduce APIs should be byte oriented MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-2429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578622#action_12578622 ] eric baldeschwieler commented on HADOOP-2429: --------------------------------------------- owen, runping, I disagree completely with the assumptions from which you reach your conclusions. I think you are not looking at the total system costs. This design ends up spewing java types everywhere. The fact of the matter is our average user is not using java to code. Even in Java we end up doing gymnastics to support standard types and it is making multi-language interoperability difficult and non-standard. Types end up polluting all of our containers too. This makes them non-interoperable. And after paying all this cost, we still end up compromising the integrity of the type based design, because one can not efficiently merge/sort if one must instantiate objects to do it, so we require the writing of byte based comparators. Yuck! I'm interested in suggestions for a compromise design that raises other languages to first order citizens in Hadoop and keeps us from having to do gymnastics to use even native java types. > The lowest level map-reduce APIs should be byte oriented > -------------------------------------------------------- > > Key: HADOOP-2429 > URL: https://issues.apache.org/jira/browse/HADOOP-2429 > Project: Hadoop Core > Issue Type: Improvement > Components: mapred > Reporter: eric baldeschwieler > > As discussed here: > https://issues.apache.org/jira/browse/HADOOP-1986#action_12551237 > The templates, serializers and other complexities that allow map-reduce to use arbitrary types complicate the design and lead to lots of object creates and other overhead that a byte oriented design would not suffer. I believe the lowest level implementation of hadoop map-reduce should have byte string oriented APIs (for keys and values). This API would be more performant, simpler and more easily cross language. > The existing API could be maintained as a thin layer on top of the leaner API. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.