赞
踩
docker run -d \
--net=host \
--name=kafka-rest-docker \
-e KAFKA_REST_ZOOKEEPER_CONNECT=192.168.0.66:42181 \
-e KAFKA_REST_LISTENERS=http://192.168.0.66:48082 \
-e KAFKA_REST_HOST_NAME=192.168.0.66 \
confluentinc/cp-kafka-rest:4.0.0
http://192.168.0.66:48082/topics
http://192.168.0.66:48082/topics/test
Accept:application/vnd.kafka.v2+json, application/vnd.kafka+json, application/json
Content-Type:application/vnd.kafka.json.v2+json
{
"records": [
{
"value": {"sadfsdf":"dfdd"}
}
]
}
{
"offsets": [
{
"partition": 0,
"offset": 346,
"error_code": null,
"error": null
}
],
"key_schema_id": null,
"value_schema_id": null
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。