You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Parin Jogani <pa...@gmail.com> on 2014/08/12 17:14:55 UTC
kafka TestUtils createBrokerConfig issue
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 source code, it contains only two methods:
createBrokerConfigs(int) //
https://github.com/apache/kafka/blob/0.8.1/core/src/test/scala/unit/kafka/utils/TestUtils.scala#L125
createBrokerConfigs(int, int)
//https://github.com/apache/kafka/blob/0.8.1/core/src/test/scala/unit/kafka/utils/TestUtils.scala#L137
Dont understand where this is coming from.
--
Regards,
Parin
Fwd: kafka TestUtils createBrokerConfig issue
Posted by Parin Jogani <pa...@gmail.com>.
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 source code, it contains only two methods:
createBrokerConfigs(int) //
https://github.com/apache/kafka/blob/0.8.1/core/src/test/scala/unit/kafka/utils/TestUtils.scala#L125
createBrokerConfigs(int, int)
//https://github.com/apache/kafka/blob/0.8.1/core/src/test/scala/unit/kafka/utils/TestUtils.scala#L137
Dont understand where this is coming from.
--
Regards,
Parin
--
Regards,
Parin
Re: kafka TestUtils createBrokerConfig issue
Posted by Jun Rao <ju...@gmail.com>.
Are you using it from java? The generated class has only the following
signature on createBrokerConfig.
javap core/build/classes/test/kafka/utils/TestUtils |grep -i createbrokercon
Warning: Binary file core/build/classes/test/kafka/utils/TestUtils contains
kafka.utils.TestUtils
public static java.util.Properties createBrokerConfig(int, int, boolean);
public static scala.collection.immutable.List<java.util.Properties>
createBrokerConfigs(int, boolean);
Thanks,
Jun
On Tue, Aug 12, 2014 at 8:14 AM, Parin Jogani <pa...@gmail.com>
wrote:
> 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 source code, it contains only two methods:
>
> createBrokerConfigs(int) //
>
> https://github.com/apache/kafka/blob/0.8.1/core/src/test/scala/unit/kafka/utils/TestUtils.scala#L125
> createBrokerConfigs(int, int)
> //
> https://github.com/apache/kafka/blob/0.8.1/core/src/test/scala/unit/kafka/utils/TestUtils.scala#L137
>
> Dont understand where this is coming from.
>
> --
> Regards,
> Parin
>
Fwd: kafka TestUtils createBrokerConfig issue
Posted by Parin Jogani <pa...@gmail.com>.
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 source code, it contains only two methods:
createBrokerConfigs(int) //
https://github.com/apache/kafka/blob/0.8.1/core/src/test/scala/unit/kafka/utils/TestUtils.scala#L125
createBrokerConfigs(int, int)
//https://github.com/apache/kafka/blob/0.8.1/core/src/test/scala/unit/kafka/utils/TestUtils.scala#L137
Dont understand where this is coming from.
--
Regards,
Parin
--
Regards,
Parin
Re: kafka TestUtils createBrokerConfig issue
Posted by Guozhang Wang <wa...@gmail.com>.
Parin,
I only see the following two functions in TestUtils:
createBrokerConfigs(Int, Boolean = true)
createBrokerConfig(Int, Int = choosePort(), Boolean = true) // this one
does not have the same function name
Guozhang
On Tue, Aug 12, 2014 at 8:14 AM, Parin Jogani <pa...@gmail.com>
wrote:
> 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 source code, it contains only two methods:
>
> createBrokerConfigs(int) //
>
> https://github.com/apache/kafka/blob/0.8.1/core/src/test/scala/unit/kafka/utils/TestUtils.scala#L125
> createBrokerConfigs(int, int)
> //
> https://github.com/apache/kafka/blob/0.8.1/core/src/test/scala/unit/kafka/utils/TestUtils.scala#L137
>
> Dont understand where this is coming from.
>
> --
> Regards,
> Parin
>
--
-- Guozhang