Skip to content

Commit

Permalink
Write to file.
Browse files Browse the repository at this point in the history
  • Loading branch information
musa-asad committed Dec 2, 2024
1 parent 76a841c commit 2d95e7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/metric_value_benchmark/jmx_kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func (t *JMXKafkaTestRunner) SetupBeforeAgentRun() error {

log.Println("set up zookeeper and kafka")
startJMXCommands := []string{
"export KAFKA_VERSION=curl https://dlcdn.apache.org/kafka/ | grep -oE '\\d\\.\\d\\.\\d' | tail -1",
"curl https://dlcdn.apache.org/kafka/$KAFKA_VERSION/kafka_2.13-$KAFKA_VERSION.tgz -o kafka_2.13-latest.tgz",
"curl https://dlcdn.apache.org/kafka/ | grep -oE '\\d\\.\\d\\.\\d' | tail -1 >> ./tmp/kafka_version",
"curl https://dlcdn.apache.org/kafka/$(cat ./tmp/kafka_version)/kafka_2.13-$(cat ./tmp/kafka_version).tgz -o kafka_2.13-latest.tgz",
"tar -xzf kafka_2.13-latest.tgz",
"echo 'export JMX_PORT=2000'|cat - kafka_2.13-latest/bin/kafka-server-start.sh > /tmp/kafka-server-start.sh && mv /tmp/kafka-server-start.sh kafka_2.13-latest/bin/kafka-server-start.sh",
"echo 'export JMX_PORT=2010'|cat - kafka_2.13-latest/bin/kafka-console-consumer.sh > /tmp/kafka-console-consumer.sh && mv /tmp/kafka-console-consumer.sh kafka_2.13-latest/bin/kafka-console-consumer.sh",
Expand Down

0 comments on commit 2d95e7d

Please sign in to comment.