mirror of https://github.com/apache/kafka.git
MINOR: Use random cluster id for jsa file preparation (#15041)
Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
This commit is contained in:
parent
0cb7d747fb
commit
ad66f1395c
|
@ -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"; \
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue