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

Support for macro based property definitions in Pig

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.16.0
    • None
    • parser
    • None
    • Patch Available
    • Patch

    Description

      The attached patch provides support for property configurations with macro based definitions (relying on variable expansion of Hadoop Configuration).
       
      e.g., Consider the following definition of properties for HDFS.
      1) The property "fs.defaultFS" is defined to have value "${fs.defaultFS.dev}"
      2) The custom property "fs.defaultFS.dev" is defined to have value "hdfs://dev-sandbox.domain.com:8020"
       
      Now, when referencing the property "fs.defaultFS", the value should be resolved to "hdfs://dev-sandbox.domain.com:8020".
       
      This is typical variable expansion that is expected in Hadoop Configuration. Refer: https://hadoop.apache.org/docs/r2.6.0/api/org/apache/hadoop/conf/Configuration.html
      This functionality of variable expansion is not available with Pig. The attached patch (on branch-0.16) addresses this need.

      Attachments

        1. Patch_Pig_Macro_20170615.txt
          3 kB
          Sridhar Sailappan

        Activity

          People

            Unassigned Unassigned
            sridharbluetalon Sridhar Sailappan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: