Pig error: failed to read file from hdfs

Recently I took HDPCD certification and I faced issue with Pig error.

The issue is when I was running Pig script, I was getting error similar to below error:
Failed to read data from “hdfs://namenode1:8020/bla/test/malware.zip.seq”

Failed to produce result in “hdfs://namenode1:8020/tmp/temp-362821719/tmp- 171792164”

I checked permissions of the file. It has 777 permissions on the user executing the script. When I do a DUMP by running individual steps of pig script in grunt, it was working fine. But when I run it as a script with STORE at the end of the script, it started failing with above error.

What would you suggest to avoid these kind of error. Please suggest

Thank you in advance.