Trying to write a unit test case for Kafka, and stuck with strange
createBrokerConfig issue.
on TestUtils.createBrokerConfigs(1) it gives me compilation error
The method createBrokerConfigs(int, boolean) in the type TestUtils is
not applicable for the arguments (int)
When I looked into the scala
Trying to write a unit test case for Kafka, and stuck with strange
createBrokerConfig issue.
on TestUtils.createBrokerConfigs(1) it gives me compilation error
The method createBrokerConfigs(int, boolean) in the type TestUtils is
not applicable for the arguments (int)
When I looked into the scala
Trying to write a unit test case for Kafka, and stuck with strange
createBrokerConfig issue.
on TestUtils.createBrokerConfigs(1) it gives me compilation error
The method createBrokerConfigs(int, boolean) in the type TestUtils is
not applicable for the arguments (int)
When I looked into the scala
I am trying to create unit test case for Kafka with a simple call
Properties props =TestUtils.createBrokerConfig(1,
TestUtils.choosePort(), true);
It fails on
> java.lang.NoSuchMethodError:
> scala.Predef$.intWrapper(I)Lscala/runtime/RichInt;
> at kafka.utils.TestUtils$.choosePorts(Test
nal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
>
>
I also tried:
scala.collection.Iterator props
= TestUtils.createBrokerConfigs(1, true).iterator();
Same result.
This is a simple call to create kafka server, dont know what is going wrong.
O
ich kafka version are you working
> on?
>
> Guozhang
>
>
> On Sat, Aug 23, 2014 at 7:16 PM, Parin Jogani
> wrote:
>
> > I am trying to create unit test case for Kafka in Java with a simple call
> >
> > Properties props =TestUtils.createBrokerC
Can anyone help?
On Sat, Aug 23, 2014 at 9:38 PM, Parin Jogani
wrote:
> Kafka:
>
>> org.apache.kafka
>> kafka_2.9.2
>> 0.8.1.1
>> test
>
>
> My tests are in Java: junit, so dont know how scala would make a
> difference.
>
> Hope this helps!
&g
you make sure that you are using the scala 2.9.2 jar?
>
> Thanks,
>
> Jun
>
>
> On Tue, Aug 26, 2014 at 9:28 PM, Parin Jogani
> wrote:
>
> > Can anyone help?
> >
> >
> >
> >
> > On Sat, Aug 23, 2014 at 9:38 PM, Parin Jogani
> >
gt;
> Jun
>
>
> On Wed, Aug 27, 2014 at 4:05 PM, Parin Jogani
> wrote:
>
> > As far as I understand it shouldnt have such a dependency. JVM should be
> > able to compile this. I am using JDK1.6. Also this is a unit test.
> > Correct me if I am wron