Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12515

Mockito dependency is missing in hadoop-kafka module

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha1
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      When importing Hadoop project into Intellij IDEA, it was found hadoop-kafka module doesn't resolve mockito related classes. The following change addressed the issue.

      --- a/hadoop-tools/hadoop-kafka/pom.xml
      +++ b/hadoop-tools/hadoop-kafka/pom.xml
      @@ -125,5 +125,10 @@
             <artifactId>junit</artifactId>
             <scope>test</scope>
           </dependency>
      +    <dependency>
      +      <groupId>org.mockito</groupId>
      +      <artifactId>mockito-all</artifactId>
      +      <scope>test</scope>
      +    </dependency>
         </dependencies>
       </project>
      

        Issue Links

          Activity

          Hide
          drankye Kai Zheng added a comment -

          Uploaded the change as patch for review.

          Show
          drankye Kai Zheng added a comment - Uploaded the change as patch for review.
          Hide
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 9s docker + precommit patch detected.
          +1 @author 0m 0s The patch does not contain any @author tags.
          -1 test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
          +1 mvninstall 3m 26s trunk passed
          +1 mvneclipse 0m 16s trunk passed
          +1 javadoc 0m 15s trunk passed with JDK v1.8.0_66
          +1 javadoc 0m 15s trunk passed with JDK v1.7.0_79
          +1 mvninstall 0m 15s the patch passed
          +1 mvneclipse 0m 14s the patch passed
          +1 whitespace 0m 0s Patch has no whitespace issues.
          +1 xml 0m 1s The patch has no ill-formed XML file.
          +1 javadoc 0m 15s the patch passed with JDK v1.8.0_66
          +1 javadoc 0m 16s the patch passed with JDK v1.7.0_79
          +1 unit 0m 13s hadoop-kafka in the patch passed with JDK v1.8.0_66.
          +1 unit 0m 13s hadoop-kafka in the patch passed with JDK v1.7.0_79.
          +1 asflicense 0m 24s Patch does not generate ASF License warnings.
          7m 6s



          Subsystem Report/Notes
          Docker Client=1.7.0 Server=1.7.0 Image:test-patch-base-hadoop-date2015-10-27
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12768869/HADOOP-12515-v1.patch
          JIRA Issue HADOOP-12515
          Optional Tests asflicense javac javadoc mvninstall unit xml
          uname Linux 52f9a22cff26 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
          Build tool maven
          Personality /home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/patchprocess/apache-yetus-b9c369f/dev-support/personality/hadoop.sh
          git revision trunk / 96677be
          Default Java 1.7.0_79
          Multi-JDK versions /usr/lib/jvm/java-8-oracle:1.8.0_66 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_79
          JDK v1.7.0_79 Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/7950/testReport/
          Max memory used 228MB
          Powered by Apache Yetus http://yetus.apache.org
          Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/7950/console

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 9s docker + precommit patch detected. +1 @author 0m 0s The patch does not contain any @author tags. -1 test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 mvninstall 3m 26s trunk passed +1 mvneclipse 0m 16s trunk passed +1 javadoc 0m 15s trunk passed with JDK v1.8.0_66 +1 javadoc 0m 15s trunk passed with JDK v1.7.0_79 +1 mvninstall 0m 15s the patch passed +1 mvneclipse 0m 14s the patch passed +1 whitespace 0m 0s Patch has no whitespace issues. +1 xml 0m 1s The patch has no ill-formed XML file. +1 javadoc 0m 15s the patch passed with JDK v1.8.0_66 +1 javadoc 0m 16s the patch passed with JDK v1.7.0_79 +1 unit 0m 13s hadoop-kafka in the patch passed with JDK v1.8.0_66. +1 unit 0m 13s hadoop-kafka in the patch passed with JDK v1.7.0_79. +1 asflicense 0m 24s Patch does not generate ASF License warnings. 7m 6s Subsystem Report/Notes Docker Client=1.7.0 Server=1.7.0 Image:test-patch-base-hadoop-date2015-10-27 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12768869/HADOOP-12515-v1.patch JIRA Issue HADOOP-12515 Optional Tests asflicense javac javadoc mvninstall unit xml uname Linux 52f9a22cff26 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /home/jenkins/jenkins-slave/workspace/PreCommit-HADOOP-Build/patchprocess/apache-yetus-b9c369f/dev-support/personality/hadoop.sh git revision trunk / 96677be Default Java 1.7.0_79 Multi-JDK versions /usr/lib/jvm/java-8-oracle:1.8.0_66 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_79 JDK v1.7.0_79 Test Results https://builds.apache.org/job/PreCommit-HADOOP-Build/7950/testReport/ Max memory used 228MB Powered by Apache Yetus http://yetus.apache.org Console output https://builds.apache.org/job/PreCommit-HADOOP-Build/7950/console This message was automatically generated.
          Hide
          ajisakaa Akira Ajisaka added a comment -

          LGTM, +1.

          Show
          ajisakaa Akira Ajisaka added a comment - LGTM, +1.
          Hide
          ajisakaa Akira Ajisaka added a comment -

          I've committed this to trunk. Thanks Kai Zheng for the contribution.

          Show
          ajisakaa Akira Ajisaka added a comment - I've committed this to trunk. Thanks Kai Zheng for the contribution.
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-trunk-Commit #8713 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8713/)
          HADOOP-12515. Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73)

          • hadoop-common-project/hadoop-common/CHANGES.txt
          • hadoop-tools/hadoop-kafka/pom.xml
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #8713 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8713/ ) HADOOP-12515 . Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-tools/hadoop-kafka/pom.xml
          Hide
          drankye Kai Zheng added a comment -

          Thanks Akira for the review and commit!

          Show
          drankye Kai Zheng added a comment - Thanks Akira for the review and commit!
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Hadoop-Yarn-trunk-Java8 #602 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/602/)
          HADOOP-12515. Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73)

          • hadoop-tools/hadoop-kafka/pom.xml
          • hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Hadoop-Yarn-trunk-Java8 #602 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/602/ ) HADOOP-12515 . Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73) hadoop-tools/hadoop-kafka/pom.xml hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Yarn-trunk #1326 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1326/)
          HADOOP-12515. Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73)

          • hadoop-tools/hadoop-kafka/pom.xml
          • hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk #1326 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1326/ ) HADOOP-12515 . Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73) hadoop-tools/hadoop-kafka/pom.xml hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk #2533 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2533/)
          HADOOP-12515. Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73)

          • hadoop-tools/hadoop-kafka/pom.xml
          • hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #2533 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2533/ ) HADOOP-12515 . Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73) hadoop-tools/hadoop-kafka/pom.xml hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #590 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/590/)
          HADOOP-12515. Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73)

          • hadoop-common-project/hadoop-common/CHANGES.txt
          • hadoop-tools/hadoop-kafka/pom.xml
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #590 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/590/ ) HADOOP-12515 . Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-tools/hadoop-kafka/pom.xml
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #542 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/542/)
          HADOOP-12515. Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73)

          • hadoop-common-project/hadoop-common/CHANGES.txt
          • hadoop-tools/hadoop-kafka/pom.xml
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #542 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/542/ ) HADOOP-12515 . Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73) hadoop-common-project/hadoop-common/CHANGES.txt hadoop-tools/hadoop-kafka/pom.xml
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk #2480 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2480/)
          HADOOP-12515. Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73)

          • hadoop-tools/hadoop-kafka/pom.xml
          • hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #2480 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2480/ ) HADOOP-12515 . Mockito dependency is missing in hadoop-kafka module. (aajisaka: rev bcb2386e39433a81f3bf4470b0a425292f47aa73) hadoop-tools/hadoop-kafka/pom.xml hadoop-common-project/hadoop-common/CHANGES.txt

            People

            • Assignee:
              drankye Kai Zheng
              Reporter:
              drankye Kai Zheng
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development