This is an automated email from the ASF dual-hosted git repository. manikumar pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push: new ad66f1395c2 MINOR: Use random cluster id for jsa file preparation (#15041) ad66f1395c2 is described below commit ad66f1395c2663bda39937aaa730f72d1abfb4b1 Author: Vedarth Sharma <142404391+vedarthconflu...@users.noreply.github.com> AuthorDate: Tue Dec 19 11:04:45 2023 +0530 MINOR: Use random cluster id for jsa file preparation (#15041) Reviewers: Manikumar Reddy <manikumar.re...@gmail.com> --- docker/jvm/Dockerfile | 2 +- docker/jvm/jsa_launch | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/jvm/Dockerfile b/docker/jvm/Dockerfile index 9a74e961253..5d152cb4839 100644 --- a/docker/jvm/Dockerfile +++ b/docker/jvm/Dockerfile @@ -39,7 +39,7 @@ COPY jsa_launch /etc/kafka/docker/jsa_launch RUN set -eux ; \ apk update ; \ apk upgrade ; \ - apk add --no-cache wget gcompat gpg gpg-agent procps netcat-openbsd uuidgen; \ + apk add --no-cache wget gcompat gpg gpg-agent procps netcat-openbsd; \ mkdir opt/kafka; \ wget -nv -O kafka.tgz "$kafka_url"; \ wget -nv -O kafka.tgz.asc "$kafka_url.asc"; \ diff --git a/docker/jvm/jsa_launch b/docker/jvm/jsa_launch index d7efe5845c7..904fbbee42c 100755 --- a/docker/jvm/jsa_launch +++ b/docker/jvm/jsa_launch @@ -14,8 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -KAFKA_CLUSTER_ID="5L6g3nShT-eMCtK--X86sw" -TOPIC="$(uuidgen)" +KAFKA_CLUSTER_ID="$(opt/kafka/bin/kafka-storage.sh random-uuid)" +TOPIC="test-topic" KAFKA_JVM_PERFORMANCE_OPTS="-XX:ArchiveClassesAtExit=storage.jsa" opt/kafka/bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c opt/kafka/config/kraft/server.properties