gradle problem:testIntegeration maoReduceGenesisBlock() fail
See original GitHub issue@jornfranke Hi,thanks for your great project.I occur this issue when run gradlew build.
╷
├─ JMockit integration ✔tcoinblock:testIntegration
└─ JUnit Jupiter ✔
└─ MapReduceBitcoinBlockIntegrationTest ✔
├─ mapReduceGenesisBlock() ✘ Successfully executed mapreduce application ==> expected: <0> but was: <1>
└─ checkTestDataGenesisBlockAvailable() ✔
Failures (1):
JUnit Jupiter:MapReduceBitcoinBlockIntegrationTest:mapReduceGenesisBlock()
MethodSource [className = 'org.zuinnote.hadoop.bitcoin.example.MapReduceBitcoinBlockIntegrationTest', methodName = 'mapReduceGenesisBlock', methodParameterTypes = '']
=> org.opentest4j.AssertionFailedError: Successfully executed mapreduce application ==> expected: <0> but was: <1>
org.zuinnote.hadoop.bitcoin.example.MapReduceBitcoinBlockIntegrationTest.mapReduceGenesisBlock(MapReduceBitcoinBlockIntegrationTest.java:187)
I have tried over for one day.but still i can’t work over it.I need your help. thanks very much.
My jdk is 1.8.0_171 hadoop version
Hadoop 2.6.0-cdh5.14.2
Subversion http://github.com/cloudera/hadoop -r 5724a4ad7a27f7af31aa725694d3df09a68bb213
Compiled by jenkins on 2018-03-27T20:40Z
Compiled with protoc 2.5.0
From source with checksum 302899e86485742c090f626a828b28
This command was run using /usr/lib/hadoop/hadoop-common-2.6.0-cdh5.14.2.jar
spark-shell --version
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 1.6.0
/_/
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
hipi gradle build error - Stack Overflow
The problem is in core folder's gradle file. Can you show me that file? The content of core's directory gradle file should be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Well until now this integration test failed only on MacOs. On Ubuntu it went through and as well on Travis (our CI infrastructure in the cloud) - as you can see from the CI platform. Since most of the clusters run on Linux, we did not deeper investigate. I think it is just an issue in the Hadoop Cluster libraries for unit testing (MiniyarnCluster). You can deactivate this integrationTest for now and I will check if I find the root cause. Deactivate it by puttting @Disable in front of the method mapReduceGenesisBlockTest (https://github.com/ZuInnoTe/hadoopcryptoledger/blob/master/examples/mapreduce-bitcoinblock/src/integration-test/java/org/zuinnote/hadoop/bitcoin/example/MapReduceBitcoinBlockIntegrationTest.java). It will build fine and run fine (we tested it on HDP) and you find the jar in build/libs. All non-Mapreduce applications do not show this issue from our experience.
yes.it runs well.thanks very much for your help.