[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hadoop-user
Subject:    Re: Jython WordCount.py example
From:       "Shannon -jj Behrens" <jjinux () gmail ! com>
Date:       2007-01-05 2:31:29
Message-ID: c41f67b90701041831g559d9eb0r7e9cfe979b39b49e () mail ! gmail ! com
[Download RAW message or body]

Done!

-jj

On 1/3/07, Doug Cutting <cutting@apache.org> wrote:
> Please submit a Jira issue for this.  Thanks!
>
> Doug
>
> Shannon -jj Behrens wrote:
> > 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/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic