i did find out many Resolutions like:
1. Login to sandbox as root.
2. vi /usr/bin/pig
3. Replace the last line with the following line:
exec /usr/lib/pig/bin/pig -useHCatalog “$@”
however i was not able to login to sandbox as root using; username: root and password: hadoop, it didn’t work saying that username or password is wrong.