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

SET command does not work well with deprecated settings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.17.0
    • None
    • None
    • Reviewed

    Description

      For eg: If mapred.job.map.memory.mb was specified in the script using set command and mapreduce.map.memory.mb was present in mapred-site.xml, that takes effect. This is because of the use of Properties and not Configuration.

      GruntParser.processSet() calls HExecutionEngine.setProperty which just updates pigContext.getProperties()

      public void setProperty(String property, String value) {
              Properties properties = pigContext.getProperties();
              properties.put(property, value);
          }
      

      Attachments

        1. PIG-4934.3.patch
          4 kB
          Ádám Szita
        2. PIG-4934.2.patch
          4 kB
          Ádám Szita
        3. PIG-4934.patch
          1 kB
          Ádám Szita

        Activity

          People

            szita Ádám Szita
            rohini Rohini Palaniswamy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: