Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How can I solve this in pig: WARNING: Use "yarn jar" to launch YARN applications.

avatar

job-1474865109830-0012-logs.txt

I have met this problem when I using pig with tutorial

http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/#...

it tell me that WARNING: Use "yarn jar" to launch YARN applications.

and more error follows up

how can I solve it?

thanks!

1 ACCEPTED SOLUTION

avatar

@Atrem Ervits

Yes, I have load -useHCatalog

I fix the error and can show the result,

but it still have warning "Use "yarn jar" to launch YARN applications."

View solution in original post

5 REPLIES 5

avatar

avatar
Master Mentor

Did you execute the pig job with -useHCatalog? It requires to load hcatalog libraries.

avatar

@Atrem Ervits

Yes, I have load -useHCatalog

I fix the error and can show the result,

but it still have warning "Use "yarn jar" to launch YARN applications."

avatar
Expert Contributor

@WeiHsiang Tseng,

Hi,

I'm facing the same problem. did you resolve it? Thanks.

avatar
New Contributor

the problem is that the column "totmiles" in table riskfactor is of type BIGINT while the input for it coming from the "drivermileage" table is of type DOUBLE. So you either have to change the type of the "totmiles" column in "drivermileage" or in "riskfactor". Another option might be a simple cast from DOUBLE to BIGINT. I just recreated the "riskfactor" table using DOUBLE as type for "totmileage"