Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TDengine Sink Connector写入数据报 java.sql.SQLException: ERROR (0x2319): user is required #27971

Open
wow-byte opened this issue Sep 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@wow-byte
Copy link

wow-byte commented Sep 19, 2024

根据官网https://docs.taosdata.com/third-party/collection/kafka/#tdengine-sink-connector-%E7%9A%84%E4%BD%BF%E7%94%A8
TDengine Kafka Connector教程,写入数据报错
taos版本
image
kafka插件版本
image

sink-demo.json 创建实例返回
[root@localhost kafka]# curl -X POST -d @sink-demo.json http://localhost:8089/connectors -H "Content-Type: application/json"
{"name":"TDengineSinkConnector","config":{"connector.class":"com.taosdata.kafka.connect.sink.TDengineSinkConnector","tasks.max":"1","topics":"meters","connection.url":"jdbc:TAOS-RS://192.168.50.1:6041","connection.user":"root","connection.password":"taosdata","connection.database":"power","db.schemaless":"line","data.precision":"ms","key.converter":"org.apache.kafka.connect.storage.StringConverter","value.converter":"org.apache.kafka.connect.storage.StringConverter","errors.tolerance":"all","errors.deadletterqueue.topic.name":"dead_letter_topic","errors.deadletterqueue.topic.replication.factor":"1","name":"TDengineSinkConnector"},"tasks":[],"type":"sink"}

image

cat test-data.txt | /opt/kafka/bin/kafka-console-producer.sh --broker-list 192.168.50.37:9092 --topic meters

写入数据报错日志

3781b6d71bed40f2d3eb2bd51168ebc
查看数据库,power创建成功了,表数据没写入

@wow-byte wow-byte added the bug Something isn't working label Sep 19, 2024
@yu285
Copy link
Contributor

yu285 commented Oct 13, 2024

麻烦提供数据库这一侧的版本信息

@ccccccn
Copy link

ccccccn commented Oct 22, 2024

大佬,
请问这个写入日志的文件是哪个?我也在解决kafka的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants