For me the following did the work:
1. Go to Ambari/WebHCat and change the property templeton.hive.properties to “hive.metastore.local=false,hive.metastore.uris=thrift://<YOUR_METASTORE_HOST>:9083,hive.metastore.sasl.enabled=false”. Be sure to remove all spaces in the property’s value! I guess, that spaces cause some command-line execution to fail – the property value after the space will be interpreted as a next argument. In this case as a class name. Restart WebHCat and try to execute your Pig-script.
2. Add slf4j-api jar to hdfs:///apps/webhcat/hive.tar.gz to get rid of the first error. I guess it’s not critical, to get the Pig-scripts to work.