Comments (6)
confluent-5.0.0
// 20200608132645
// http://10.5.3.125:8088/info
{
"KsqlServerInfo": {
"version": "5.0.0",
"kafkaClusterId": "ISsR3iwISiKafPcLW_UkxA",
"ksqlServiceId": "default_"
}
}
[root@esTest iflytek]# curl -X "POST" "http://10.5.3.125:8088/ksql" \
-H "Content-Type: application/json; charset=utf-8" \ -d $'{
"ksql": "LIST tables;",
"streamsProperties": {}
}'
[{"@type":"tables","statementText":"LIST tables;","tables":[{"type":"TABLE","name":"T","topic":"json","format":"JSON","isWindowed":false},{"type":"TABLE","name":"USERS_ORIGINAL","topic":"json1","format":"JSON","isWindowed":false}]}][root@esTest iflytek]#
from kcenter.
@ljhan2 应该是版本问题,目前支持5.3,5.4.未来一周内支持ksql db0.9。由于ksql接口变化,目前无法支持以下版本。
from kcenter.
能看得懂中文就好,问题我大体上排查了一下,原因如下:
curl -X "POST" "http://10.5.3.125:8088/ksql"
-H "Content-Type: application/json; charset=utf-8"
-d $'{
"ksql": "DESCRIBE EXTENDED T;",
"id":"fhswk-kafka|default_"
}'
其中包含了 "id":"fhswk-kafka|default_"会导致运行结果出错,去掉则正确
curl -X "POST" "http://10.5.3.125:8088/ksql"
-H "Content-Type: application/json; charset=utf-8"
-d $'{
"ksql": "DESCRIBE EXTENDED T;"
}'
需要修改的代码注释即可
另外websocket监听部分协议也需要适配下
curl -X "POST" "http://10.5.3.125:8088/query"
-H "Content-Type: application/vnd.ksql.v1+json; charset=utf-8"
-d $'{
"ksql": "select * from USERS_ORIGINAL;",
"streamsProperties": {}
}'==>这样错误,需要改成
curl -X "POST" "http://10.5.3.125:8088/query"
-H "Content-Type: application/json; charset=utf-8"
-d $'{
"ksql": "select * from USERS_ORIGINAL;",
"streamsProperties": {}
}'
代码位置如下
看你的回复是目前支持5.3,5.4.建议通过
查看版本信息进行针对性的适配处理,另外提个意见
建议以追加模式以表格的形式进行展示,且带上字段名称。
看好这个工具,望越做越好
from kcenter.
from kcenter.
@ljhan2 感谢回复!我们会持续改进的。
Content-Type: application/vnd.ksql.v1+json; charset=utf-8
是因为ksql rest api 需要,虽然目前两个都可以工作,整体来看还是需要修改为官方文档需要的类型。
from kcenter.
目前marter已经支持ksql0.9.0
from kcenter.
Related Issues (20)
- 使用docker-compose快速启动 HOT 7
- 启动后访问8080报错,ERROR 401 HOT 6
- 本地服务起来之后,访问http://localhost:8080/ 没反应 HOT 1
- 停止维护了? HOT 1
- Can we see the each message detail content of topics in kafkaCenter? HOT 1
- Adding a new message to a topic from Dashboard HOT 1
- Condition 'admin!=null' is always 'true' HOT 2
- OAuth Scopes Issues HOT 3
- kafkacenter-2.3.0目前支持的kafka和zookeeper版本是多少 HOT 6
- ksql使用问题
- 编译完运行localhost:8080打不开 报401错误 HOT 2
- kafkaCenter连接不上cdp集群内的kafka HOT 3
- 项目jar包跑起来,一点用的没有。根本运行不起来 HOT 3
- 无法正确获取Kafka监控数据 HOT 2
- 本地安装时,最新的发行包应该放在什么位置?启动方式是否需要指定 HOT 1
- Cannot add a new cluster because zkaddress is inactiveadd new HOT 1
- 创建完connect,点击add添加connetc job直接跳转到首页是怎么回事儿 HOT 1
- kcenter 不支持ES使用https连接导致启动报错
- kcenter 添加用户和team后无法正常显示,重复添加时又报错用户存在 HOT 3
- 不支持AWS msk HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kcenter.