Re: NotLeaderForPartitionException while doing performance test

2015-01-08 Thread Sa Li
Thanks, Jaikiran I was trying to duplicate the same issue by running the same performance test on master node of cluster , say exemplary-birds.master, and I did see such error again org.apache.kafka.common.errors.NotLeaderForPartitionException: This server is not the leader for that topic

Re: NotLeaderForPartitionException while doing performance test

2015-01-07 Thread Sa Li
, 19995.0 records/sec (57.21 MB/sec), 774.8 ms avg latency, 3858.0 max latency. On Wed, Jan 7, 2015 at 12:07 PM, Sa Li sal...@gmail.com wrote: Hi, All I am doing performance test by bin/kafka-run-class.sh org.apache.kafka.clients. tools.ProducerPerformance test-rep-three 5 100 -1

Re: NotLeaderForPartitionException while doing performance test

2015-01-07 Thread Jaikiran Pai
. 100315 records sent, 19995.0 records/sec (57.21 MB/sec), 774.8 ms avg latency, 3858.0 max latency. On Wed, Jan 7, 2015 at 12:07 PM, Sa Li sal...@gmail.com wrote: Hi, All I am doing performance test by bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test-rep-three

Re: NotLeaderForPartitionException while doing performance test

2015-01-07 Thread Jaikiran Pai
at 12:07 PM, Sa Li sal...@gmail.com wrote: Hi, All I am doing performance test by bin/kafka-run-class.sh org.apache.kafka.clients. tools.ProducerPerformance test-rep-three 5 100 -1 acks=1 bootstrap.servers= 10.100.98.100:9092,10.100.98.101:9092,10.100.98.102:9092 buffer.memory=67108864

NotLeaderForPartitionException while doing performance test

2015-01-07 Thread Sa Li
Hi, All I am doing performance test by bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test-rep-three 5 100 -1 acks=1 bootstrap.servers=10.100.98.100:9092, 10.100.98.101:9092,10.100.98.102:9092 buffer.memory=67108864 batch.size=8196 where the topic test-rep

Re: NotLeaderForPartitionException while doing performance test

2015-01-07 Thread Sa Li
avg latency, 3858.0 max latency. On Wed, Jan 7, 2015 at 12:07 PM, Sa Li sal...@gmail.com wrote: Hi, All I am doing performance test by bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test-rep-three 5 100 -1 acks=1 bootstrap.servers= 10.100.98.100

Re: NotLeaderForPartitionException while doing performance test

2015-01-07 Thread Sa Li
I checked topic config, isr changes dynamically. root@voluminous-mass:/srv/kafka# bin/kafka-topics.sh --describe --zookeeper 10.100.98.101:2181 --topic test-rep-three Topic:test-rep-threePartitionCount:8ReplicationFactor:3 Configs: Topic: test-rep-three Partition: 0

some connection errors happen in performance test

2015-01-06 Thread Sa Li
Hi, All I am running performance test on kafka, the command bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test-rep-three 500 100 -1 acks=1 bootstrap.servers= 10.100.10.101:9092 buffer.memory=67108864 batch.size=8196 Since we send 50 billions to brokers

Re: kafka test jars in sbt?

2014-11-11 Thread Markus Jais
Thanks Joe, that does the trick with sbt and the 0.8.2.-beta-test jar. Regards, Markus Joe Crobak joec...@gmail.com schrieb am 23:28 Sonntag, 9.November 2014: For sbt, you need to use something like: org.apache.kafka %% kafka %0.8.2-beta % test classifier test That tells sbt to pull

Re: kafka test jars in sbt?

2014-11-09 Thread Joe Crobak
For sbt, you need to use something like: org.apache.kafka %% kafka %0.8.2-beta % test classifier test That tells sbt to pull in the kafka artifact with the test classifier only when running tests. The %% tells sbt to fill in the scala version (so it'll map to kafka_2.10 like in your example

kafka test jars in sbt?

2014-11-06 Thread Markus Jais
Hello, I want to use the kafka_2.10-0.8.2-beta-test.jar in my Scala project. It can be found here: http://repo.maven.apache.org/maven2/org/apache/kafka/kafka_2.10/0.8.1.1/ In my build.sbt I write the following definition: org.apache.kafka % kafka_2.10 % 0.8.2-beta-test But sbt cannot find

Re: kafka test jars in sbt?

2014-11-06 Thread Jun Rao
The following is how samza references the kafka test jar in gradle. testCompile org.apache.kafka:kafka_$scalaVersion:$kafkaVersion:test Thanks, Jun On Thu, Nov 6, 2014 at 6:38 AM, Markus Jais markus.j...@yahoo.de wrote: Hello, I want to use the kafka_2.10-0.8.2-beta-test.jar in my

Re: kafka producer performance test

2014-10-02 Thread Sa Li
and it should be there. -Jay On Wed, Oct 1, 2014 at 7:55 PM, Sa Li sal...@gmail.com wrote: Hi, All I built a 3-node kafka cluster, I want to make performance test, I found someone post following thread, that is exactly the problem I have: - While testing kafka producer

Re: kafka producer performance test

2014-10-02 Thread Guozhang Wang
wrote: Hi, All I built a 3-node kafka cluster, I want to make performance test, I found someone post following thread, that is exactly the problem I have: - While testing kafka producer performance, I found 2 testing scripts. 1) performance testing script in kafka

Re: kafka producer performance test

2014-10-02 Thread Sa Li
was developed with the new producer that is included on trunk. Checkout trunk and build and it should be there. -Jay On Wed, Oct 1, 2014 at 7:55 PM, Sa Li sal...@gmail.com wrote: Hi, All I built a 3-node kafka cluster, I want to make performance test, I found someone

Re: kafka producer performance test

2014-10-02 Thread Sa Li
On Wed, Oct 1, 2014 at 7:55 PM, Sa Li sal...@gmail.com wrote: Hi, All I built a 3-node kafka cluster, I want to make performance test, I found someone post following thread, that is exactly the problem I have: - While testing kafka producer performance, I

Re: kafka producer performance test

2014-10-02 Thread Guozhang Wang
on trunk. Checkout trunk and build and it should be there. -Jay On Wed, Oct 1, 2014 at 7:55 PM, Sa Li sal...@gmail.com wrote: Hi, All I built a 3-node kafka cluster, I want to make performance test, I found someone post following thread, that is exactly

kafka producer performance test

2014-10-01 Thread Sa Li
Hi, All I built a 3-node kafka cluster, I want to make performance test, I found someone post following thread, that is exactly the problem I have: - While testing kafka producer performance, I found 2 testing scripts. 1) performance testing script in kafka distribution bin/kafka

Re: kafka producer performance test

2014-10-01 Thread ravi singh
It is available with Kafka package containing the source code. Download the package, build it and run the above command. Regards, Ravi On Wed, Oct 1, 2014 at 7:55 PM, Sa Li sal...@gmail.com wrote: Hi, All I built a 3-node kafka cluster, I want to make performance test, I found someone post

Re: kafka producer performance test

2014-10-01 Thread Sa Li
PM, Sa Li sal...@gmail.com wrote: Hi, All I built a 3-node kafka cluster, I want to make performance test, I found someone post following thread, that is exactly the problem I have: - While testing kafka producer performance, I found 2 testing scripts. 1) performance testing

Re: kafka producer performance test

2014-10-01 Thread Jay Kreps
Hi Sa, That script was developed with the new producer that is included on trunk. Checkout trunk and build and it should be there. -Jay On Wed, Oct 1, 2014 at 7:55 PM, Sa Li sal...@gmail.com wrote: Hi, All I built a 3-node kafka cluster, I want to make performance test, I found someone

Re: kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-29 Thread Parin Jogani
. So to run Kafka, you need a scala jar. Thanks, Jun On Wed, Aug 27, 2014 at 4:05 PM, Parin Jogani parin.jog...@gmail.com 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

Re: kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-29 Thread Gwen Shapira
to run Kafka, you need a scala jar. Thanks, Jun On Wed, Aug 27, 2014 at 4:05 PM, Parin Jogani parin.jog...@gmail.com 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

Re: kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-27 Thread Parin Jogani
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 wrong. I have not downloaded any scala before even till this far. -Parin On Tue, Aug 26, 2014 at 10:12 PM, Jun Rao jun...@gmail.com

Re: kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-27 Thread Jun Rao
test. Correct me if I am wrong. I have not downloaded any scala before even till this far. -Parin On Tue, Aug 26, 2014 at 10:12 PM, Jun Rao jun...@gmail.com wrote: Could 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

Re: kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-26 Thread Parin Jogani
to create unit test case for Kafka in Java 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

kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-23 Thread Parin Jogani
I am trying to create unit test case for Kafka in Java 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

Re: kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-23 Thread Guozhang Wang
Parin, Which scala version are you using? And which kafka version are you working on? Guozhang On Sat, Aug 23, 2014 at 7:16 PM, Parin Jogani parin.jog...@gmail.com wrote: I am trying to create unit test case for Kafka in Java with a simple call Properties props

Re: kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-23 Thread Parin Jogani
: Parin, Which scala version are you using? And which kafka version are you working on? Guozhang On Sat, Aug 23, 2014 at 7:16 PM, Parin Jogani parin.jog...@gmail.com wrote: I am trying to create unit test case for Kafka in Java with a simple call Properties props

performance test on github failing

2014-07-03 Thread Schena, Brendan
Quick ? - I built kafka-0.8.1.1-src ( and then 0.8.1 for good measure) - when I run the first test single thread, no replication I see the following: USAGE: java org.apache.kafka.clients.tools.ProducerPerformance url num_records record_size I am using this syntax: /var/tmp/kafka-0.8.1.1-src

Re: Kafka producer performance test sending 0x0 byte messages

2014-07-02 Thread Bert Corderman
is the overhead required from decompression on the broker to assign Ids. Here is a good article that describes this http://geekmantra.wordpress.com/2013/03/28/compression-in-kafka-gzip-or-snappy/ But again we haven’t decided just yet. Would like to test and evaluate. Bert

Kafka producer performance test sending 0x0 byte messages

2014-06-30 Thread Daniel Compton
? We're going to test this against our production workload so it's not a big deal for us but I wondered if this could give others skewed results? --- Daniel

Re: Kafka producer performance test sending 0x0 byte messages

2014-06-30 Thread Bert Corderman
://geekmantra.wordpress.com/2013/03/28/compression-in-kafka-gzip-or-snappy/ But again we haven’t decided just yet. Would like to test and evaluate. Bert On Mon, Jun 30, 2014 at 2:24 AM, Daniel Compton d...@danielcompton.net wrote: Hi folks I was doing some performance testing using

Re: Kafka producer performance test sending 0x0 byte messages

2014-06-30 Thread Jun Rao
? We're going to test this against our production workload so it's not a big deal for us but I wondered if this could give others skewed results? --- Daniel

Re: Kafka producer performance test sending 0x0 byte messages

2014-06-30 Thread Daniel Compton
compression is the overhead required from decompression on the broker to assign Ids. Here is a good article that describes this http://geekmantra.wordpress.com/2013/03/28/compression-in-kafka-gzip-or-snappy/ But again we haven’t decided just yet. Would like to test and evaluate. Bert

SimpleConsumer long poll test case randomly times out

2014-05-15 Thread Simon Cooper
I've got a very strange bug doing a long poll using SimpleConsumer on 0.8.1.1. The test app I've got (attached) uses a thread to do a long poll of a topic, and then sends single messages to that queue, one at a time, waiting for the poll to return the message before sending the next one

Re: SimpleConsumer long poll test case randomly times out

2014-05-14 Thread Jun Rao
SimpleConsumer on 0.8.1.1. The test app I've got (attached) uses a thread to do a long poll of a topic, and then sends single messages to that queue, one at a time, waiting for the poll to return the message before sending the next one. The problem is that when a message is sent to the queue

test

2014-05-14 Thread Jun Rao
Some emails don't seem to be delivered to the mailing list. This is just a test to see if the mailing list still works. Jun

Just started with Kafka. This test is throwing failed to send message after 3 tries, could help please? what is wrong with my test.

2014-04-10 Thread Khalef Bessaih
I am using the latest version of kafka. package kafka.test; import kafka.consumer.Consumer;import kafka.consumer.ConsumerConfig;import kafka.consumer.ConsumerIterator;import kafka.consumer.KafkaStream;import kafka.javaapi.consumer.ConsumerConnector;import kafka.javaapi.producer.Producer;import

Re: Just started with Kafka. This test is throwing failed to send message after 3 tries, could help please? what is wrong with my test.

2014-04-10 Thread Guozhang Wang
Could you re-format your code in the email? They can hard be read from my browser. Guozhang On Thu, Apr 10, 2014 at 6:58 AM, Khalef Bessaih bessaihkha...@hotmail.comwrote: I am using the latest version of kafka. package kafka.test; import kafka.consumer.Consumer;import

Re: Best ways to unit test consumer that is based on simpleConsumer

2014-03-13 Thread Vadim Keylis
different error responses from kafka to make sure my code handles it properly. How do you guys advised to do this within my unit test? Do you have some kind of mock kafka that capable of doing this? What would be your advise? Thanks so much, Vadim.

Re: Best ways to unit test consumer that is based on simpleConsumer

2014-03-13 Thread Neha Narkhede
integration/unit tests that simulate different error responses from kafka to make sure my code handles it properly. How do you guys advised to do this within my unit test? Do you have some kind of mock kafka that capable of doing this? What would be your advise? Thanks so much, Vadim.

Re: Best ways to unit test consumer that is based on simpleConsumer

2014-03-13 Thread Vadim Keylis
Neha. That is correct SimpleConsumer does not do much, but my code that is calling it need to react properly at error response and I wanted to test that. On Thu, Mar 13, 2014 at 1:21 PM, Neha Narkhede neha.narkh...@gmail.comwrote: Currently, we don't have a mock class for the server

Re: Best ways to unit test consumer that is based on simpleConsumer

2014-03-13 Thread Neha Narkhede
I see. In that case, it might be easier to write a MockSimpleConsumer and have it return different FetchResponse objects with the error codes you want to test. We don't have a MockSimpleConsumer as well. If you happen to write one, you could use it with EasyMock to get the fetch() API to return

Best ways to unit test consumer that is based on simpleConsumer

2014-03-12 Thread Vadim Keylis
Good evening. I am writing consumer that is based on SimpleConsumer. I would like to write integration/unit tests that simulate different error responses from kafka to make sure my code handles it properly. How do you guys advised to do this within my unit test? Do you have some kind of mock

Re: trunk unit test failure

2014-02-18 Thread Jay Kreps
Why do we need to create that gradle file? Can't we ship a default for that? Also we should really comment out the @Test annotation on the failing test. I think we checked that in so I had a case to fix against but I think it is a bit disruptive. -Jay On Mon, Feb 17, 2014 at 7:41 PM, Guozhang

Re: trunk unit test failure

2014-02-18 Thread Bae, Jae Hyeon
comment out the @Test annotation on the failing test. I think we checked that in so I had a case to fix against but I think it is a bit disruptive. -Jay On Mon, Feb 17, 2014 at 7:41 PM, Guozhang Wang wangg...@gmail.com wrote: testSendToPartition is suppose to fail now since it detects some

Re: trunk unit test failure

2014-02-18 Thread Guozhang Wang
Jay. I think the plan is to ship a default in the final release, details in the RB: https://reviews.apache.org/r/17879/ For now just commenting out the @Test tag does not help since the junit test will still search for any functions with prefix test... So we need to change the function name

Re: trunk unit test failure

2014-02-18 Thread Jun Rao
in the new producer code. We are working on it. For other test failures, I just redid the unit tests from trunk but does not see the failures. My test process: 1. Check out a new repository of trunk. 2. Create ~/.gradle/gradle.properties file according to README.md 3. ./gradlew test Only

Re: trunk unit test failure

2014-02-18 Thread Jun Rao
on it. For other test failures, I just redid the unit tests from trunk but does not see the failures. My test process: 1. Check out a new repository of trunk. 2. Create ~/.gradle/gradle.properties file according to README.md 3. ./gradlew test Only testSendToPartition failed. Guozhang

Re: trunk unit test failure

2014-02-18 Thread Joe Stein
it detects some bugs in the new producer code. We are working on it. For other test failures, I just redid the unit tests from trunk but does not see the failures. My test process: 1. Check out a new repository of trunk. 2. Create ~/.gradle/gradle.properties file according

Re: trunk unit test failure

2014-02-18 Thread Joe Stein
to maven. Thanks, Jun On Mon, Feb 17, 2014 at 7:41 PM, Guozhang Wang wangg...@gmail.com wrote: testSendToPartition is suppose to fail now since it detects some bugs in the new producer code. We are working on it. For other test failures, I just redid the unit tests from trunk

Re: trunk unit test failure

2014-02-17 Thread Guozhang Wang
testSendToPartition is suppose to fail now since it detects some bugs in the new producer code. We are working on it. For other test failures, I just redid the unit tests from trunk but does not see the failures. My test process: 1. Check out a new repository of trunk. 2. Create ~/.gradle

Re: trunk unit test failure

2014-02-16 Thread Guozhang Wang
Is this error stable? could you check out a clean trunk and retry unit tests? Guozhang 2014-02-14 22:56 GMT-08:00 Bae, Jae Hyeon metac...@gmail.com: - LogOffsetTest kafka.server.LogOffsetTest.html. testEmptyLogsGetOffsetskafka.server.LogOffsetTest.html#testEmptyLogsGetOffsets -

Re: trunk unit test failure

2014-02-16 Thread Bae, Jae Hyeon
Test failures are stable with the latest trunk, I am building Mac OSX with Java version 1.7.0_45 Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode) The followings are log snippet from gradle build: kafka.server.LogOffsetTest

trunk unit test failure

2014-02-14 Thread Bae, Jae Hyeon
- LogOffsetTest kafka.server.LogOffsetTest.html. testEmptyLogsGetOffsetskafka.server.LogOffsetTest.html#testEmptyLogsGetOffsets - LogOffsetTest kafka.server.LogOffsetTest.html. testGetOffsetsBeforeEarliestTimekafka.server.LogOffsetTest.html#testGetOffsetsBeforeEarliestTime -

RE: Kafka performance test: --request-num-acks -1 kills throughput

2014-02-04 Thread Michael Popov
Subject: Re: Kafka performance test: --request-num-acks -1 kills throughput Michael, Your understanding is mostly correct. For 2, the follower will issue another fetch request as soon as it finishes processing the response of the previous fetch (by adding data, if any, to its local log

Re: Kafka performance test: --request-num-acks -1 kills throughput

2014-02-03 Thread Jun Rao
What's replica.fetch.min.bytes? Is it the default value of 1? If not, could you try to set it to 1? If yes, could you try using a smaller value of replica.fetch.wait.max.ms? You can then re-run the test and report back the results. Thanks, Jun On Mon, Feb 3, 2014 at 9:26 AM, Michael Popov mpo

RE: Kafka performance test: --request-num-acks -1 kills throughput

2014-02-03 Thread Michael Popov
To: users@kafka.apache.org Subject: Re: Kafka performance test: --request-num-acks -1 kills throughput What's replica.fetch.min.bytes? Is it the default value of 1? If not, could you try to set it to 1? If yes, could you try using a smaller value of replica.fetch.wait.max.ms? You can then re-run

Re: Kafka performance test: --request-num-acks -1 kills throughput

2014-02-03 Thread Jun Rao
...@gmail.com] Sent: Monday, February 3, 2014 10:09 AM To: users@kafka.apache.org Subject: Re: Kafka performance test: --request-num-acks -1 kills throughput What's replica.fetch.min.bytes? Is it the default value of 1? If not, could you try to set it to 1? If yes, could you try using

Re: Kafka performance test: --request-num-acks -1 kills throughput

2014-01-31 Thread Jun Rao
a new topic with 1 partition for each client process. Commands to create a topic looked like this one: bin/kafka-create-topic.sh --partition 1 --replica 2 --zookeeper 10.0.0.4:2181 --topic d1 Commands to run a test producer looked like this: bin/kafka-producer-perf-test.sh --broker

Re: Kafka performance test: --request-num-acks -1 kills throughput

2014-01-31 Thread Jun Rao
-perf-test.sh shows --request-timeout-ms Integer The produce request timeout in ms (default: 3000) In my test runs I used the following command-line arguments: bin/kafka-producer-perf-test.sh --broker-list 10.0.0.8:9092, 10.0.0.10:9092 --compression-codec 0 --message-size 1024

RE: Kafka performance test: --request-num-acks -1 kills throughput

2014-01-30 Thread Michael Popov
@kafka.apache.org Subject: Re: Kafka performance test: --request-num-acks -1 kills throughput Michael, The producer client in 0.8 has a single thread that does blocking data sends one broker at a time. However, we are working on a rewrite of the producer with an improved design that can support

Kafka performance test: --request-num-acks -1 kills throughput

2014-01-29 Thread Michael Popov
Hi, We need a reliable low-latency message queue that can scale. Kafka looks like a right system for this role. I am running performance tests on multiple platforms: Linux and Windows. For test purposes I create topics with 2 replicas and multiple partitions. In all deployments running test

Re: Kafka performance test: --request-num-acks -1 kills throughput

2014-01-29 Thread Neha Narkhede
that can scale. Kafka looks like a right system for this role. I am running performance tests on multiple platforms: Linux and Windows. For test purposes I create topics with 2 replicas and multiple partitions. In all deployments running test producers that wait for both replicas' acks

kafka performance test

2014-01-15 Thread 陈小军
I was just reading this:https://cwiki.apache.org/confluence/display/KAFKA/Performance+testingHas this been implemented yet? I can't seem tofind it in the source. Best Regards Jerry

Re: kafka performance test

2014-01-15 Thread Jun Rao
The results there are obtained using our ProducerPerformance tool. Thanks, Jun On Wed, Jan 15, 2014 at 1:14 AM, 陈小军 chenxiao...@nhn.com wrote: I was just reading this: https://cwiki.apache.org/confluence/display/KAFKA/Performance+testingHasthis been implemented yet? I can't seem tofind

Re: How to run a single unit test with ./sbt

2013-11-01 Thread Joel Koshy
Sorry no clue about that - anyone else know? On Mon, Oct 28, 2013 at 10:41 AM, Roger Hoover roger.hoo...@gmail.com wrote: Joel, Thank you! This is very helpful. What I notice now is that it works for Test classes that extend org.scalatest.junit.JUnit3Suite. There are other tests

Re: How to run a single unit test with ./sbt

2013-10-28 Thread Roger Hoover
Joel, Thank you! This is very helpful. What I notice now is that it works for Test classes that extend org.scalatest.junit.JUnit3Suite. There are other tests in the codebase that use a @Test annotation as in the example below. Any idea how to run those? import org.junit.{Test, After, Before

How to run a single unit test with ./sbt

2013-10-25 Thread Roger Hoover
Hi, I'm new to Scala but working on a simple patch for a configuration change and want to run just my unit tests. When I run ./sbt test-only, it executes all sorts of other tests but not the one I want. Is there an easy way to run a single test? Any help is appreciated. $ ./sbt test-only

Re: How to run a single unit test with ./sbt

2013-10-25 Thread Joel Koshy
In the sbt shell: projects (to see the available projects) project core test-only unit test Although lately if there is a test failure it isn't very helpful in saying exactly where the test failed; my environment is probably messed up but I know of one or two others who are having similar

Please help find the reason behind performance test results.

2013-10-21 Thread Lu Xuechao
Hi, We observed below correlation between kafka configuration and performance data: 1. producer insertion rate drops as compression enabled, especially gzip; 2. when the producer batch size is below 200, we got high CPU/network IO on brokers, got high network IO on producers/consumers; What's

Re: Please help find the reason behind performance test results.

2013-10-21 Thread Neha Narkhede
Are these for Kafka 08? For #2 above, when you say high network I/O, do you mean number of packets transferred or size in bytes transferred? Thanks, Neha On Mon, Oct 21, 2013 at 12:01 PM, Lu Xuechao lux...@gmail.com wrote: Hi, We observed below correlation between kafka configuration and

Re: Please help find the reason behind performance test results.

2013-10-21 Thread Lu Xuechao
Yes, I am using 0.8. Network IO means bytes transferred. Thanks for reply. On Mon, Oct 21, 2013 at 2:24 PM, Neha Narkhede neha.narkh...@gmail.comwrote: Are these for Kafka 08? For #2 above, when you say high network I/O, do you mean number of packets transferred or size in bytes

Re: Please help find the reason behind performance test results.

2013-10-21 Thread Jun Rao
If the data is compressed, the broker has to recompress the messages in order to assign offsets. So, there is some CPU overhead. However, it shouldn't be too high. How high of the CPU load did you observe? Thanks, Jun On Mon, Oct 21, 2013 at 12:01 PM, Lu Xuechao lux...@gmail.com wrote: Hi,

Java junit test for a Kafka producer returns failed to collate messages by topic

2013-09-06 Thread Maier, Dr. Andreas
Hello, I wrote a simple junit test to test a Kafka producer. public class KafkaProducerTest { private int brokerId = 0; private String topic = test; @Test public void producerTest() throws InterruptedException { // setup Zookeeper String zkConnect

Re: Java junit test for a Kafka producer returns failed to collate messages by topic

2013-09-06 Thread Joe Stein
wrote: Hello, I wrote a simple junit test to test a Kafka producer. public class KafkaProducerTest { private int brokerId = 0; private String topic = test; @Test public void producerTest() throws InterruptedException { // setup Zookeeper String zkConnect

Re: Java junit test for a Kafka producer returns failed to collate messages by topic

2013-09-06 Thread Maier, Dr. Andreas
I tried that, but I still got junit.framework.AssertionFailedError: Partition [test,0] metadata not propagated after timeout at kafka.utils.TestUtils$.waitUntilMetadataIsPropagated(TestUtils.scala:506) at kafka.utils.TestUtils.waitUntilMetadataIsPropagated(TestUtils.scala

Fwd: IMPORTANT: Major Confluence Upgrade Coming Soon. Please review test instance now.

2013-06-18 Thread Joe Stein
FYI in regards to https://cwiki.apache.org/confluence/display/KAFKA/Index -- Forwarded message -- From: gmcdonald gmcdon...@apache.org Date: Tue, Jun 18, 2013 at 7:56 AM Subject: IMPORTANT: Major Confluence Upgrade Coming Soon. Please review test instance now. To: committ

kafka 0.8 - unable to run most scala test cases

2013-05-23 Thread Rob Withers
I am using 0.8 in eclipse. I used the approach suggested to use the sbt plugin and that works great (thank you to whomever recommended that). It pulled Scala 2.9.3. However, I am only able to run 2 common scala tests: TopicTest and ConfigTest. How can I find and run the other scala tests?

Re: acknowledged mode for performance test

2013-04-24 Thread Neha Narkhede
for performance test. I notice this line from the log: INFO Property request.required.acks is overridden to -1 So what does -1 mean in this case? Is acknowledgement enabled? In producer.properties, I set request.required.acks to 1 and started the job. I still saw: INFO Property request.required.acks

Re: long running (continous) benchmark test

2013-02-06 Thread Jay Kreps
For our long running testing at LinkedIn we actually just use the mirror maker tool and fork off a copy of the full production streams and throw it at the test cluster. This is, of course, only useful if you have a high-load cluster to replay... -Jay On Wed, Feb 6, 2013 at 11:27 AM, S Ahmed

<    1   2   3