I was receiving the error for newly downloaded HDP Sandbox (downloaded today) when trying to execute tutorial1, check syntax, explain.
(using Mac OSX 10.6.8, Virtualbox 4.2.4)
I used terminal and ssh’d into the VM (using IP from url and root/hadoop as auth)
I applied the fix to /usr/bin/pig (to add -useHCatalog to last line)
It worked, as far as I can tell