Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-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 14DFC9EBA for ; Sun, 4 Mar 2012 10:50:10 +0000 (UTC) Received: (qmail 65574 invoked by uid 500); 4 Mar 2012 10:50:06 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 65501 invoked by uid 500); 4 Mar 2012 10:50:06 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 65482 invoked by uid 99); 4 Mar 2012 10:50:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2012 10:50:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of absoftinc@gmail.com designates 209.85.161.176 as permitted sender) Received: from [209.85.161.176] (HELO mail-gx0-f176.google.com) (209.85.161.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2012 10:49:58 +0000 Received: by ggcs6 with SMTP id s6so1684900ggc.35 for ; Sun, 04 Mar 2012 02:49:37 -0800 (PST) Received-SPF: pass (google.com: domain of absoftinc@gmail.com designates 10.236.161.201 as permitted sender) client-ip=10.236.161.201; Authentication-Results: mr.google.com; spf=pass (google.com: domain of absoftinc@gmail.com designates 10.236.161.201 as permitted sender) smtp.mail=absoftinc@gmail.com; dkim=pass header.i=absoftinc@gmail.com Received: from mr.google.com ([10.236.161.201]) by 10.236.161.201 with SMTP id w49mr21600193yhk.76.1330858177321 (num_hops = 1); Sun, 04 Mar 2012 02:49:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=TBbYH2ju3PPd2gzEaByhCs4WulXWQ6y9+UCUrSkOzYg=; b=aGTjYziLz1vGru7jZjYPCuqk27XuwT4Rlv9U0LURru12ynKfHYxgfhy/AUyBpuV3r1 AU0+8YAmrrZg12oxpBLq3LbHrJJ/HVaEyORXQepk5Va3DkwecfOyzv1k8RPJ0+hZ6dSW wkOYxGQVXFte/QAHa5xcnSDNLipPuwGgBvr1VZmLhGFvFeKKTTJeF0FCutxkTp6a01KK cvRj4I15dK4tHfbCjzRZvh6foByak+DZLIH5HvvAp3Mqbh3cZ/rbanSzhABoN+T3t1Np SMDD93PkMGkREzN162hPiAPJQuuyVKuianvBYjjL4geWNDhCpsreHNkr2UTAG3m8kdax hg5A== Received: by 10.236.161.201 with SMTP id w49mr17151916yhk.76.1330858177272; Sun, 04 Mar 2012 02:49:37 -0800 (PST) Received: from [192.168.1.66] (99-32-185-83.lightspeed.tukrga.sbcglobal.net. [99.32.185.83]) by mx.google.com with ESMTPS id v21sm30514129yhk.3.2012.03.04.02.49.35 (version=SSLv3 cipher=OTHER); Sun, 04 Mar 2012 02:49:36 -0800 (PST) Message-ID: <4F5348BD.4000407@gmail.com> Date: Sun, 04 Mar 2012 05:49:33 -0500 From: Gopal User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: common-user@hadoop.apache.org Subject: Re: How does Hadoop compile the program written in language other than Java ? References: <593B0552-D007-453D-A3A8-B10288638E50@123.org> In-Reply-To: <593B0552-D007-453D-A3A8-B10288638E50@123.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 3/4/2012 5:44 AM, Kai Voigt wrote: > Hi, > > please read http://developer.yahoo.com/hadoop/tutorial/module4.html#streaming and http://developer.yahoo.com/hadoop/tutorial/module4.html#streaming for more explanation and examples. > > Kai > > Am 04.03.2012 um 16:10 schrieb Lac Trung: > >> Can you give one or some examples about this, Kai ? >> I haven't understood how Hadoop run a mapreduce program in other language :D >> >> Vào 02:21 Ngày 04 tháng 3 năm 2012, Kai Voigt đã viết: >> >>> Hi, >>> >>> the streaming API doesn't compile the streaming scripts. >>> >>> The PHP/Perl/Python/Ruby scripts you create as mapper and reducer will be >>> called as external programs. >>> >>> The input key/value pairs will be send to your scripts as stdin, and the >>> output will be collected from their stdout. >>> >>> So, no compilation, the scripts will just be executed. >>> >>> Kai >>> >>> Am 04.03.2012 um 15:42 schrieb Lac Trung: >>> >>>> Hi everyone ! >>>> >>>> Hadoop is written in Java, so mapreduce programs are written in Java, >>> too. >>>> But Hadoop provides an API to MapReduce that allows you to write your map >>>> and reduce functions in languages other than Java (ex. Python), called >>>> Hadoop Streaming. >>>> I read the guide of Hadoop Streaming in >>>> here< >>> http://www.hadoop.apache.org/common/docs/r0.15.2/streaming.html#More+usage+examples >>>> but >>>> I haven't seen any paragraph that write about converting language to >>> Java. >>>> Can anybody tell me how Hadoop compile the program written in language >>>> other than Java. >>>> >>>> Thank you ! >>>> -- >>>> Lac Trung >>> -- >>> Kai Voigt >>> k@123.org >>> >>> >>> >>> >>> >> >> -- >> Lạc Trung >> 20083535 Its nothing out of ordinary. The java routines written for your specific language ( Jruby, Jython ) etc. will interpret the code and run it. No different from how Perl or Php work. Thanks