[
https://issues.apache.org/jira/browse/KUDU-2203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nacho García Fernández updated KUDU-2203:
-----------------------------------------
Description:
I'm getting the following error when I try to create a new instance of
MiniKuduCluster:
{code:java}
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)
{code}
This is happening when a base class try to extend from BaseKuduTest (which
internally instantiates a MiniKuduCluster).
My simple test class:
{code:java}
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");
}
{code}
Current POM dependencies:
{noformat}
<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>
{noformat}
where kudu.version is 1.5.0
was:
I'm getting the following error when I try to create a new instance of
MiniKuduCluster:
{code:java}
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)
{code}
This is happening when a base class try to extend from BaseKuduTest (which
internally instantiates a MiniKuduCluster).
My simple test class:
{code:java}
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 occurred before this message is printed");
}
{code}
Current POM dependencies:
{noformat}
<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>
{noformat}
where ${kudu.version} is 1.5.0
> java.io.FileNotFoundException when trying to initialize MiniKuduCluster
> ------------------------------------------------------------------------
>
> Key: KUDU-2203
> URL: https://issues.apache.org/jira/browse/KUDU-2203
> Project: Kudu
> Issue Type: Bug
> Components: java, test
> Affects Versions: 1.5.0
> Reporter: Nacho García Fernández
>
> I'm getting the following error when I try to create a new instance of
> MiniKuduCluster:
> {code:java}
> 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)
> {code}
> This is happening when a base class try to extend from BaseKuduTest (which
> internally instantiates a MiniKuduCluster).
> My simple test class:
> {code:java}
> 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");
> }
> {code}
> Current POM dependencies:
> {noformat}
> <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>
> {noformat}
> where kudu.version is 1.5.0
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)