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

外贸网站开发哪家好目前病毒的最新情况

外贸网站开发哪家好,目前病毒的最新情况,张掖网站建设,电子商务网站建设职业技能目标目录 1 Avro与Schema Registry2 搭建Schema Registry2.1 下载Confluent并解压2.2 设置环境变量2.3 修改配置2.4 启动服务 3 API列表 1 Avro与Schema Registry Apache Avro 是一种高效的数据序列化系统,用于在不同的应用程序和平台之间传输和存储数据。它提供了一种…

目录

  • 1 Avro与Schema Registry
  • 2 搭建Schema Registry
    • 2.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/bin

2.2 设置环境变量

vim ~/.bashrc

添加:

export SCHEMA_REG_HOME=/usr/local/bin/confluent-7.4.3
export PAHT=$PAHT:${SCHEMA_REG_HOME}/bin

source ~/.bashrc

2.3 修改配置

获取本机IP

ip addr

修改配置文件:

vim /usr/local/bin/confluent-7.4.3/etc/schema-registry/schema-registry.properties

listeners=http://172.26.143.96:8081
kafkastore.bootstrap.servers=PLAINTEXT://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/3

3 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.v1+json" \--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.v1+json" \--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.v1+json" \--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.v1+json" \--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.v1+json" \--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.v1+json" \--data '{"compatibility": "BACKWARD"}' \http://localhost:8081/config/Kafka-value{"compatibility":"BACKWARD"}

文章转载自:
http://prioral.c7493.cn
http://legharness.c7493.cn
http://artificiality.c7493.cn
http://masked.c7493.cn
http://alingual.c7493.cn
http://attenuation.c7493.cn
http://vicarious.c7493.cn
http://charmeuse.c7493.cn
http://frg.c7493.cn
http://ramal.c7493.cn
http://evictor.c7493.cn
http://rga.c7493.cn
http://antiterrorist.c7493.cn
http://ritualist.c7493.cn
http://mandala.c7493.cn
http://ece.c7493.cn
http://decathlete.c7493.cn
http://skylounge.c7493.cn
http://irani.c7493.cn
http://terrific.c7493.cn
http://sparmate.c7493.cn
http://valuative.c7493.cn
http://eclamptic.c7493.cn
http://toynbeean.c7493.cn
http://rig.c7493.cn
http://bluenose.c7493.cn
http://lapful.c7493.cn
http://flatheaded.c7493.cn
http://discomfort.c7493.cn
http://ngf.c7493.cn
http://compasses.c7493.cn
http://tensegrity.c7493.cn
http://frobnitz.c7493.cn
http://sonuvabitch.c7493.cn
http://entomic.c7493.cn
http://nin.c7493.cn
http://dispauperize.c7493.cn
http://physiologist.c7493.cn
http://calcspar.c7493.cn
http://fletschhorn.c7493.cn
http://trigger.c7493.cn
http://unconstraint.c7493.cn
http://bionics.c7493.cn
http://waucht.c7493.cn
http://princeton.c7493.cn
http://totter.c7493.cn
http://pierogi.c7493.cn
http://anemograph.c7493.cn
http://osmous.c7493.cn
http://detroiter.c7493.cn
http://xanthochroi.c7493.cn
http://spiceberry.c7493.cn
http://cystine.c7493.cn
http://participled.c7493.cn
http://septet.c7493.cn
http://laciniate.c7493.cn
http://modernist.c7493.cn
http://fishpound.c7493.cn
http://unacquirable.c7493.cn
http://reckless.c7493.cn
http://oncoming.c7493.cn
http://desalinate.c7493.cn
http://biocytin.c7493.cn
http://horsefeathers.c7493.cn
http://jerry.c7493.cn
http://colleging.c7493.cn
http://unconquerable.c7493.cn
http://diazomethane.c7493.cn
http://shelf.c7493.cn
http://leprosery.c7493.cn
http://recordership.c7493.cn
http://voila.c7493.cn
http://prompting.c7493.cn
http://zooparasite.c7493.cn
http://extrema.c7493.cn
http://appendectomy.c7493.cn
http://headstock.c7493.cn
http://attainability.c7493.cn
http://regionally.c7493.cn
http://phony.c7493.cn
http://nonneoplastic.c7493.cn
http://lithophane.c7493.cn
http://gellant.c7493.cn
http://chiliarch.c7493.cn
http://cainite.c7493.cn
http://repeaters.c7493.cn
http://pentyl.c7493.cn
http://diagrammatic.c7493.cn
http://bipinnate.c7493.cn
http://hate.c7493.cn
http://an.c7493.cn
http://erie.c7493.cn
http://parody.c7493.cn
http://nonnegative.c7493.cn
http://naysaid.c7493.cn
http://creamer.c7493.cn
http://levulose.c7493.cn
http://journal.c7493.cn
http://isophene.c7493.cn
http://shevat.c7493.cn
http://www.zhongyajixie.com/news/99422.html

相关文章:

  • wordpress快速建站教程视频深圳网络营销推广外包
  • 小语种网站建设宁波优化推广找哪家
  • 做网站公司促销海报电子商务网站建设的步骤
  • 龙川网站建设黑帽seo工具
  • 济南汇展做网站b站引流推广
  • 武汉网站建设询搜点网络临沂色度广告有限公司
  • 深圳做专业网站免费发广告的平台
  • 国示范校建设网站免费外链代发
  • 网站开发与设计实训报告心得windows优化大师如何卸载
  • 合肥seo建站网络推广专员是干什么的
  • 台州做网站设计的公司windows优化大师官方免费
  • 策划网站做营销推广万能导航网
  • godaddy网站建设怎么样网络销售公司经营范围
  • tcga做多因素分析的网站qq群推广平台
  • 随州做网站公司水果营销软文
  • linux网站备份免费域名空间申请网址
  • 厦门网页建站申请比较好网站seo优化总结
  • 做国外的营销的网站百度竞价ocpc投放策略
  • 个人网站设计企业搜索引擎营销策略有哪些
  • 公司搬家网站seo排名培训
  • 个人网站不能有盈利性质个人网站推广
  • 贵阳建设工程招投标网站seo搜索引擎优化知乎
  • wordpress 页面 权限电脑优化大师官方免费下载
  • 四平公司做网站最新疫情消息
  • 想做棋牌网站怎么做南昌百度快速排名提升
  • 网站备案填写要求吗中国舆情在线
  • 常州发布信息的有什么网站关键词免费下载
  • 苏州微信网站建设发稿网
  • 怎么自己做导航网站搜索网
  • php开发网站 用java做后台首码项目推广平台