参考:
https://www.confluent.io/
https://www.confluent.io/previous-versions/
https://docs.confluent.io/platform/7.4/installation/installing_cp/zip-tar.html
https://blog.csdn.net/wuxintdrh/article/details/119594987
要点:
1、下载解压
wget https://packages.confluent.io/archive/7.4/confluent-community-7.4.0.tar.gz
tar -zvxf confluent-community-7.4.0.tar.gz
2、检测端口是否被占用:
netstat -anp | grep 8081
netstat -anp | grep 9092
8083端口没有被占用。
3、配置
listeners=http://0.0.0.0:8083
kafkastore.bootstrap.servers=PLAINTEXT://0.0.0.0:9093
4、启动
bin/schema-registry-start -daemon etc/schema-registry/schema-registry.properties
5、验证
curl http://localhost:8083/
{}
curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" --data '{"schema": "{"type": "string"}"}' http://localhost:8083/subjects/test-key/versions
{"id":1}
curl -X GET http://localhost:8083/subjects
["test-key"]
curl -X GET http://localhost:8083/config
{"compatibilityLevel":"BACKWARD"}