dimanche 18 octobre 2020

Java unit test fails to start Kudu test mini cluster on Ubuntu - Unable to start Master at index 0

I've been chasing the root cause of this error for a while with no success.

I'm trying to run a Java unit test that leverages Kudu mini test cluster but sometimes it fails to start the kudu environment on Ubuntu 18.04.

Following there are some scenarios:

  • The test runs on my Mac with no issues.
  • The test runs fine on Ubuntu in a VMware Fusion environment.

But it fails on:

  • Ubuntu running in VirtualBox on Windows host OS
  • Fails running in Windows 10 WSL (Windows Subsystem for Linux) using Ubuntu image

Here the stack trace I get when running the test:

java.io.IOException: failed to start masters: Unable to start Master at index 0: /tmp/kudu-binary-jar3746539546985598047/kudu-binary-1.10.0-linux-x86_64/bin/kudu-master: process exited on signal 6
        at org.apache.kudu.test.cluster.MiniKuduCluster.sendRequestToCluster(MiniKuduCluster.java:169)
        at org.apache.kudu.test.cluster.MiniKuduCluster.start(MiniKuduCluster.java:234)
        at org.apache.kudu.test.cluster.MiniKuduCluster.access$300(MiniKuduCluster.java:71)
        at org.apache.kudu.test.cluster.MiniKuduCluster$MiniKuduClusterBuilder.build(MiniKuduCluster.java:658)
        at org.apache.kudu.test.KuduTestHarness.before(KuduTestHarness.java:140)

Can someone provide some pointers?

Cheers!

Following some configuration:

  • JDK = 1.8
  • kudu.version = 1.10.0
  • Ubuntu 18.04
  • Windows 10 Pro
  • WSL 2

Aucun commentaire:

Enregistrer un commentaire