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

Job conf parameters not passed to Streaming

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.8.0
    • None
    • None
    • None

    Description

      Pig Streaming does not set the job conf parameters as environment variables for the streaming binary. This is unlike Hadoop streaming where all the job conf parameters are available as environment variables.

      Here is a small test script along with the streaming binary

      === stream.pig ===

      A = LOAD 'dat' as (f1:chararray);
      DEFINE MY_BIN `./stream.sh` SHIP('./stream.sh');
      B = STREAM A THROUGH MY_BIN;
      dump B;

      === stream.sh ===

      #!/bin/bash
      export

      Attachments

        Activity

          People

            Unassigned Unassigned
            ankur Ankur Bansal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: