Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 09-28-2016 04:28 AM
When exuting the pig script in this tutorial I've encountered error as shown above. Any help is appreciated.
[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 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/admin/appcache/application_1475025935138_0008/container_1475025935138_000
Created 09-28-2016 04:56 AM
Resolved after following the below:
"You can try changing the data type of totmiles variable to double. Drop the table riskfactor from HIve and create it again with:
drop table riskfactor;
CREATE TABLE riskfactor (driverid string,events bigint,totmiles double,riskfactor float) STORED AS ORC;" Thanks to suggestion from @Michael Young and @mrizvi.
Created 09-28-2016 04:56 AM
Resolved after following the below:
"You can try changing the data type of totmiles variable to double. Drop the table riskfactor from HIve and create it again with:
drop table riskfactor;
CREATE TABLE riskfactor (driverid string,events bigint,totmiles double,riskfactor float) STORED AS ORC;" Thanks to suggestion from @Michael Young and @mrizvi.
Created 09-28-2016 06:19 PM
FYI: I've created a pull request on the docs for this. https://github.com/hortonworks/tutorials/pull/176