Running the Test Script
Using Flink and Kafka Coming with Yahoo Streaming Benchmark
In this test, Yahoo Streaming Benchmark is stored in the /opt/yahoo-streaming-benchmark directory.
- Generate the benchmarkConf.yaml configuration file.
1 2
cd /opt/yahoo-streaming-benchmark ./stream-bench.sh SETUP
- Test the Flink performance.
1./stream-bench.sh FLINK_TEST
Using Customized Flink and Kafka
Start Kafka before using.
- Go to the /opt/yahoo-streaming-benchmark directory where Yahoo Streaming Benchmark is stored.
1cd /opt/yahoo-streaming-benchmark
- Modify the stream-bench.sh script.
- Open the script.
1vi stream-bench.sh - Press i to enter the insert mode and comment out the following three lines of code:
# run "START_ZK" # run "STOP_KAFKA" # run "STOP_ZK"
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the script.
- Generate the benchmarkConf.yaml configuration file.
1 2
cd /opt/yahoo-streaming-benchmark ./stream-bench.sh SETUP
- Test the Flink performance.
1./stream-bench.sh FLINK_TEST
Parent topic: Testing Flink