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

MiniCluster should delete hadoop-site.xml on shutDown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.12.0
    • None
    • Patch Available

    Description

      MiniCluster creates hadoop-site.xml under build/classes which is used by Pig tests in creating a (mini) hadoop cluster to run against.

      MiniCluster.buildCluster() deletes this file from previous run before re-generating it. However, this config file is not deleted when mini-cluster is shutdown. This can sometimes lead to unpredictable behavior when hadoop-site.xml is not expected on classpath (See PIG-3135).

      The cleanest operation would be to delete this file when the mini-cluster is shutdown.

      Here is a more detailed explanation of the issue
      https://issues.apache.org/jira/browse/PIG-3135?focusedCommentId=13581825&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13581825

      Attachments

        1. PIG-3200_1.patch
          7 kB
          Prashant Kommireddi
        2. PIG-3200.patch
          3 kB
          Prashant Kommireddi

        Activity

          People

            prkommireddi Prashant Kommireddi
            prkommireddi Prashant Kommireddi
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: