MINOR: Use random cluster id for jsa file preparation (#15041)

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
This commit is contained in:
Vedarth Sharma 2023-12-19 11:04:45 +05:30 committed by GitHub
parent 0cb7d747fb
commit ad66f1395c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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"; \

View File

@ -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