Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12111 [Umbrella] Split test-patch off into its own TLP
  3. HADOOP-12297

test-patch's basedir and patch-dir must be directories under the user's home in docker mode if using boot2docker

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • HADOOP-12111
    • HADOOP-12111
    • yetus
    • None

    Description

      Docker mode without a patch-dir option or with an absolute path seems not to work:

      [sekikn@mobile hadoop]$ dev-support/test-patch.sh --basedir=/Users/sekikn/dev/hadoop --project=hadoop --docker /tmp/test.patch
      
      (snip)
      
      Successfully built 37438de64e81
      JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home does not exist. Dockermode: attempting to switch to another.
      /testptch/launch-test-patch.sh: line 42: cd: /testptch/patchprocess/precommit/: No such file or directory
      /testptch/launch-test-patch.sh: line 45: /testptch/patchprocess/precommit/test-patch.sh: No such file or directory
      

      It succeeds if a relative directory is specified:

      [sekikn@mobile hadoop]$ dev-support/test-patch.sh --basedir=/Users/sekikn/dev/hadoop --project=hadoop --docker --patch-dir=foo /tmp/test.patch
      
      (snip)
      
      Successfully built 6ea5001987a7
      JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home does not exist. Dockermode: attempting to switch to another.
      
      
      ============================================================================
      ============================================================================
                              Bootstrapping test harness
      ============================================================================
      ============================================================================
      
      (snip)
      
      +1 overall
      
      (snip)
      
      ============================================================================
      ============================================================================
                                    Finished build.
      ============================================================================
      ============================================================================
      

      If my setup or usage is wrong, please close this JIRA as invalid.

      Attachments

        Activity

          People

            sekikn Kengo Seki
            sekikn Kengo Seki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: