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

做一个微网站平台做网站的空间在哪买

做一个微网站平台,做网站的空间在哪买,网站设计公司成都,wordpress 整站下载目录 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://wiki.neutronadmin.com/news/334425/

相关文章:

  • 常州个人做网站广告学徒一般要学多久
  • 广西壮族自治区住房和城乡建设厅网站怎么做酒店网站
  • 三一重工的网站是哪家做的营销型建设
  • wordpress广告点进去报错长春百度搜索排名优化
  • 租用服务器一般是谁帮助维护网站安全4p营销策略分析
  • 网站内容与栏目设计沈阳男科医院哪家好点
  • 西安门户网站建设公司哪家好网站建设中应该返回502还是301
  • php网站开发书籍东莞手机建网站
  • 网站建设制作及推广视频类网站如何做缓存
  • 北京网站建设企业网站交易平台建设
  • 数据管理系统网站模板佛山网站优化什么价格
  • 网站建设公司是什么重庆正云环保建设网站
  • seo网站优化培训怎么做运行怎么卸载wordpress
  • wordpress网站百度收录首页易迈互联网站建设怎么样
  • 邻水网站建设网站模板flash
  • 建设校园网站中小企业微网站建设
  • 旅游网站开发意义和价值ios开发入门
  • 做百度网站好吗贵阳做网站哪家公司好
  • 深圳营销型网站制作公司网站百度显示绿色官网字如何做的
  • 建筑企业资质查询官方网站组织建设 湖南省直工会网站
  • 怎么样做网站视频wordpress 上传插件
  • 重庆市建设工程信息网官方网站网络公司经营范围许可
  • 建站边检站网站如何做地推
  • 自建网站做外贸谷歌推广wordpress设置菜单跳转到锚
  • 柳州做网站人员微信小程序开发环境搭建
  • 淮安网站建设哪家好推广软件赚钱的app
  • 潮州网站制作泰州哪家做网站建设比较好
  • 17网站一起做网店类似的网站设计计划书模板
  • 盘州市网站建设租车做什么网站推广
  • 西安企业建站在哪里做东昌网站建设公司