Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1877

hadoop31-mapreduce fails due to wrong HADOOP_VERSION

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.4.1, 0.5.0
    • 0.4.1
    • test

    Description

      hadoop31-mapreduce fails with:

      JAR does not exist or is not a normal file: /opt/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.1.2.jar
      

      because 3.1 test is being run with HADOOP_VERSION=3:

      Creating network "hadoop31_default" with the default driver
      Pulling nm (flokkr/hadoop:3)...
      3: Pulling from flokkr/hadoop
      Digest: sha256:62e3488e64ff8c0406752fc4f263ae2549e04fedf02534469913c496c6a89d78
      Status: Downloaded newer image for flokkr/hadoop:3
      

      which has Hadoop 3.2.0 instead of 3.1.2:

      docker run -it --entrypoint /bin/bash flokkr/hadoop:3 -c 'ls -la /opt/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples*'
      -rw-r--r--    1 hadoop   flokkr      316570 Jan  8  2019 /opt/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.2.0.jar
      
      docker run -it --entrypoint /bin/bash flokkr/hadoop:3.1.2 -c 'ls -la /opt/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples*'
      -rw-r--r--    1 hadoop   flokkr      316380 Jan 29  2019 /opt/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.1.2.jar
      

      This only happens with acceptance.sh, not when directly using test-all.sh, because the former explicitly defines HADOOP_VERSION:

      so the correct value from .env file is ignored:

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m