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

E2E test data generation fails in cluster mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.14.0
    • e2e harness
    • None

    Description

      When test-e2e-deploy target is called to generate data for e2e tests, Pig fails to execute fs -mkdir /user/pig/tests/data and returns with the following error:

      Failed to generate data for testing: <Failed running /home/my/pig/trunk/test/e2e/pig/../../../bin/pig -e fs -mkdir /user/pig/tests/data>

      This issue only happens if the parent directory /user/pig/tests doesn't exist. In this case org.apache.hadoop.fs.shell.Mkdir.processNonexistentPath() throws a PathNotFoundException in the background.

      I suspect, that the full parent directories should be created along the path. LocalDeployer.pm uses mkdir -p, but ExistingClusterDeployer.pm doesn't which leads to this issue.

      Attachments

        1. PIG-3974.patch
          0.5 kB
          Lorand Bendig

        Activity

          People

            lbendig Lorand Bendig
            lbendig Lorand Bendig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: