Python UDF for Apache Pig failing
The problem was in format
. Replacing it with old-style %
formatting allowed the script to complete.
Since this is homework I won't give you the full answer but I would suggest that you look carefully at your outputSchema and review this thread.