Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Error PIG practice example

Error PIG practice example

New Contributor

Hi There,

I am practicing the PIG example, i have copied the code from the below link

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

and got the below error: could you please help me

2017-02-14 22:02:36,221 [main] INFO hive.metastore - Connected to metastore.

 2017-02-14 22:02:36,808 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 0:  
 <file script.pig, line 9, column 0> Output Location Validation Failed for: 'riskfactor More info to follow: 
 Pig 'double' type in column 2(0-based) cannot map to HCat 'BIGINT'type.  Target filed must be of HCat type {DOUBLE} 
 Details at logfile: /hadoop/yarn/local/usercache/maria_dev/appcache/application_1487106608010_0007/container_1487106608010_0007_01_000002/pig_1487109743097.log
1 REPLY 1

Re: Error PIG practice example

Mentor

Try approach in the following thread until we fix the tutorial https://community.hortonworks.com/questions/74454/bug-in-lab-3-pig-risk-factor-analysis.html

Don't have an account?
Coming from Hortonworks? Activate your account here