From 5ef9752172384387c67c03c870f37bf7d936912b Mon Sep 17 00:00:00 2001 From: musa-asad Date: Mon, 2 Dec 2024 13:04:42 -0500 Subject: [PATCH] Add export. --- test/metric_value_benchmark/jmx_kafka_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/metric_value_benchmark/jmx_kafka_test.go b/test/metric_value_benchmark/jmx_kafka_test.go index 824642649..fbd771b18 100644 --- a/test/metric_value_benchmark/jmx_kafka_test.go +++ b/test/metric_value_benchmark/jmx_kafka_test.go @@ -55,7 +55,7 @@ func (t *JMXKafkaTestRunner) SetupBeforeAgentRun() error { log.Println("set up zookeeper and kafka") startJMXCommands := []string{ - "kafka_version=$(curl -s https://dlcdn.apache.org/kafka/ | grep -oE \"\\d\\.\\d\\.\\d\" | tail -1)\n", + "export kafka_version=$(curl -s https://dlcdn.apache.org/kafka/ | grep -oE \"\\d\\.\\d\\.\\d\" | tail -1)\n", "curl https://dlcdn.apache.org/kafka/${kafka_version}/kafka_2.13-${kafka_version}.tgz -o kafka_2.13-${kafka_version}.tgz", "tar -xzf kafka_2.13-${kafka_version}.tgz", "echo 'export JMX_PORT=2000'|cat - kafka_2.13-${kafka_version}/bin/kafka-server-start.sh > /tmp/kafka-server-start.sh && mv /tmp/kafka-server-start.sh kafka_2.13-${kafka_version}/bin/kafka-server-start.sh",