coniferous-cmd opened a new issue, #17923:
URL: https://github.com/apache/iotdb/issues/17923

   # [Bug] 已配置 `enable_mqtt_service=true`,创建 Topic 时仍提示 `Subscription is not 
enabled`
   
   ## 问题描述
   
   在 IoTDB 中开启 MQTT 服务后,尝试创建 Topic 用于数据订阅,但仍然报错:
   
   ```text
   Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 1912: Subscription is not 
enabled.
   ```
   
   ## 环境信息
   
   * IoTDB 版本:2.0.8
   * 部署方式:单机
   * 操作系统:centos7
   
   ## 配置内容
   
   在 `iotdb-system.properties` 中配置:
   
   ```properties
   enable_mqtt_service=true
   ```
   
   修改配置后已重启 IoTDB 服务。
   
   ## 复现步骤
   
   1. 修改配置:
   
   ```properties
   enable_mqtt_service=true
   ```
   
   2. 重启 IoTDB。
   
   3. 使用 CLI 或 JDBC 连接数据库。
   
   4. 执行创建 Topic 语句:
   
   ```sql
   CREATE TOPIC test_topic;
   ```
   
   5. 返回错误:
   
   ```text
   Msg: org.apache.iotdb.jdbc.IoTDBSQLException: 1912: Subscription is not 
enabled.
   ```
   
   ## 实际结果
   
   创建 Topic 失败,并提示:
   
   ```text
   Subscription is not enabled.
   ```
   
   ## 问题分析
   
   目前看到的配置项为:
   
   ```properties
   enable_mqtt_service=true
   ```
   
   但执行:
   
   ```sql
   CREATE TOPIC test_topic;
   ```
   
   时提示 Subscription 未开启。
   
   希望开发团队能够帮助确认。
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to