Skip to content

[Bug] 已配置 enable_mqtt_service=true,创建 Topic 时仍提示 Subscription is not enabled #17923

@coniferous-cmd

Description

@coniferous-cmd

[Bug] 已配置 enable_mqtt_service=true,创建 Topic 时仍提示 Subscription is not enabled

问题描述

在 IoTDB 中开启 MQTT 服务后,尝试创建 Topic 用于数据订阅,但仍然报错:

Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 1912: Subscription is not enabled.

环境信息

  • IoTDB 版本:2.0.8
  • 部署方式:单机
  • 操作系统:centos7

配置内容

iotdb-system.properties 中配置:

enable_mqtt_service=true

修改配置后已重启 IoTDB 服务。

复现步骤

  1. 修改配置:
enable_mqtt_service=true
  1. 重启 IoTDB。

  2. 使用 CLI 或 JDBC 连接数据库。

  3. 执行创建 Topic 语句:

CREATE TOPIC test_topic;
  1. 返回错误:
Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 1912: Subscription is not enabled.

实际结果

创建 Topic 失败,并提示:

Subscription is not enabled.

问题分析

目前看到的配置项为:

enable_mqtt_service=true

但执行:

CREATE TOPIC test_topic;

时提示 Subscription 未开启。

希望开发团队能够帮助确认。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions