Looking at your code, I see indentation mistakes that can be the source of the issue (although it can be related to your post and not the original code).
However, you can see a more detailed error stack from two sources: - Pig logs, usually in a text file (ex: pig_1388770791476.log); - Hadoop job tracker: by clicking on the related job and then on the killed task, you can see errors and the corresponding stack.