BKAFKA

百度流式计算 BSC

  • 产品定价
  • 功能发布记录
  • 产品描述
    • 产品优势
    • 应用场景
    • 产品功能
    • 核心概念
    • 概述
  • 快速入门
    • 开通服务
    • 开发作业
  • 典型实践
    • CDN 日志提取中转(ETL)
    • API 日志调用统计
    • CDN 接口日志聚合统计
    • 物联网设备实时报警统计(流表Join)
    • 物设备报警情况实时统计
    • 物联网设备实时监控预警
  • 操作指南
    • 多用户访问控制
    • 作业运维
    • 扩展内置函数
    • 编辑作业
    • 模板管理
    • 新增作业
    • 资源管理
  • API参考
    • 接口概述
    • 通用说明
    • 公共头
    • 模板相关接口
    • 模型定义
    • 服务域名
    • 请求返回格式
    • 作业实例相关接口
    • 作业相关接口
    • 资源相关接口
  • 常见问题
    • 一般问题
  • 自定义JAR作业
    • Flink自定义JAR作业
    • Spark自定义JAR作业
  • SQL
    • DML语句
    • SET 语句
    • 内置函数
    • 标识符和关键字
    • 窗口函数
    • 概述
    • DDL 语句
      • KAFKA
      • Formats
      • ES
      • Overview
      • PALO
      • TSDB
      • BKAFKA
      • RDS
      • BOS
      • MQTT
所有文档
menu
没有找到结果,请重新输入

百度流式计算 BSC

  • 产品定价
  • 功能发布记录
  • 产品描述
    • 产品优势
    • 应用场景
    • 产品功能
    • 核心概念
    • 概述
  • 快速入门
    • 开通服务
    • 开发作业
  • 典型实践
    • CDN 日志提取中转(ETL)
    • API 日志调用统计
    • CDN 接口日志聚合统计
    • 物联网设备实时报警统计(流表Join)
    • 物设备报警情况实时统计
    • 物联网设备实时监控预警
  • 操作指南
    • 多用户访问控制
    • 作业运维
    • 扩展内置函数
    • 编辑作业
    • 模板管理
    • 新增作业
    • 资源管理
  • API参考
    • 接口概述
    • 通用说明
    • 公共头
    • 模板相关接口
    • 模型定义
    • 服务域名
    • 请求返回格式
    • 作业实例相关接口
    • 作业相关接口
    • 资源相关接口
  • 常见问题
    • 一般问题
  • 自定义JAR作业
    • Flink自定义JAR作业
    • Spark自定义JAR作业
  • SQL
    • DML语句
    • SET 语句
    • 内置函数
    • 标识符和关键字
    • 窗口函数
    • 概述
    • DDL 语句
      • KAFKA
      • Formats
      • ES
      • Overview
      • PALO
      • TSDB
      • BKAFKA
      • RDS
      • BOS
      • MQTT
  • 文档中心
  • arrow
  • 百度流式计算BSC
  • arrow
  • SQL
  • arrow
  • DDL 语句
  • arrow
  • BKAFKA
本页目录
  • BKAFKA DDL
  • BKAFKA 参数设置

BKAFKA

更新时间:2025-08-21

BKAFKA DDL

FLINK
1CREATE TABLE kafka_table (
2    `field01` STRING,
3    `field02` BIGINT,
4    `field03` FLOAT,
5    `field04` BINARY,
6    `field05` INT,
7    `field06` TINYINT,
8    `field07` BOOLEAN,
9    `field08` DATA,
10    `field09` DOUBLE,
11    `field10` SMALLINT
12) WITH (
13    'connector.type' = 'KAFKA',
14    'format.encode' = 'JSON',
15    'connector.topic' = 'topic_name',
16    'connector.properties.bootstrap.servers' = 'localhost:9092',
17    'connector.properties.group.id' = 'test_group',
18    'connector.properties.ssl.filename' = 'kafka-key.zip',
19    'connector.read.startup.mode' = 'specific',
20    'connector.read.startup.specific-offsets' = 'partition:0,offset:42;partition:1,offset:300'
21);

BKAFKA 参数设置

名称 简称 是否必填 用例 SPARK FLINK 说明
connector.type type Y BKAFKA Y Y 服务类型
format.encode encode Y JSON / CSV Y Y 数据编码
connector.version version 0.11 KAFKA 集群版本
connector.topic topic Y topicName Y Y KAFKA TOPIC名称
connector.properties.bootstrap.servers bootstrap.servers Y localhost:9092 Y Y KAFKA SERVER地址
connector.properties.group.id group.id test_group Y KAFKA GROUP ID
connector.properties.ssl.filename ssl.filename Y kafka-key.zip Y Y KAFKA 证书名称
connector.read.startup.mode startup.mode earliest / latest / specific Y KAFKA 启动模式
connector.read.startup.specific-offsets startup.specific-offsets partition:0,offset:42;partition:1,offset:300 Y 指定 KAFKA 启动的 offset
connector.read.starting-offsets starting-offsets earliest / latest / {"topicA":{"0":23,"1":-1},"topicB":{"0":-2}} Y 指定 kafka 的启动位置
connector.read.ending-offsets ending-offsets {"topic1":{"0":50,"1":-1},"topic2":{"0":-1}} Y 指定 kafka 的结束位置
connector.read.fail-on-data-loss fail-on-data-loss true / false Y
connector.read.max-offsets-per-trigger max-offsets-per-trigger 1000 Y

上一篇
TSDB
下一篇
RDS