1
votes

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

3
This error is because of PigStorage(','), i think when you loaded the dataset you might have given small caps for p and s in PigStorage(',')Surender Raja

3 Answers

2
votes

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.

0
votes

-Dpig.additional.jars use this argument to add the jars required for pig to run.

0
votes

Check if your Cloudera Manager is up from the VM Browser.