You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Shannon -jj Behrens (Commented) (JIRA)" <ji...@apache.org> on 2012/01/16 20:41:40 UTC

[jira] [Commented] (MAPREDUCE-634) Jython WordCount.py example fails with Java >= 1.4

    [ https://issues.apache.org/jira/browse/MAPREDUCE-634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187120#comment-13187120 ] 

Shannon -jj Behrens commented on MAPREDUCE-634:
-----------------------------------------------

> The rule is Java 1.6 and nothing lower. User-side issue, closing out.

That's funny.  I filed this way back in '07 ;)
                
> Jython WordCount.py example fails with Java >= 1.4
> --------------------------------------------------
>
>                 Key: MAPREDUCE-634
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-634
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: examples
>         Environment: Java versions >= 1.4.
>            Reporter: Shannon -jj Behrens
>            Priority: Minor
>
> I had a hard time getting the Jython WordCount.py example to work due to 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.

--
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