[ 
https://issues.apache.org/jira/browse/HADOOP-14857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16162517#comment-16162517
 ] 

Sean Busbey commented on HADOOP-14857:
--------------------------------------

okay I have a local fix for properly relocating mockito and excluding its copy 
of hamcrest. but now my reduced pom for the minicluster looks wrong without 
failing the check-test-invariants module.

{code}
$ mvn -Dtest=NoUnitTests -pl 
hadoop-client-modules/hadoop-client-check-invariants -pl 
hadoop-client-modules/hadoop-client-check-test-invariants -pl 
hadoop-client-modules/hadoop-client-integration-tests -am install > ../mvn.log
$ mvn -DskipTests -f 
~/.m2/repository/org/apache/hadoop/hadoop-client-minicluster/3.1.0-SNAPSHOT/hadoop-client-minicluster-3.1.0-SNAPSHOT.pom
 dependency:tree
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; 
support was removed in 8.0
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
org.apache.hadoop:hadoop-client-minicluster:jar:3.1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.exclusions.exclusion.groupId' for 
org.apache.hadoop:hadoop-yarn-server-timelineservice:jar with value '*' does 
not match a valid id pattern. @ line 356, column 20
[WARNING] 'dependencies.dependency.exclusions.exclusion.artifactId' for 
org.apache.hadoop:hadoop-yarn-server-timelineservice:jar with value '*' does 
not match a valid id pattern. @ line 355, column 23
[WARNING] 'dependencies.dependency.exclusions.exclusion.groupId' for 
org.apache.hadoop:hadoop-common:test-jar with value '*' does not match a valid 
id pattern. @ line 370, column 20
[WARNING] 'dependencies.dependency.exclusions.exclusion.artifactId' for 
org.apache.hadoop:hadoop-common:test-jar with value '*' does not match a valid 
id pattern. @ line 369, column 23
[WARNING] 'dependencies.dependency.exclusions.exclusion.groupId' for 
org.apache.hadoop:hadoop-hdfs:test-jar with value '*' does not match a valid id 
pattern. @ line 384, column 20
[WARNING] 'dependencies.dependency.exclusions.exclusion.artifactId' for 
org.apache.hadoop:hadoop-hdfs:test-jar with value '*' does not match a valid id 
pattern. @ line 383, column 23
[WARNING] 'dependencies.dependency.exclusions.exclusion.groupId' for 
org.apache.hadoop:hadoop-mapreduce-client-jobclient:test-jar with value '*' 
does not match a valid id pattern. @ line 398, column 20
[WARNING] 'dependencies.dependency.exclusions.exclusion.artifactId' for 
org.apache.hadoop:hadoop-mapreduce-client-jobclient:test-jar with value '*' 
does not match a valid id pattern. @ line 397, column 23
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Hadoop Client Test Minicluster 3.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ 
hadoop-client-minicluster ---
[INFO] org.apache.hadoop:hadoop-client-minicluster:jar:3.1.0-SNAPSHOT
[INFO] +- org.apache.hadoop:hadoop-client-api:jar:3.1.0-SNAPSHOT:runtime
[INFO] +- org.apache.hadoop:hadoop-client-runtime:jar:3.1.0-SNAPSHOT:runtime
[INFO] |  +- org.apache.htrace:htrace-core4:jar:4.1.0-incubating:runtime
[INFO] |  +- org.slf4j:slf4j-api:jar:1.7.25:runtime
[INFO] |  \- commons-logging:commons-logging:jar:1.1.3:runtime
[INFO] +- junit:junit:jar:4.11:runtime
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:runtime
[INFO] +- org.apache.hadoop:hadoop-annotations:jar:3.1.0-SNAPSHOT:compile
[INFO] +- 
org.apache.hadoop:hadoop-yarn-server-timelineservice:jar:3.1.0-SNAPSHOT:runtime
[INFO] +- org.apache.hadoop:hadoop-common:test-jar:tests:3.1.0-SNAPSHOT:compile
[INFO] +- org.apache.hadoop:hadoop-hdfs:test-jar:tests:3.1.0-SNAPSHOT:compile
[INFO] \- 
org.apache.hadoop:hadoop-mapreduce-client-jobclient:test-jar:tests:3.1.0-SNAPSHOT:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.534s
[INFO] Finished at: Mon Sep 11 22:25:35 PDT 2017
[INFO] Final Memory: 16M/318M
[INFO] ------------------------------------------------------------------------
{code}

digging in...

> downstream client artifact IT fails
> -----------------------------------
>
>                 Key: HADOOP-14857
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14857
>             Project: Hadoop Common
>          Issue Type: Sub-task
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Sean Busbey
>            Assignee: Sean Busbey
>            Priority: Blocker
>         Attachments: HADOOP-14857.1.patch, HADOOP-18457.0.patch
>
>
> HADOOP-11804 added an IT to make sure downstreamers can use our client 
> artifacts post-shading. it is currently broken: 
> {code} useWebHDFS(org.apache.hadoop.example.ITUseMiniCluster)  Time elapsed: 
> 6.776 sec  <<< ERROR!
> java.lang.NullPointerException: null
>         at 
> org.apache.hadoop.example.ITUseMiniCluster.clusterDown(ITUseMiniCluster.java:80)
> useHdfsFileSystem(org.apache.hadoop.example.ITUseMiniCluster)  Time elapsed: 
> 2.954 sec  <<< ERROR!
> java.lang.NoClassDefFoundError: 
> org/apache/hadoop/shaded/org/mockito/stubbing/Answer
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at 
> org.apache.hadoop.hdfs.MiniDFSCluster.shouldWait(MiniDFSCluster.java:2668)
>         at 
> org.apache.hadoop.hdfs.MiniDFSCluster.waitActive(MiniDFSCluster.java:2564)
>         at 
> org.apache.hadoop.hdfs.MiniDFSCluster.waitActive(MiniDFSCluster.java:2607)
>         at 
> org.apache.hadoop.hdfs.MiniDFSCluster.startDataNodes(MiniDFSCluster.java:1667)
>         at 
> org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:874)
>         at 
> org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:494)
>         at 
> org.apache.hadoop.hdfs.MiniDFSCluster$Builder.build(MiniDFSCluster.java:453)
>         at 
> org.apache.hadoop.example.ITUseMiniCluster.clusterUp(ITUseMiniCluster.java:74)
> useHdfsFileSystem(org.apache.hadoop.example.ITUseMiniCluster)  Time elapsed: 
> 2.954 sec  <<< ERROR!
> java.lang.NullPointerException: null
>         at 
> org.apache.hadoop.example.ITUseMiniCluster.clusterDown(ITUseMiniCluster.java:80)
>  {code}
> (edited after I fixed a downed loopback device)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to