本地运行Confluent Platform时,Schema Registry的默认访问凭证是什么?
本地Confluent Schema Registry默认凭证与命令报错解决
一、本地Schema Registry默认凭证
通过confluent local services start启动本地服务且未修改默认配置时:
- Schema Registry默认未启用认证机制,访问
http://localhost:8081不需要任何用户名或密码 - 可直接用无认证的请求测试,比如执行
curl http://localhost:8081/subjects,就能获取当前Schema Registry中的主题列表
二、命令报错“Error: you must log in to use this command”的解决
你执行的confluent schema-registry schema list是Confluent Cloud专属CLI命令,默认指向云环境,因此会要求登录Confluent Cloud账户。
要管理本地Schema Registry,需使用带local前缀的命令,正确的列表命令为:
confluent local schema-registry schema list --schema-registry-endpoint http://localhost:8081
添加local前缀后,CLI会针对本地运行的服务执行操作,不再关联Confluent Cloud。
内容的提问来源于stack exchange,提问作者rkrishnan
相关产品推荐
相关产品推荐

