Pig
  1. Pig
  2. PIG-2576

Change in behavior for UDFContext.getUDFContext().getJobConf() in front-end

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.3
    • Fix Version/s: 0.10.0, 0.9.3, 0.11
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      We read a file in the UDF constructor. (The file is transferred to the compute nodes via distache)
      To avoid this case in the front-end while the script is in the compile stage,
      we differentiate between front end and back end execution depending upon a condition ( UDFContext.getUDFContext().getJobConf() == null )

      This was working till Pig 0.9.1, in the current Pig 0.9 version this is breaking.
      ie, If I have any 'fs' commands after the STORE statement, the GruntParser invokes the udf constructor again and the above condition check returns false causing errors.

      1. PIG-2576_Script_UDF.txt
        3 kB
        Vivek Padmanabhan
      2. PIG-2576_0.9.patch
        2 kB
        Thomas Weise
      3. PIG-2576_e2e.patch
        2 kB
        Thomas Weise

        Issue Links

          Activity

            People

            • Assignee:
              Thomas Weise
              Reporter:
              Vivek Padmanabhan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development