Description
I'm getting the following error when I try to create a new instance of MiniKuduCluster:
java.io.FileNotFoundException: Cannot find binary kudu-master in binary directory null
at org.apache.kudu.client.TestUtils.findBinary(TestUtils.java:159)
at org.apache.kudu.client.MiniKuduCluster.startMasters(MiniKuduCluster.java:210)
at org.apache.kudu.client.MiniKuduCluster.startCluster(MiniKuduCluster.java:153)
at org.apache.kudu.client.MiniKuduCluster.start(MiniKuduCluster.java:117)
at org.apache.kudu.client.MiniKuduCluster.access$300(MiniKuduCluster.java:50)
at org.apache.kudu.client.MiniKuduCluster$MiniKuduClusterBuilder.build(MiniKuduCluster.java:661)
at org.apache.kudu.client.BaseKuduTest.doSetup(BaseKuduTest.java:113)
at org.apache.kudu.client.BaseKuduTest.setUpBeforeClass(BaseKuduTest.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
This is happening when a base class try to extend from BaseKuduTest (which internally instantiates a MiniKuduCluster).
My simple test class:
import org.apache.kudu.client.BaseKuduTest; import org.junit.Before; import org.junit.Test; public class KuduInputFormatTest extends BaseKuduTest { @Before public void initialize() throws Exception { } @Test public void test() throws Exception { System.out.println("The error occurs before this message is printed"); }
Current POM dependencies:
<dependency> <groupId>org.apache.kudu</groupId> <artifactId>kudu-client</artifactId> <version>${kudu.version}</version> </dependency> <dependency> <groupId>org.apache.kudu</groupId> <artifactId>kudu-client</artifactId> <version>${kudu.version}</version> <type>test-jar</type> <scope>test</scope> </dependency>
where kudu.version is 1.5.0