Tried the same sandbox and ran into the very same problem, on web based hue and command line pig at shell level. Using
-useHCatalog
didn’t help. The pig process cannot find several jar files:
ls: cannot access /usr/hdp/2.2.0.0-913/hive/lib/slf4j-api-*.jar: No such file or directory ls: cannot access /usr/hdp/2.2.0.0-913/hive/lib/commons-lang3-*.jar: No such file or directory ls: cannot access /usr/hdp/2.2.0.0-913/hive-hcatalog/lib/*hbase-storage-handler-*.jar: No such file or directory
Went to /usr/hdp/2.2.0.0-913/hive/lib and fixed two of them by seeting symlinks:
ln -s /usr/hdp/2.2.0.0-913/knox/dep/commons-lang3-3.1.jar ln -s /usr/hdp/2.2.0.0-913/knox/dep/slf4j-api-1.6.6.jar
pig script is still missing the storage-handler jar and therefor cannot load the class “org.apache.hcatalog.pig.HCatLoader”.
=> Where can I download that jar?