Skip to content

Commit

Permalink
Add export.
Browse files Browse the repository at this point in the history
  • Loading branch information
musa-asad committed Dec 2, 2024
1 parent d162066 commit 5ef9752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/metric_value_benchmark/jmx_kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5ef9752

Please sign in to comment.