Sandbox – Pig Basic Tutorial example is nbot working

to create new topics or reply. | New User Registration

This topic contains 62 replies, has 42 voices, and was last updated by  Rajeev Trikha 6 days, 5 hours ago.

  • Creator
  • #17798


    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 (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 – 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!


Viewing 2 replies - 61 through 62 (of 62 total)

You must be to reply to this topic. | Create Account

  • Author
  • #17902


    Hi Sankar,

    I could not replicate your problem. I have noticed that sometimes VirtualBox can import the VM incorrectly, you could try re-importing the vm, while I continue to try and replicate your issue.




    Hi Sankar,

    Thanks for trying the Hortonworks Sandbox,

    I am looking into why this might be happening and what to do about it. I will get back to you as soon as I have something definitive.


Viewing 2 replies - 61 through 62 (of 62 total)
Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.