安装Nexmark
- 下载nexmark-flink.tgz到物理机“/opt”目录中并解压。
1 2 3 4 5
cd /opt wget --no-check-certificate https://github.com/nexmark/nexmark/releases/download/v0.2.0/nexmark-flink.tgz tar xzf nexmark-flink.tgz mv nexmark-flink nexmark chown -R root:root nexmark
- 修改nexmark配置文件。
- 打开“/opt/nexmark/conf/nexmark.yaml”文件。
1
vi /opt/nexmark/conf/nexmark.yaml
- 按“i”进入编辑模式,将文件内容替换为如下。并修改nexmark.metric.reporter.host为flink_jm_8c32g容器的ID。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
################################################################################ # 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. ################################################################################ #============================================================================== # Rest & web frontend #============================================================================== # The metric reporter server host. nexmark.metric.reporter.host: 4a376b30106b # The metric reporter server port. nexmark.metric.reporter.port: 9098 #============================================================================== # Benchmark workload configuration (events.num) #============================================================================== nexmark.workload.suite.100m.events.num: 50000000 nexmark.workload.suite.100m.tps: 10000000 nexmark.workload.suite.100m.queries: "q0,q1,q2,q3,q4,q5,q7,q8,q9,q10,q11,q12,q13,q14,q15,q16,q17,q18,q19,q20,q21,q22" nexmark.workload.suite.100m.queries.cep: "q0,q1,q2,q3" nexmark.workload.suite.100m.warmup.duration: 120s nexmark.workload.suite.100m.warmup.events.num: 50000000 nexmark.workload.suite.100m.warmup.tps: 10000000 #============================================================================== # Benchmark workload configuration (tps, legacy mode) # Without events.num and with monitor.duration # NOTE: The numerical value of TPS is unstable #============================================================================== # When to monitor the metrics, default 3min after job is started # nexmark.metric.monitor.delay: 3min # How long to monitor the metrics, default 3min, i.e. monitor from 3min to 6min after job is started # nexmark.metric.monitor.duration: 3min # nexmark.workload.suite.10m.tps: 10000000 # nexmark.workload.suite.10m.queries: "q0,q1,q2,q3,q4,q5,q7,q8,q9,q10,q11,q12,q13,q14,q15,q16,q17,q18,q19,q20,q21,q22" #============================================================================== # Workload for data generation #============================================================================== nexmark.workload.suite.datagen.tps: 1000000 nexmark.workload.suite.datagen.queries: "insert_kafka" nexmark.workload.suite.datagen.queries.cep: "insert_kafka" #============================================================================== # Flink REST #============================================================================== flink.rest.address: localhost flink.rest.port: 8081 #============================================================================== # Kafka config #============================================================================== # kafka.bootstrap.servers: ***:9092
- 按“Esc”键,输入:wq!,按“Enter”保存并退出编辑。
- 打开“/opt/nexmark/conf/nexmark.yaml”文件。
父主题: 安装基础环境