Return-Path: Delivered-To: apmail-lucene-hadoop-user-archive@locus.apache.org Received: (qmail 56392 invoked from network); 2 Jan 2007 21:01:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jan 2007 21:01:17 -0000 Received: (qmail 66654 invoked by uid 500); 2 Jan 2007 21:01:22 -0000 Delivered-To: apmail-lucene-hadoop-user-archive@lucene.apache.org Received: (qmail 66633 invoked by uid 500); 2 Jan 2007 21:01:22 -0000 Mailing-List: contact hadoop-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-user@lucene.apache.org Delivered-To: mailing list hadoop-user@lucene.apache.org Received: (qmail 66624 invoked by uid 99); 2 Jan 2007 21:01:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 13:01:22 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jjinux@gmail.com designates 64.233.184.235 as permitted sender) Received: from [64.233.184.235] (HELO wr-out-0506.google.com) (64.233.184.235) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2007 13:01:13 -0800 Received: by wr-out-0506.google.com with SMTP id i28so513067wra for ; Tue, 02 Jan 2007 13:00:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Q/Du877AoWVjFtj1Uhdyf9Xbc4lkdga0BI4nTpwpb4qzWYMFQZtCCalTFCNi5MXshJngmg4SekxZCIn0QUMINziEKIggMLPZyU0ITcOGCRbwRshiZ3ejVJsn3HGCZ0feO+IMl2bvo9cg9unxCV8bojbrKuTy7MZ/at1jDztGdgA= Received: by 10.78.172.20 with SMTP id u20mr4717763hue.1167771651587; Tue, 02 Jan 2007 13:00:51 -0800 (PST) Received: by 10.78.179.5 with HTTP; Tue, 2 Jan 2007 13:00:51 -0800 (PST) Message-ID: Date: Tue, 2 Jan 2007 13:00:51 -0800 From: "Shannon -jj Behrens" To: hadoop-user@lucene.apache.org Subject: Jython WordCount.py example MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org I had a hard time getting the Jython WordCount.py example to work. The first problem was caused by changes to Java: cd ~/Desktop/hadoop-0.9.2/src/examples/python bash compile 1 ./jpywork/org/apache/hadoop/examples/getopt.java:268: as of release 1.4, 'assert' is a keyword, and may not be used as an identifier (try -source 1.3 or lower to use 'assert' as an identifier) if (frame.getglobal("__debug__").__nonzero__()) Py.assert(frame.getglobal("len").__call__(frame.getlocal(2))._eq(i$9)); To work around the problem, I updated the compile file. I added '--compileropts "-source 1.3"' to the jythonc call. Perhaps the underlying problem is Jython-specific, but at least there's a workaround for us. The next problem is specific to Ubuntu 6.10. jythonc requires Python 2.1 which is no longer easily obtainable. The .deb that fixes this is still in testing. You can get it from here in the meantime: http://debian.lcs.mit.edu/debian/pool/main/j/jython/jython_2.1.0-23_all.deb This .deb lets any version of cPython work. Happy Hacking! -jj -- http://jjinux.blogspot.com/