Sandbox – Pig Basic Tutorial example is nbot working

to create new topics or reply. | New User Registration

This topic contains 63 replies, has 43 voices, and was last updated by  N U M 1 week, 2 days ago.

  • Creator
    Topic
  • #17798

    Sankarg
    Member

    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 3 replies - 61 through 63 (of 63 total)

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

  • Author
    Replies
  • #17959

    Sankarg
    Member

    I removed all the lines in the pig code example except the very first line and tried to run the syntax check and i could noticed the message that Detected Tx hang in the virtual box.

    Collapse
    #17902

    tedr
    Member

    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.

    Thanks,
    Ted.

    Collapse
    #17884

    tedr
    Moderator

    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.

    Thanks,
    Ted.

    Collapse
Viewing 3 replies - 61 through 63 (of 63 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.