From 2d95e7d5af204311605cdb64c3f8663cd6f90e77 Mon Sep 17 00:00:00 2001 From: musa-asad Date: Mon, 2 Dec 2024 14:42:23 -0500 Subject: [PATCH] Write to file. --- test/metric_value_benchmark/jmx_kafka_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/metric_value_benchmark/jmx_kafka_test.go b/test/metric_value_benchmark/jmx_kafka_test.go index 6b17dd3ea..0c44e40df 100644 --- a/test/metric_value_benchmark/jmx_kafka_test.go +++ b/test/metric_value_benchmark/jmx_kafka_test.go @@ -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",