{"id":423,"date":"2023-11-30T15:38:59","date_gmt":"2023-11-30T07:38:59","guid":{"rendered":"http:\/\/mapleleaf666.vip\/?p=423"},"modified":"2023-11-30T15:39:00","modified_gmt":"2023-11-30T07:39:00","slug":"kafka%e7%9a%84%e5%ae%89%e8%a3%85%e9%83%a8%e7%bd%b2","status":"publish","type":"post","link":"http:\/\/mapleleaf666.vip\/?p=423","title":{"rendered":"Kafka\u7684\u5b89\u88c5\u90e8\u7f72"},"content":{"rendered":"\n<p>\u672c\u6587\u4e3b\u8981\u9488\u5bf9\u7684\u662f\u5355\u8282\u70b9\u5355Broker\u7684\u90e8\u7f72<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u51c6\u5907\u5de5\u4f5c\uff1a\u5b89\u88c5zookeeper<\/h2>\n\n\n\n<p>1. kafka\u5728\u4f7f\u7528\u65f6\u4f9d\u8d56\u4e8ezookeeper\uff0c\u6240\u4ee5\u9700\u8981\u5148\u6309\u7167\u597d\uff0c\u5982\u679c\u6709\u4e86\u53ef\u4ee5\u76f4\u63a5\u8fdb\u884c\u4e0b\u4e00\u6b65\u3002<\/p>\n\n\n\n<p>2. \u901a\u8fc7<a href=\"https:\/\/zookeeper.apache.org\/releases.html\">\u94fe\u63a5<\/a>\u4e0b\u8f7dzookeeper\uff0c\u5e76\u628a\u538b\u7f29\u5305\u4f20\u4e0a\u670d\u52a1\u5668<\/p>\n\n\n\n<p>3. \u89e3\u538bzookeeper<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tar -zxvf apache-zookeeper-3.8.1-bin.tar.gz<\/code><\/pre>\n\n\n\n<p>4. \u7136\u540e\u6dfb\u52a0\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Zookeeper Environment Variable<br>export ZOOKEEPER_HOME=\u4f60\u7684\u8def\u5f84\/zookeeper-3.8.1<br>export PATH=$PATH:$ZOOKEEPER_HOME\/bin<\/code><\/pre>\n\n\n\n<p>5. \u8fdb\u5165conf\u76ee\u5f55\u4e0b\uff0c\u590d\u5236zoo_sample.cfg\u6587\u4ef6\u91cd\u547d\u540d\u4e3azoo.cfg\uff0c\u4fee\u6539\u5982\u4e0b\u914d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u6570\u636e\u7684\u5b58\u653e\u76ee\u5f55<br>dataDir=\u4f60\u81ea\u5df1\u7684\u8def\u5f84\/zookeeper-3.8.1\/zkdata<br># \u7aef\u53e3\uff0c\u9ed8\u8ba4\u5c31\u662f2181<br>clientPort=2181<br>\u200b<br>#zookeeper\u670d\u52a1\u9ed8\u8ba4\u4f7f\u7528\u7684\u7aef\u53e3\u662f8080\uff0c\u4f46\u662f\u8be5\u7aef\u53e3\u5f80\u5f80\u4f1a\u88ab\u5360\u7528\uff0c\u6ce8\u610f\u4fee\u6539\uff0c\u6211\u7528\u7684\u662f8081<br>admin.serverPort=8081<\/code><\/pre>\n\n\n\n<p>6. \u542f\u52a8zookeeper\uff0c\u82e5\u901a\u8fc7jps\u53ef\u4ee5\u770b\u5230QuorumPeerMain\u8fdb\u7a0b\uff0c\u8bf4\u660e\u542f\u52a8\u6210\u529f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>zkServer.sh start<br>zkServer.sh stop<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u90e8\u7f72Kafka\uff1a\u5355\u8282\u70b9\u5355Broker<\/h2>\n\n\n\n<p>1. \u53bb\u4ee5\u4e0b\u7f51\u5740\u4e0b\u8f7d\u538b\u7f29\u5305\uff0c\u5728\u670d\u52a1\u5668\u4e0a\u89e3\u538b<a href=\"https:\/\/www.apache.org\/dyn\/closer.cgi?path=\/kafka\/3.4.0\/kafka_2.13-3.4.0.tgz\">Apache Downloads<\/a><\/p>\n\n\n\n<p>2. \u8fdb\u5165kafka\u7684config\u76ee\u5f55\u4e0b\uff0c\u4fee\u6539server.properties\u7684\u5982\u4e0b\u914d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># broker\u7684\u5168\u5c40\u552f\u4e00\u7f16\u53f7\uff0c\u4e0d\u80fd\u91cd\u590d<br>broker.id=0<br># \u76d1\u542c<br>listeners=PLAINTEXT:\/\/:9092<br># \u65e5\u5fd7\u76ee\u5f55\uff0c\u6839\u636e\u81ea\u5df1\u559c\u597d\u586b\uff0c\u6211\u662f\u76f4\u63a5\u653e\u5728\u548ckafka\u540c\u7ea7\u7684\u76ee\u5f55<br>log.dirs=xxx\/kafka<br># \u914d\u7f6ezookeeper\u7684\u8fde\u63a5\uff08\u5982\u679c\u4e0d\u662f\u672c\u673a\uff0c\u9700\u8981\u6539\u4e3aip\u6216\u4e3b\u673a\u540d\uff09<br>zookeeper.connect=localhost:2181<\/code><\/pre>\n\n\n\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4ee5\u4e0a\u7684\u914d\u7f6e\u662f\u4e00\u4e2a\u666e\u901a\u7684server.properties\uff0c\u53ea\u80fd\u4f9b\u4e00\u4e2aBroker\u4f7f\u7528\u3002\u5982\u679c\u8981\u4f7f\u7528\u591a\u4e2aBroker\uff0c\u5c31\u9700\u8981\u521b\u5efa\u51c6\u5907\u591a\u4efdserver.properties\uff0c\u6bcf\u4e00\u4efd\u6709\u4e0d\u540c\u7684id\u53f7\uff0c\u5e76\u76d1\u542c\u4e0d\u540c\u7684\u7aef\u53e3\uff0c\u4f7f\u7528\u4e0d\u540c\u7684\u65e5\u5fd7\u3002\u8fd9\u91cc\u5c31\u4e0d\u5c55\u5f00\u53d9\u8ff0\u3002<\/p>\n\n\n\n<p>3. \u914d\u7f6e\u73af\u5883\u53d8\u91cf~\/.bashrc\uff0c\u6dfb\u52a0kafka\u6240\u5728\u8def\u5f84\uff1a\uff08\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4pwd\u83b7\u53d6\u5f53\u524d\u8def\u5f84\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#kafka<br>export KAFKA_HOME=\u4f60\u7684kafka\u8def\u5f84\/kafka<br>export PATH=$KAFKA_HOME\/bin:$PATH<\/code><\/pre>\n\n\n\n<p>\u5e76\u4f7f\u7528source ~\/.bashrc\u4f7f\u914d\u7f6e\u751f\u6548<\/p>\n\n\n\n<p>4. \u5728\u542f\u52a8kafka\u4e4b\u524d\uff0c\u8bb0\u5f97\u5148\u542f\u52a8zookeeper\uff0c\u7136\u540e\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u542f\u52a8kafka\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kafka-server-start.sh $KAFKA_HOME\/config\/server.properties<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u5728\u6253\u5370\u4fe1\u606f\u7684\u5012\u6570\u51e0\u884c\u80fd\u770b\u5230\u5982\u4e0b\u4fe1\u606f\uff0cjps\u4e2d\u6709kafka\uff0c\u8bf4\u660e\u6210\u529f\u542f\u52a8<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>INFO &#91;KafkaServer id=0] started (kafka.server.KafkaServer)<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u6ce8\u610f\uff1a\u9700\u8981\u521b\u5efa\u5176\u4ed6\u7a97\u53e3\u6765\u4f7f\u7528\u547d\u4ee4\uff0c\u8be5\u7a97\u53e3\u5c06\u4f1a\u4e00\u76f4\u542f\u52a8\u670d\u52a1\u4e0d\u53ef\u7528\u3002\u6709\u4e00\u4e2a\u6bd4\u8f83\u597d\u7684\u65b9\u6cd5\u5c31\u662f\u4f7f\u7528Byobu\u8fdb\u884c\u7a97\u53e3\u7ba1\u7406\uff0c\u8fd9\u4e2a\u6a21\u5757\u6709\u7a7a\u518d\u8865\u4e0a\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Kafka\u7684\u4f7f\u7528<\/h2>\n\n\n\n<p>kafka\u4f7f\u7528\u65f6\u9700\u8981\u901a\u8fc7topic\u7ba1\u7406\uff0c\u800c\u751f\u4ea7\u8005\u548c\u6d88\u8d39\u8005\u4f5c\u4e3a\u4e24\u4e2a\u91cd\u8981\u6982\u5ff5\u8d2f\u7a7f\u4e86kafka \u7684\u4f7f\u7528\uff08\u540e\u7eed\u4f1a\u8865\u4e0a\u539f\u7406\u7684\u5b66\u4e60\uff09\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u521b\u5efatopic<\/h4>\n\n\n\n<p>\uff08maple\u662f\u6211\u8bbe\u7f6e\u7684host\uff0c\u6620\u5c04\u5230\u672c\u5730IP\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kafka-topics.sh --create --bootstrap-server maple:9092 --replication-factor 1 --partitions 1 --topic test1<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u4ee5\u524d\u7248\u672c\u7528\u7684\u662f\u2013zookeeper\uff0c\u5982\u4eca\u8fd9\u4e2a\u65b9\u6cd5\u5728\u65b0\u7248\u672c\u4e0d\u518d\u4f7f\u7528\uff0c\u8f6c\u4e3a\u4f7f\u7528&#8211;bootstrap-server\uff0c\u7aef\u53e3\u53f7\u4e3a\u524d\u9762\u914d\u7f6e\u4e2dlistener\u8bbe\u7f6e\u7684\u7aef\u53e3\u53f7\u3002<\/p>\n<\/blockquote>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2013replication-factor\uff1a\u6307\u5b9a\u526f\u672c\u6570\u91cf <\/li>\n\n\n\n<li>\u2013partitions\uff1a\u6307\u5b9a\u5206\u533a\u6570\u91cf <\/li>\n\n\n\n<li>\u2013topic\uff1a\u4e3b\u9898\u540d\u79f0<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u67e5\u770b\u6240\u6709topic\u4fe1\u606f<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>kafka-topics.sh --list --bootstrap-server maple:9092<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u542f\u52a8\u751f\u4ea7\u8005<\/h4>\n\n\n\n<p>\u542f\u52a8\u751f\u4ea7\u8005\u4e4b\u540e\uff0c\u8be5\u7a97\u53e3\u5c06\u7528\u4e8e\u751f\u4ea7\u4fe1\u606f\uff0c\u5982\u82e5\u8981\u4f7f\u7528\u5176\u4ed6\u547d\u4ee4\uff0c\u8bb0\u5f97\u65b0\u5efa\u7a97\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kafka-console-producer.sh --broker-list localhost:9092 --topic test<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u542f\u52a8\u6d88\u8d39\u8005<\/h4>\n\n\n\n<p>\u542f\u52a8\u6d88\u8d39\u8005\u4e4b\u540e\uff0c\u8be5\u7a97\u53e3\u5c06\u7528\u4e8e\u6d88\u8d39\u4fe1\u606f\uff0c\u5982\u82e5\u8981\u4f7f\u7528\u5176\u4ed6\u547d\u4ee4\uff0c\u8bb0\u5f97\u65b0\u5efa\u7a97\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kafka-console-consumer.sh --bootstrap-server maple:9092 --topic test --from-beginning<\/code><\/pre>\n\n\n\n<p>\u8be5\u7a97\u53e3\u663e\u793a\u7684\u4f1a\u662f\u88ab\u6d88\u8d39\u7684\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\u53c2\u6570\u201c&#8211;from-beginning\u201d\uff0c\u8be5\u53c2\u6570\u8868\u793a\u4ece\u6700\u5f00\u59cb\u6d88\u8d39\u6570\u636e\uff0c\u6240\u6709\u88ab\u751f\u4ea7\u7684\u6570\u636e\u90fd\u4f1a\u88ab\u6d88\u8d39\uff1b\u800c\u82e5\u6ca1\u6709\u8be5\u53c2\u6570\uff0c\u5219\u53ea\u4f1a\u6d88\u8d39<strong>\u5728\u8be5\u6d88\u8d39\u8005\u542f\u52a8\u4e4b\u540e\u751f\u4ea7\u7684\u6570\u636e<\/strong>\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u591a\u8282\u70b9<\/h3>\n\n\n\n<p>\u542f\u52a8\u591a\u4e2a\u7ed3\u70b9\u7684\u914d\u7f6e\u548c\u666e\u901a\u914d\u7f6e\u5dee\u4e0d\u591a\uff0c\u4f46\u662f\u6ce8\u610fbrokerid\u8981\u552f\u4e00<\/p>\n\n\n\n<p>1.\u521b\u5efa\u4e3b\u9898\uff0c\u591a\u5207\u7247\u591a\u5907\u4efdkafka-topics.sh &#8211;create &#8211;bootstrap-server Master:9092 &#8211;replication-factor 3 &#8211;partitions 3 &#8211;topic BITest<\/p>\n\n\n\n<p>2.\u542f\u52a8\u591a\u4e2a\u751f\u4ea7\u8005kafka-console-producer.sh &#8211;broker-list Master:9092,Slave1:9092,Slabe2:9092,Slave3:9092 &#8211;topic BITest<br>hello<br>hello kafka cluster<br>test<br>hello storm<\/p>\n\n\n\n<p>3.\u5728\u591a\u53f0\u673a\u5668\u4e0a\u5206\u522b\u542f\u52a8\u6d88\u8d39\u8005kafka-console-consumer.sh &#8211;bootstrap-server Slave2:9092 &#8211;topic BI_News &#8211;from-beginning<\/p>\n\n\n\n<p>\u5728\u751f\u4ea7\u8005\u4e2d\u8f93\u5165\u6570\u636e\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='http:\/\/mapleleaf666.vip\/wp-content\/uploads\/2023\/11\/image-20230607213600942.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"655\" height=\"307\" data-original=\"http:\/\/mapleleaf666.vip\/wp-content\/uploads\/2023\/11\/image-20230607213600942.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-530\"  sizes=\"auto, (max-width: 655px) 100vw, 655px\" \/><\/div><\/figure>\n\n\n\n<p>\u6bcf\u53f0\u6d88\u8d39\u8005\u90fd\u53ef\u4ee5\u770b\u5230\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='http:\/\/mapleleaf666.vip\/wp-content\/uploads\/2023\/11\/image-20230607213619645.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"572\" height=\"303\" data-original=\"http:\/\/mapleleaf666.vip\/wp-content\/uploads\/2023\/11\/image-20230607213619645.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-531\"  sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">kafka\u811a\u672c\u8bbe\u8ba1<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">kafka\u542f\u52a8\u811a\u672c<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#! \/bin\/bash<br>if &#91; $# -lt 1 ]<br>then<br>echo \"Usage: kf.sh {start|stop|kc &#91;topic]|kp &#91;topic]|list |delete &#91;topic] |describe &#91;topic]}\"<br>exit<br>fi<br>case $1 in<br>\"start\"){<br>&nbsp; &nbsp;for i in Master Slave1 Slave2 Slave3<br>&nbsp; &nbsp;do<br>&nbsp; &nbsp; &nbsp; &nbsp;echo \" --------\u542f\u52a8 $i Kafka-------\"<br>&nbsp; &nbsp; &nbsp; &nbsp;ssh $i \"\/home\/hadoop\/BI\/kafka\/bin\/kafka-server-start.sh -daemon \/home\/hadoop\/BI\/kafka\/config\/server.properties\"<br>&nbsp; &nbsp;done<br>};;<br>\"stop\"){<br>&nbsp; &nbsp;for i in Master Slave1 Slave2 Slave3<br>&nbsp; &nbsp;do<br>&nbsp; &nbsp; &nbsp; &nbsp;echo \" --------\u505c\u6b62 $i Kafka-------\"<br>&nbsp; &nbsp; &nbsp; &nbsp;ssh $i \"\/home\/hadoop\/BI\/kafka\/bin\/kafka-server-stop.sh stop\"<br>&nbsp; &nbsp;done<br>};;<br>\"kc\"){<br>&nbsp; &nbsp;if &#91; $2 ]<br>&nbsp; &nbsp;then<br>&nbsp; kafka-console-consumer.sh --bootstrap-server Master:9092,Slave1:9092,Slave2:9092,Slave3:9092 --topic $2<br>&nbsp; &nbsp;else<br>&nbsp; echo \"Usage: kf.sh {start|stop|kc &#91;topic]|kp &#91;topic]|list |delete &#91;topic] |describe &#91;topic]}\"<br>&nbsp; &nbsp;fi<br>};;<br>\"kp\"){<br>&nbsp; &nbsp;if &#91; $2 ]<br>&nbsp; &nbsp;then<br>&nbsp; kafka-console-producer.sh --broker-list Master:9092,Slave1:9092,Slave2:9092,Slave3:9092 --topic $2<br>&nbsp; &nbsp;else<br>&nbsp; echo \"Usage: kf.sh {start|stop|kc &#91;topic]|kp &#91;topic]|list |delete &#91;topic] |describe &#91;topic]}\"<br>&nbsp; &nbsp;fi<br>};;<br>\"list\"){<br>&nbsp; kafka-topics.sh --list --bootstrap-server<br>&nbsp; Master:9092,Slave1:9092,Slave2:9092,Slave3:9092<br>};;<br>\"describe\"){<br>if &#91; $2 ]<br>&nbsp; &nbsp;then<br>&nbsp; kafka-topics.sh --describe --bootstrap-server Master:9092,Slave1:9092,Slave2:9092,Slave3:9092 --topic $2<br>&nbsp; else<br>&nbsp; echo \"Usage: kf.sh {start|stop|kc &#91;topic]|kp &#91;topic]|list |delete &#91;topic] |describe &#91;topic]}\"<br>&nbsp; fi<br>};;<br>\"delete\"){<br>if &#91; $2 ]<br>&nbsp; &nbsp;then<br>&nbsp; kafka-topics.sh --delete --bootstrap-server Master:9092,Slave1:9092,Slave2:9092,Slave3:9092 --topic $2<br>&nbsp; else<br>&nbsp; echo \"Usage: kf.sh {start|stop|kc &#91;topic]|kp &#91;topic]|list |delete &#91;topic] |describe &#91;topic]}\"<br>&nbsp; fi<br>};;<br>*)<br>echo \"Usage: kf.sh {start|stop|kc &#91;topic]|kp &#91;topic]|list |delete &#91;topic] |describe &#91;topic]}\"<br>exit<br>;;<br>esac<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4e3b\u8981\u9488\u5bf9\u7684\u662f\u5355\u8282\u70b9\u5355Broker\u7684\u90e8\u7f72 \u51c6\u5907\u5de5\u4f5c\uff1a\u5b89\u88c5zookeeper 1. kafka\u5728\u4f7f\u7528\u65f6\u4f9d\u8d56\u4e8ez [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":257,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[20,21],"class_list":["post-423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-summary","tag-big-data","tag-deployment"],"_links":{"self":[{"href":"http:\/\/mapleleaf666.vip\/index.php?rest_route=\/wp\/v2\/posts\/423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mapleleaf666.vip\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mapleleaf666.vip\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mapleleaf666.vip\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mapleleaf666.vip\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=423"}],"version-history":[{"count":5,"href":"http:\/\/mapleleaf666.vip\/index.php?rest_route=\/wp\/v2\/posts\/423\/revisions"}],"predecessor-version":[{"id":533,"href":"http:\/\/mapleleaf666.vip\/index.php?rest_route=\/wp\/v2\/posts\/423\/revisions\/533"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/mapleleaf666.vip\/index.php?rest_route=\/wp\/v2\/media\/257"}],"wp:attachment":[{"href":"http:\/\/mapleleaf666.vip\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mapleleaf666.vip\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=423"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mapleleaf666.vip\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}