kafka_neu-1778570057504.zip-extract/kafka-4.2.0-src/docker/jvm/jsa_launch

Path
kafka_neu-1778570057504.zip-extract/kafka-4.2.0-src/docker/jvm/jsa_launch
Status
scanned
Type
file
Name
jsa_launch
Extension

      
    
Programming language
Bash
Mime type
text/x-shellscript
File type
Bourne-Again shell script, ASCII text executable
Tag

      
    
Rootfs path

      
    
Size
1922 (1.9 KB)
MD5
21827e50c53d8ab041be761c500da79e
SHA1
103b445ba086525b565f6ae1b8259e60ca6e44b5
SHA256
9a8a7546d27117c401161fadb44bdf98d0746f9ba8b2f8bf0abab247a53e7a48
SHA512

      
    
SHA1_git
bfb6d73fa8bdb4ae28b4f2351ed8c6587fa25035
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
jsa_launch | 1.9 KB |

#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. 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 --standalone -t $KAFKA_CLUSTER_ID -c opt/kafka/config/server.properties KAFKA_JVM_PERFORMANCE_OPTS="-XX:ArchiveClassesAtExit=kafka.jsa" opt/kafka/bin/kafka-server-start.sh opt/kafka/config/server.properties & check_timeout() { if [ $TIMEOUT -eq 0 ]; then echo "Server startup timed out" exit 1 fi echo "Check will timeout in $(( TIMEOUT-- )) seconds" sleep 1 } opt/kafka/bin/kafka-topics.sh --create --topic $TOPIC --bootstrap-server localhost:9092 [ $? -eq 0 ] || exit 1 echo "test" | opt/kafka/bin/kafka-console-producer.sh --topic $TOPIC --bootstrap-server localhost:9092 [ $? -eq 0 ] || exit 1 opt/kafka/bin/kafka-console-consumer.sh --topic $TOPIC --from-beginning --bootstrap-server localhost:9092 --max-messages 1 --timeout-ms 20000 [ $? -eq 0 ] || exit 1 opt/kafka/bin/kafka-server-stop.sh # Wait until jsa file is generated TIMEOUT=20 until [ -f /kafka.jsa ] do check_timeout done
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
41.32
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9