[
https://issues.apache.org/jira/browse/SPARK-8709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Josh Rosen resolved SPARK-8709.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.5.0
Issue resolved by pull request 7090
[https://github.com/apache/spark/pull/7090]
> Exclude hadoop-client's mockito-all dependency to fix test compilation break
> for Hadoop 2
> -----------------------------------------------------------------------------------------
>
> Key: SPARK-8709
> URL: https://issues.apache.org/jira/browse/SPARK-8709
> Project: Spark
> Issue Type: Bug
> Affects Versions: 1.5.0
> Reporter: Josh Rosen
> Assignee: Josh Rosen
> Fix For: 1.5.0
>
>
> {{build/sbt -Phadoop-1 -Dhadoop.version=2.0.0-mr1-cdh4.1.1 -Phive
> -Pkinesis-asl -Phive-thriftserver core/test:compile}} currently fails to
> compile:
> {code}
> [error]
> /Users/joshrosen/Documents/spark/core/src/test/java/org/apache/spark/shuffle/unsafe/UnsafeShuffleWriterSuite.java:117:
> error: cannot find symbol
> [error]
> when(shuffleMemoryManager.tryToAcquire(anyLong())).then(returnsFirstArg());
> [error] ^
> [error] symbol: method then(Answer<Object>)
> [error] location: interface OngoingStubbing<Long>
> [error]
> /Users/joshrosen/Documents/spark/core/src/test/java/org/apache/spark/shuffle/unsafe/UnsafeShuffleWriterSuite.java:408:
> error: cannot find symbol
> [error] .then(returnsFirstArg()) // Allocate initial sort buffer
> [error] ^
> [error] symbol: method then(Answer<Object>)
> [error] location: interface OngoingStubbing<Long>
> [error]
> /Users/joshrosen/Documents/spark/core/src/test/java/org/apache/spark/shuffle/unsafe/UnsafeShuffleWriterSuite.java:435:
> error: cannot find symbol
> [error] .then(returnsFirstArg()) // Allocate initial sort buffer
> [error] ^
> [error] symbol: method then(Answer<Object>)
> [error] location: interface OngoingStubbing<Long>
> [error] 3 errors
> [error] (core/test:compile) javac returned nonzero exit code
> [error] Total time: 60 s, completed Jun 29, 2015 11:03:13 AM
> {code}
> This is because {{hadoop-client}} pulls in a dependency on {{mockito-all}},
> but I recently changed Spark to depend on {{mockito-core}} instead, which
> caused Hadoop's earlier Mockito version to take precedence over our newer
> version.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]