kafka_neu-76e4d1b5-8b7b-4eb8-ad4b-86e90f693c1d.zip-extract/kafka-4.2.0-src/bin/trogdor.sh

Path
kafka_neu-76e4d1b5-8b7b-4eb8-ad4b-86e90f693c1d.zip-extract/kafka-4.2.0-src/bin/trogdor.sh
Status
scanned
Type
file
Name
trogdor.sh
Extension
.sh
Programming language
Bash
Mime type
text/x-shellscript
File type
Bourne-Again shell script, ASCII text executable
Tag

      
    
Rootfs path

      
    
Size
1714 (1.7 KB)
MD5
50cc91347eeba504948edece2d361040
SHA1
4c2c01cee7765a5a36bae010891efa316aac37ac
SHA256
8acb88f26a673954e9dde7837975c8d674af90c208c92f3bf0acfef6a876f3ab
SHA512

      
    
SHA1_git
3324c4ea8ec3e7ae8d687d67250d8bfd71ec98cf
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
trogdor.sh | 1.7 KB |

#!/bin/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. usage() { cat <<EOF The Trogdor fault injector. Usage: $0 [action] [options] Actions: agent: Run the trogdor agent. coordinator: Run the trogdor coordinator. client: Run the client which communicates with the trogdor coordinator. agent-client: Run the client which communicates with the trogdor agent. help: This help message. EOF } if [[ $# -lt 1 ]]; then usage exit 0 fi action="${1}" shift CLASS="" case ${action} in agent) CLASS="org.apache.kafka.trogdor.agent.Agent";; coordinator) CLASS="org.apache.kafka.trogdor.coordinator.Coordinator";; client) CLASS="org.apache.kafka.trogdor.coordinator.CoordinatorClient";; agent-client) CLASS="org.apache.kafka.trogdor.agent.AgentClient";; help) usage; exit 0;; *) echo "Unknown action '${action}'. Type '$0 help' for help."; exit 1;; esac export INCLUDE_TEST_JARS=1 exec $(dirname $0)/kafka-run-class.sh "${CLASS}" "$@"
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
50.21
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