简体   繁体   中英

Pig Script error

When I try to execute the below Pig script in my cloudera VM I am getting following error

grunt> sta1 = LOAD 'hdfs://localhost.localdomain:8020/user/cloudera/movies_data.csv' USING
              PigStorage(',') AS (sno:int, moviename:chararray, year:int, rating:float, collect:int);

2014-10-05 07:34:19,670 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1070: Could not resolve pigstorage using imports: [, org.apache.pig.builtin., org.apache.pig.impl.builtin.] Details at logfile: /home/cloudera/pig_1412519459490.log

This error is because of the delimiter symbol doesn't match the PigStorage(',') in the .csv file in the hdfs. Make sure the corresponding .jar(macros) files are embedded in to the pig.

-Dpig.additional.jars使用此参数添加运行pig所需的jar。

检查您的Cloudera Manager是否从VM浏览器启动。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM