github.com/pingcap/ticdc@v0.0.0-20220526033649-485a10ef2652/tests/_utils/run_kafka_consumer (about)

     1  #!/bin/bash
     2  
     3  # parameter 1: work directory
     4  # parameter 2: sink-uri
     5  # parameter 3: log suffix
     6  
     7  set -e
     8  
     9  workdir=$1
    10  sink_uri=$2
    11  log_suffix=$3
    12  pwd=$pwd
    13  
    14  echo "[$(date)] <<<<<< START kafka consumer in $TEST_NAME case >>>>>>"
    15  cd $workdir
    16  cdc_kafka_consumer --log-file $workdir/cdc_kafka_consumer$log_suffix.log --log-level info --upstream-uri $sink_uri --downstream-uri mysql://root@127.0.0.1:3306/ >> $workdir/cdc_kafka_consumer_stdout$log_suffix.log 2>&1 &
    17  cd $pwd