Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-572

A PigServer.registerScript() method, which lets a client programmatically register a Pig Script.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.2.0
    • 0.2.0
    • None
    • None
    • Patch Available
    • Reviewed

    Description

      A PigServer.registerScript() method, which lets a client programmatically register a Pig Script.

      For example, say theres a script my_script.pig with the following content:
      a = load '/data/my_data.txt';
      b = filter a by $0 > '0';

      The function lets you use something like the following:
      pigServer.registerScript("my_script.pig");
      pigServer.registerQuery("c = foreach b generate $2, $3;");
      pigServer.store("c");

      Attachments

        1. registerScript.patch
          9 kB
          Shubham Chopra

        Activity

          People

            shubhamc Shubham Chopra
            shubhamc Shubham Chopra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: