Aug 09 2014 11:02 AM
Please note the log in the stack trace :
Caused by: java.net.ConnectException: Call to localhost/127.0.0.1:8020 failed on connection exception: java.net.ConnectException: Connection refused
The pig instance is trying to connect to your hadoop services and is not able to, hence your pig script is not working.
Looks like this is an older question, hope this is fixed.