Help req in Pig script!!

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  Seth Lyubich 1 year, 10 months ago.

  • Creator
    Topic
  • #23244

    dinesh karem
    Member

    Using the below small pigscript
    ” loading = load ‘NYSE-2000-2001.tsv’ using PigStorage(‘,’);
    generatecols = FOREACH loading GENERATE $0 as exchange, $1 as stock_symbol, $3 as date;
    Filtering = FILTER generatecols BY stock_symbol==’ASP';
    dump Filtering; ”
    Getting no error but getting 0 records in o/p, Hcatalog is not used, .xls file used, Guess some thing wrong in my filter.

    Could anyone please help !!
    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

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

  • Author
    Replies
  • #23316

    Seth Lyubich
    Keymaster

    Thanks for letting us know Dinesh.

    Collapse
    #23246

    dinesh karem
    Member

    Please ignore my above Query .. found my mistake

    Collapse
Viewing 2 replies - 1 through 2 (of 2 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.