You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Shannon -jj Behrens (JIRA)" <ji...@apache.org> on 2007/01/05 03:31:27 UTC
[jira] Created: (HADOOP-859) Jython WordCount.py example fails with
Java >= 1.4
Jython WordCount.py example fails with Java >= 1.4
--------------------------------------------------
Key: HADOOP-859
URL: https://issues.apache.org/jira/browse/HADOOP-859
Project: Hadoop
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 contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira