Quantcast
Channel: Hortonworks » All Topics
Viewing all articles
Browse latest Browse all 5121

Sandbox – Pig Basic Tutorial example is nbot working

$
0
0

Replies: 55

Hi, I just tried the following pig Basic Tutorial which is not working

a = LOAD ‘nyse_stocks’ USING org.apache.hcatalog.pig.HCatLoader();
b = FILTER a BY stock_symbol == ‘IBM';
c = group b all;
d = FOREACH c GENERATE AVG(b.stock_volume);
dump d;

when i tried the syntax check, the following logs captured.

013-03-17 14:35:28,456 [main] INFO org.apache.pig.Main – Apache Pig version 0.10.1.21 (rexported) compiled Jan 10 2013, 04:00:42
2013-03-17 14:35:28,459 [main] INFO org.apache.pig.Main – Logging error messages to: /home/sandbox/hue/pig_1363556128447.log
2013-03-17 14:35:41,945 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine – Connecting to hadoop file system at: file:///
2013-03-17 14:35:45,555 [main] ERROR org.apache.pig.tools.grunt.Grunt – ERROR 1070: Could not resolve org.apache.hcatalog.pig.HCatLoader using imports: [, org.apache.pig.builtin., org.apache.pig.impl.builtin.]
Details at logfile: /home/sandbox/hue/pig_1363556128447.log

please do the needful to resolve this issue. Thank you!

Regards,
Sankar


Viewing all articles
Browse latest Browse all 5121

Trending Articles