Return-Path: X-Original-To: apmail-hama-dev-archive@www.apache.org Delivered-To: apmail-hama-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 22530DBEF for ; Wed, 1 Aug 2012 10:18:06 +0000 (UTC) Received: (qmail 59363 invoked by uid 500); 1 Aug 2012 10:18:06 -0000 Delivered-To: apmail-hama-dev-archive@hama.apache.org Received: (qmail 58893 invoked by uid 500); 1 Aug 2012 10:18:05 -0000 Mailing-List: contact dev-help@hama.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hama.apache.org Delivered-To: mailing list dev@hama.apache.org Received: (qmail 58637 invoked by uid 500); 1 Aug 2012 10:18:04 -0000 Delivered-To: apmail-incubator-hama-dev@incubator.apache.org Received: (qmail 58620 invoked by uid 99); 1 Aug 2012 10:18:03 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2012 10:18:03 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 1F26D142839 for ; Wed, 1 Aug 2012 10:18:03 +0000 (UTC) Date: Wed, 1 Aug 2012 10:18:03 +0000 (UTC) From: "Edward J. Yoon (JIRA)" To: hama-dev@incubator.apache.org Message-ID: <1287948295.66.1343816283131.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1494190097.2241.1341385954964.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HAMA-601) Hama Streaming MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HAMA-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426493#comment-13426493 ] Edward J. Yoon commented on HAMA-601: ------------------------------------- Oh, thanks I see. > Hama Streaming > -------------- > > Key: HAMA-601 > URL: https://issues.apache.org/jira/browse/HAMA-601 > Project: Hama > Issue Type: New Feature > Components: bsp core, messaging > Affects Versions: 0.6.0 > Reporter: Thomas Jungblut > Fix For: 0.6.0 > > > We can also do a Streaming job to allow other languages to use Hama's BSP API. > Basically you fork a new process in the BSP method, then set a inputstream for the process which it can read very simple. > Then an outputstream from the childprocess can be read to give it following abilities: > - get a received message > - send a new message > - sync > - read a line from input > - write to output > - reset the input to reread > Those actions must have a constant prefix, for example send a message could look like this: > %SEND_MESSAGE%=this is the message > or sync: > $SYNC$= > The logic behind it is that we can simply split in Java code by "=" and the lefthand side is the action and the righthandside is the value of this action. > Between the peers the messages are Text, which has some overhead but is easier to implement and the communication between the BSP task and the forked process is based on text/strings anyway. > This time I do not advise to copy the whole streaming from Hadoop itself. However the parts that repacks the jar with needed execution scripts and the option handling seems good to reuse. > The input- and outputstream handling must be written from scratch because we want to take actions into account. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira