Support Questions

Find answers, ask questions, and share your expertise

pig -useHCatalog not loading all the jars required

avatar

In latest practice exam in AWS, pig -useHCatalog not loading all the jars required. I am trying to fix these by adding classpath or using REGISTER. My question here is do we need to deal/spend time with such environmental issues in real exam?. Other day when I started AWS instance, services were not running at first instance. @rich helped me to address this.

1 ACCEPTED SOLUTION

avatar
Guru

Can you share the error? I am guessing it is either not an error (there is a warning you can ignore), or you are using the wrong package name for HCatLoader. The class name to use is:

org.apache.hive.hcatalog.pig.HCatLoader

Let me know if you get it to work.

View solution in original post

12 REPLIES 12

avatar

I have used org.apache.hive.hcatalog.pig.HCatLoader in practice exam instance still getting 3 errors for missing jar files. How to fix to continue to work on that instance?

avatar
Guru

What errors are you getting? And what is the command you are using to run the code? Perhaps you could share your code also.

Thanks.

avatar

@bhaskaran periasamy

You must use the correct package in you Pig script.

data = LOAD 'db.table' using org.apache.hive.hcatalog.pig.HCatLoader();