Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 10579 invoked from network); 26 Feb 2007 03:56:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2007 03:56:28 -0000 Received: (qmail 81111 invoked by uid 500); 26 Feb 2007 03:56:36 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 80965 invoked by uid 500); 26 Feb 2007 03:56:35 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 80956 invoked by uid 99); 26 Feb 2007 03:56:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Feb 2007 19:56:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Feb 2007 19:56:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C038F714046 for ; Sun, 25 Feb 2007 19:56:05 -0800 (PST) Message-ID: <20221812.1172462165785.JavaMail.jira@brutus> Date: Sun, 25 Feb 2007 19:56:05 -0800 (PST) From: "Milind Bhandarkar (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-941) Make Hadoop Record I/O Easier to use outside Hadoop In-Reply-To: <20950974.1169845549509.JavaMail.jira@brutus> 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-941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Milind Bhandarkar updated HADOOP-941: ------------------------------------- Comment: was deleted > Make Hadoop Record I/O Easier to use outside Hadoop > --------------------------------------------------- > > Key: HADOOP-941 > URL: https://issues.apache.org/jira/browse/HADOOP-941 > Project: Hadoop > Issue Type: Improvement > Components: record > Affects Versions: 0.10.1 > Environment: All > Reporter: Milind Bhandarkar > Assigned To: Milind Bhandarkar > Attachments: jute-patch.txt > > > Hadoop record I/O can be used effectively outside of Hadoop. It would increase its utility if developers can use it without having to import hadoop classes, or having to depend on Hadoop jars. Following changes to the current translator and runtime are proposed. > Proposed Changes: > 1. Use java.lang.String as a native type for ustring (instead of Text.) > 2. Provide a Buffer class as a native Java type for buffer (instead of BytesWritable), so that later BytesWritable could be implemented as following DDL: > module org.apache.hadoop.io { > record BytesWritable { > buffer value; > } > } > 3. Member names in generated classes should not have prefixes 'm' before their names. In the above example, the private member name would be 'value' not 'mvalue' as it is done now. > 4. Convert getters and setters to have CamelCase. e.g. in the above example the getter will be: > public Buffer getValue(); > 5. Provide a 'swiggable' C binding, so that processing the generated C code with swig allows it to be used in scripting languages such as Python and Perl. > 6. The default --language="java" target would generate class code for records that would not have Hadoop dependency on WritableComparable interface, but instead would have "implements Record, Comparable". (i.e. It will not have write() and readFields() methods.) An additional option "--writable" will need to be specified on rcc commandline to generate classes that "implements Record, WritableComparable". > 7. Optimize generated write() and readFields() methods, so that they do not have to create BinaryOutputArchive or BinaryInputArchive every time these methods are called on a record. > 8. Implement ByteInStream and ByteOutStream for C++ runtime, as they will be needed for using Hadoop Record I/O with forthcoming C++ MapReduce framework (currently, only FileStreams are provided.) > 9. Generate clone() methods for records in Java i.e. the generated classes should implement Cloneable. > 10. As part of Hadoop build process, produce a tar bundle for Record I/O alone. This tar bundle will contain the translator classes and ant task (lib/rcc.jar), translator script (bin/rcc), Java runtime (recordio.jar) that includes org.apache.hadoop.record.*, sources for the java runtime (src/java), and c/c++ runtime sources with Makefiles (src/c++, src/c). > 11. Make generated Java codes for maps and vectors use Java generics. > These are the proposed user-visible changes. Internally, the translator will be restructured so that it is easier to plug-in translators for different targets. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.