当前位置: 首页 > news >正文

免费申请企业网站如何做团购网站

免费申请企业网站,如何做团购网站,杭州建设交易网,有什么好的设计网站目录 1 Avro与Schema Registry2 搭建Schema Registry2.1 下载Confluent并解压2.2 设置环境变量2.3 修改配置2.4 启动服务 3 API列表 1 Avro与Schema Registry Apache Avro 是一种高效的数据序列化系统#xff0c;用于在不同的应用程序和平台之间传输和存储数据。它提供了一种… 目录 1 Avro与Schema Registry2 搭建Schema Registry2.1 下载Confluent并解压2.2 设置环境变量2.3 修改配置2.4 启动服务 3 API列表 1 Avro与Schema Registry Apache Avro 是一种高效的数据序列化系统用于在不同的应用程序和平台之间传输和存储数据。它提供了一种紧凑且高效的二进制数据编码格式相比其他常见的序列化方式Avro能够实现更快的序列化和更小的数据存储。 而Confluent Schema Registry是由Confluent公司提供的一个开源组件旨在解决分布式系统中的数据模式演化和兼容性的问题。它是建立在Apache Avro之上的一个服务可以用于集中管理和存储Avro数据的模式Schema确保分布式系统中的数据一致性和兼容性。它广泛应用于事件流处理平台如Kafka为数据流的可靠性和互操作性提供了支持。 2 搭建Schema Registry 2.1 下载Confluent并解压 curl -O https://packages.confluent.io/archive/7.4/confluent-community-7.4.3.tar.gz sudo tar xvf confluent-community-7.4.3.tar.gz -C /usr/local/bin2.2 设置环境变量 vim ~/.bashrc添加 export SCHEMA_REG_HOME/usr/local/bin/confluent-7.4.3 export PAHT$PAHT:${SCHEMA_REG_HOME}/bin source ~/.bashrc2.3 修改配置 获取本机IP ip addr修改配置文件 vim /usr/local/bin/confluent-7.4.3/etc/schema-registry/schema-registry.propertieslistenershttp://172.26.143.96:8081 kafkastore.bootstrap.serversPLAINTEXT://172.26.143.96:9092 2.4 启动服务 schema-registry-start $SCHEMA_REG_HOME/etc/schema-registry/schema-registry.properties调用API curl -X GET http://172.26.143.96:8081/subjects curl -X GET http://172.26.143.96:8081/subjects/product-value/versions curl -X GET http://172.26.143.96:8081/schemas/ids/33 API列表 更多信息可参考 Confluent Schema Registry开发指南 # Register a new version of a schema under the subject Kafka-key $ curl -X POST -H Content-Type: application/vnd.schemaregistry.v1json \--data {schema: {\type\: \string\}} \http://localhost:8081/subjects/Kafka-key/versions{id:1}# Register a new version of a schema under the subject Kafka-value $ curl -X POST -H Content-Type: application/vnd.schemaregistry.v1json \--data {schema: {\type\: \string\}} \http://localhost:8081/subjects/Kafka-value/versions{id:1}# List all subjects $ curl -X GET http://localhost:8081/subjects[Kafka-value,Kafka-key]# List all schema versions registered under the subject Kafka-value $ curl -X GET http://localhost:8081/subjects/Kafka-value/versions[1]# Fetch a schema by globally unique id 1 $ curl -X GET http://localhost:8081/schemas/ids/1{schema:\string\}# Fetch version 1 of the schema registered under subject Kafka-value $ curl -X GET http://localhost:8081/subjects/Kafka-value/versions/1{subject:Kafka-value,version:1,id:1,schema:\string\}# Fetch the most recently registered schema under subject Kafka-value $ curl -X GET http://localhost:8081/subjects/Kafka-value/versions/latest{subject:Kafka-value,version:1,id:1,schema:\string\}# Delete version 3 of the schema registered under subject Kafka-value $ curl -X DELETE http://localhost:8081/subjects/Kafka-value/versions/33# Delete all versions of the schema registered under subject Kafka-value $ curl -X DELETE http://localhost:8081/subjects/Kafka-value[1, 2, 3, 4, 5]# Check whether a schema has been registered under subject Kafka-key $ curl -X POST -H Content-Type: application/vnd.schemaregistry.v1json \--data {schema: {\type\: \string\}} \http://localhost:8081/subjects/Kafka-key{subject:Kafka-key,version:1,id:1,schema:\string\}# Test compatibility of a schema with the latest schema under subject Kafka-value $ curl -X POST -H Content-Type: application/vnd.schemaregistry.v1json \--data {schema: {\type\: \string\}} \http://localhost:8081/compatibility/subjects/Kafka-value/versions/latest{is_compatible:true}# Get top level config $ curl -X GET http://localhost:8081/config{compatibilityLevel:BACKWARD}# Update compatibility requirements globally $ curl -X PUT -H Content-Type: application/vnd.schemaregistry.v1json \--data {compatibility: NONE} \http://localhost:8081/config{compatibility:NONE}# Update compatibility requirements under the subject Kafka-value $ curl -X PUT -H Content-Type: application/vnd.schemaregistry.v1json \--data {compatibility: BACKWARD} \http://localhost:8081/config/Kafka-value{compatibility:BACKWARD}
http://www.huolong8.cn/news/258078/

相关文章:

  • 有没有专业做二维码连接网站在一个空间只能放一个网站吗
  • 长兴县网站建设赣州建设部网站
  • 网站新闻后台怎么做中小型网站建设如何
  • 做美工用什么素材网站湛江seo推广公司
  • 长沙手机网站设计北京模板开发建站
  • 苏州seo关键词优化价格代码优化
  • 金融网站模板免费下载用源码做网站步骤
  • 建网站如何收费网站怎么做到秒收录
  • 上海商城网站开发稳定一天赚200块游戏
  • 金方时代做网站怎么样weekly做网站
  • 动态asp.net网站开发怎么做触屏版网站
  • 北京p2p网站建设wordpress自定义注册邮件
  • 工业设计作品集网站福州全网营销推广公司
  • 网站开发用什么语言最好一键优化软件
  • 网站建设平台哪个公司好网页制作与设计src什么意思
  • 免费查公司的网站手机网站前端
  • 杭州钱塘区网站建设网站设计怎么好看
  • 怎样做网站卖东西 自己有货网站空间哪家好
  • 常熟外贸网站建设建筑人才网最新招聘信息发布
  • 企业php 网站系统企业门户网站建设情况
  • 网站 前台 设计要求建筑公司简介模板 范本
  • 展厅装修设计公司有wordpress织梦seo
  • 商城网站建设找谁做留手机号广告
  • 东莞网站推广运营网站引导页动画
  • 大足网站建设西安国际网站设计
  • 南京鼓楼做网站公司个人博客怎么做
  • 设计网站 f杭州 平台 公司 网站建设
  • 上海网站网站建设网站统计cnzz
  • 怎样快速安装wordpressseo推广具体做什么
  • 门户网站建设的作用及意义昆山苏州网站建设