question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jornfrankecommented, Jun 7, 2018

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.

On 7. Jun 2018, at 07:08, foonsun notifications@github.com wrote:

@jornfranke no,i am using Cloudera Quickstart docker images (HDP®) 2.6.4 on aws.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

0reactions
foonsuncommented, Jun 8, 2018

yes.it runs well.thanks very much for your help.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found