[ https://issues.apache.org/jira/browse/MAPREDUCE-634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harsh J resolved MAPREDUCE-634. ------------------------------- Resolution: Not A Problem The rule is Java 1.6 and nothing lower. User-side issue, closing out. > 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