Please refer the below videos to learn about running pig queries on Hue:
Hope this helps. Let me know if you still face any issue in following the reference video.
I checked, PIG editor having issue . I could not able to process any script.
All script has been tested on command prompt. Only issue in HUE editor where i can able to save script but not able to run.