{"id":46706,"date":"2023-07-12T10:06:11","date_gmt":"2023-01-04T15:38:00","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/"},"modified":"2024-04-30T13:12:19","modified_gmt":"2024-04-30T05:12:19","slug":"46706-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/","title":{"rendered":""},"content":{"rendered":"<p>\u524d\u56de\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3068\u3057\u3066Flume\u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002<br \/>\nNo.4 \u65b0\u5352\u672a\u7d4c\u9a13\u30a8\u30f3\u30b8\u30cb\u30a2\u304cFlume\u3092\u4f7f\u3063\u3066Tweet\u3092\u53d6\u5f97\u3057\u3066\u307f\u305f<br \/>\n\u540c\u3058\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3068\u3057\u3066\u4eca\u56de\u306fKafka\u3092\u4f7f\u3063\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u3084\u308a\u53d6\u308a\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h2>Kafka\u3063\u3066\u4f55\uff1f<\/h2>\n<p>Kafka\u306f\u3001LinkedIn\u304c\u958b\u767a\u3057\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3067\u3059\u3002<br \/>\n\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u306b\u3064\u3044\u3066\u306f\u524d\u56de\u306eFlume\u306b\u3064\u3044\u3066\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u3068\u4e00\u7dd2\u3067\u3001\u5927\u91cf\u306e\u30ed\u30b0\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306bKafka\u306f\u79d2\u9593200\u4e07\u30e1\u30c3\u30bb\u30fc\u30b8\u51e6\u7406\u3092\u5b9f\u73fe\u3057\u3066\u3044\u308b\u3089\u3057\u3044\u3067\u3059\u3002<br \/>\n\u3059\u3054\u3044\u3002\u3002\u3002<\/p>\n<h2>Flume\u3068\u306e\u9055\u3044<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d665637434c4406d09f35\/4-0.png\" alt=\"Flume_Kafka.png\" \/><\/div>\n<p>Kafka\u306fProducer \u2192 Broker \u2192 Consumer\u306e3\u3064\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nProducer\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u3001Broker\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u4e00\u65e6\u4fdd\u5b58\u3057\u3066\u6700\u7d42\u7684\u306bConsumer\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e00\u822c\u7684\u306a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30fc\u30d0\u30e2\u30c7\u30eb\u306b\u304a\u3044\u3066\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30b5\u30fc\u30d0\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u306b\u884c\u304f\u3053\u3068\u3092\u300cPull\u300d\u3001\u30b5\u30fc\u30d0\u304c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u30c7\u30fc\u30bf\u3092\u9001\u308a\u51fa\u3059\u3053\u3068\u3092\u300cPush\u300d\u3068\u3044\u3044\u307e\u3059\u3002<br \/>\nKafka\u306fPull\u578b\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nPull\u578b\u306e\u30e2\u30c7\u30eb\u3092Publish-Subscribe\u30e2\u30c7\u30eb\u3068\u3082\u8a00\u3044\u307e\u3059\u3002<br \/>\nPull\u578b\u3067\u3042\u308b\u30e1\u30ea\u30c3\u30c8\u306f<\/p>\n<p>\u30fbBroker\u304c\u30c7\u30fc\u30bf\u8ee2\u9001\u91cf\u306a\u3069\u3092\u610f\u8b58\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044<br \/>\n\u30fbProducer\u304c\u81ea\u3089\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u8abf\u6574\u3067\u304d\u308b<br \/>\n\u30fb\u30d0\u30c3\u30c1\u51e6\u7406\u306b\u3082\u5bfe\u5fdc\u3067\u304d\u308b<\/p>\n<p>\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>Kafka\u306e\u4ed5\u7d44\u307f<\/h2>\n<p>\u4e0a\u8a18\u306e\u56f3\u3067\u306fBroker\u304c\uff11\u3064\u3057\u304b\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b\u306fZookeeper\u3068\u3044\u3046OSS\uff08\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\uff09\u304c\u88cf\u3067\u52d5\u3044\u3066\u3044\u3066\u3001\u8907\u6570\u306eKafka\u304c\u9023\u643a\u3057\u3066\u30af\u30e9\u30b9\u30bf\u30fc\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4ed5\u7d44\u307f\u3092\u3068\u3066\u3082\u5206\u304b\u308a\u3084\u3059\u304f\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u30d6\u30ed\u30b0\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u306e\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b7\u30b7\u30c9\u30fb\u30ab\u30d5\u30ab\u3055\u3093\u304c\u6c17\u306b\u306a\u3063\u3066\u8abf\u3079\u3066\u3044\u305f\u3089 Apache Kafka \u5165\u9580\u3057\u3066\u3044\u305f\u30e1\u30e2<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d665637434c4406d09f35\/12-0.png\" alt=\"zookeeper.png\" \/><\/div>\n<p>Producer\u3001Broker\u3001Consumer\u3001Zookeeper\u306b\u95a2\u3057\u3066\u50d5\u81ea\u8eab\u304c\u6301\u3063\u3066\u3044\u308b\u30a4\u30e1\u30fc\u30b8\u3092\u518d\u3073\u5c45\u9152\u5c4b\u3092\u7528\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n\u914d\u5f79\u306f\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\n<p>\u30fbProducer\u3001Consumer\uff1a\u304a\u5ba2\u3055\u3093<br \/>\n\u30fbBroker\uff1a\u5c45\u9152\u5c4b<br \/>\n\u30fbZookeeper\uff1a\u30ad\u30e3\u30c3\u30c1\u306e\u4eba<\/p>\n<p>\u6d41\u308c\u3068\u3057\u3066\u306f<\/p>\n<p>\u5c45\u9152\u5c4b\uff08Broker\uff09\u306f\u4e8b\u524d\u306b\u30ad\u30e3\u30c3\u30c1\u306e\u4eba\uff08Zookeeper\uff09\u306b\u5834\u6240\u306a\u3069\u306e\u60c5\u5831\u3092\u4f1d\u3048\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u2193<br \/>\n\u30ad\u30e3\u30c3\u30c1\u306e\u4eba\uff08Zookeeper\uff09\u306f\u304a\u5ba2\u3055\u3093\uff08Producer\uff09\u306b\u5c45\u9152\u5c4b\uff08Broker\uff09\u306e\u5834\u6240\u3092\u6559\u3048\u307e\u3059\u3002<br \/>\n\u2193<br \/>\n\u304a\u5ba2\u3055\u3093\uff08Producer\uff09\u306f\u305d\u306e\u5c45\u9152\u5c4b\uff08Broker\uff09\u3067\u6ce8\u6587\uff08\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1\uff09\u3057\u307e\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u6d41\u308c\u3067\u3059\u3002<br \/>\n\u5404\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3069\u3093\u306a\u3053\u3068\u3092\u3057\u3066\u3044\u308b\u304b\u3092\u3082\u3063\u3068\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u4e0a\u8a18\u306e\u30ea\u30f3\u30af\u3092\u898b\u3066\u9802\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u56f3\u306b\u66f8\u304b\u308c\u3066\u3044\u308btopic\u3068\u3044\u3046\u306e\u306f\u3001Producer\u304b\u3089Broker\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\u969b\u306b\u4ed8\u3051\u308b\u540d\u524d\uff08\u30ad\u30e5\u30fc\u540d\uff09\u3067\u3059\u3002<br \/>\n\u30c1\u30e3\u30c3\u30c8\u306e\u30b0\u30eb\u30fc\u30d7\u540d\u7684\u306a\u3082\u306e\u3067\u3059\u3002<br \/>\nBroker\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092topic\u540d\u6bce\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306bZookeeper\u306f\u3001\u5fc5\u9808\u306e\u69cb\u6210\u3067\u306f\u306a\u304f\u3001Zookeeper\u7121\u3057\u3067\u3082Kafka\u306f\u5229\u7528\u51fa\u6765\u307e\u3059\u3002<br \/>\n\u30ad\u30e3\u30c3\u30c1\u306e\u4eba\u304c\u3044\u306a\u304f\u3066\u3082\u5c45\u9152\u5c4b\u3092\u9078\u3079\u308b\u306e\u3068\u540c\u3058\u3067\u3059\u306d\uff01<\/p>\n<h2>\u4e8b\u524d\u6e96\u5099<\/h2>\n<p>\u305d\u308c\u3067\u306f\u5b9f\u8df5\u306b\u79fb\u3063\u3066\u3044\u304f\u305f\u3081\u306e\u4e8b\u524d\u6e96\u5099\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u25a0 Zookeeper\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u307e\u305a\u306f\u30ad\u30e3\u30c3\u30c1\u306e\u4eba\u3092\u9023\u308c\u3066\u304d\u307e\u3057\u3087\u3046\uff01\u7b11<\/p>\n<pre class=\"post-pre\"><code>$ brew install zookeeper\r\n<\/code><\/pre>\n<p>\u25a0 Kafka\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u7d9a\u3044\u3066\u5c45\u9152\u5c4b\u3055\u3093\u3082\u30aa\u30fc\u30d7\u30f3\u3055\u305b\u307e\u3057\u3087\u3046\uff01<\/p>\n<pre class=\"post-pre\"><code>$ brew install kafka\r\n<\/code><\/pre>\n<h2>\u3044\u3056\u5b9f\u8df5\uff01<\/h2>\n<p>\u4e8b\u524d\u6e96\u5099\u304c\u6574\u3063\u305f\u306e\u3067\u5b9f\u969b\u306bKafka\u3092\u52d5\u304b\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306fZookeeper\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n\u25a0 Zookeeper\u306e\u8d77\u52d5<\/p>\n<pre class=\"post-pre\"><code>$ sudo zkServer start\r\n\r\nZooKeeper JMX enabled by default\r\nUsing config: \/usr\/local\/etc\/zookeeper\/zoo.cfg\r\nStarting zookeeper ... STARTED\r\n<\/code><\/pre>\n<p>\u6b21\u306bKafka\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n\u25a0 Kafka\u306e\u8d77\u52d5<\/p>\n<pre class=\"post-pre\"><code>$ sudo kafka-server-start \/usr\/local\/etc\/kafka\/server.properties\r\n\r\n[2017-10-11 10:31:54,985] INFO KafkaConfig values: \r\n    advertised.host.name = null\r\n    advertised.listeners = null\r\n    advertised.port = null\r\n    alter.config.policy.class.name = null\r\n    authorizer.class.name = \r\n    auto.create.topics.enable = true\r\n    auto.leader.rebalance.enable = true\r\n    background.threads = 10\r\n    broker.id = 0\r\n    broker.id.generation.enable = true\r\n    broker.rack = null\r\n    compression.type = producer\r\n...\r\n...\r\n...\r\n<\/code><\/pre>\n<p>Zookeeper\u3068Kafka\u304c\u8d77\u52d5\u51fa\u6765\u305f\u3089\u3044\u3088\u3044\u3088\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u9001\u53d7\u4fe1\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u25a0\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u9001\u53d7\u4fe1<br \/>\n\u307e\u305a\u306ftopic\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4e0a\u3067\u3082\u66f8\u304d\u307e\u3057\u305f\u304c\u3001Kafka\u306ftopic\u3068\u3044\u3046\u5358\u4f4d\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u3084\u308a\u53d6\u308a\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f\u300chello_kafka\u300d\u3068\u3044\u3046topic\u3092\u9001\u4fe1\uff08produce\uff09 \u2192 \u53d7\u4fe1\uff08consume\uff09\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3010topic\u306e\u4f5c\u6210\u3011<\/p>\n<pre class=\"post-pre\"><code>$ kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic hello_kafka\r\n\r\nWARNING: Due to limitations in metric names, topics with a period ('.') or underscore ('_') could collide. To avoid issues it is best to use either, but not both.\r\nCreated topic \"hello_kafka\".\r\n<\/code><\/pre>\n<p>WARNING\u306e\u90e8\u5206\u3092Google\u7ffb\u8a33\u306b\u304b\u3051\u308b\u3068<\/p>\n<pre class=\"post-pre\"><code>\u8b66\u544a\uff1a\u30e1\u30c8\u30ea\u30c3\u30af\u540d\u306e\u5236\u9650\u306b\u3088\u308a\u3001\u30d4\u30ea\u30aa\u30c9\uff08 \"\u3002\"\uff09\u307e\u305f\u306f\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2\uff08 '_'\uff09\u306e\u30c8\u30d4\u30c3\u30af\u304c\u885d\u7a81\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u554f\u984c\u3092\u56de\u907f\u3059\u308b\u306b\u306f\u3001\u3069\u3061\u3089\u304b\u4e00\u65b9\u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u6700\u5584\u3067\u3059\u304c\u3001\u4e21\u65b9\u3092\u4f7f\u7528\u3059\u308b\u306e\u306f\u6700\u5584\u3067\u3059\u3002\r\n<\/code><\/pre>\n<p>\u3069\u3046\u3084\u3089\u300c.\u300d\uff08\u30d4\u30ea\u30aa\u30c9\uff09\u3068\u300c_\u300d\uff08\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\uff09\u3092\u4e21\u65b9\u4f7f\u7528\u3057\u305f\u65b9\u304c\u3044\u3044\u3088\u3001\u3068\u3044\u3046\u3053\u3068\u3063\u307d\u3044\u3067\u3059\u3002<br \/>\n\u7121\u8996\u3057\u3066\u7d9a\u3051\u307e\u3059\u3002<\/p>\n<p>\u304d\u3061\u3093\u3068topic\u3092\u4f5c\u6210\u51fa\u6765\u305f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ kafka-topics --list --zookeeper localhost:2181\r\n\r\nhello_kafka\r\n<\/code><\/pre>\n<p>topic\u540d\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u7121\u4e8btopic\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\uff01<\/p>\n<p>\u3010Consumer\u8d77\u52d5\u3011<br \/>\ntopic\u4f5c\u6210\u304c\u3046\u307e\u304f\u884c\u3063\u305f\u3089\u6b21\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u53d7\u4fe1\u5074\u3067\u3042\u308bConsumer\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n\u5148\u307b\u3069Kafka\u3092\u7acb\u3061\u4e0a\u3052\u305f\u30bf\u30fc\u30df\u30ca\u30eb\u3068\u306f\u5225\u306b\u65b0\u3057\u304f\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u7acb\u3061\u4e0a\u3052\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ kafka-console-consumer --zookeeper localhost:2181 --topic hello_kafka --from-beginning\r\n\r\nUsing the ConsoleConsumer with old consumer is deprecated and will be removed in a future major release. Consider using the new consumer by passing [bootstrap-server] instead of [zookeeper].\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u3068\u300cUsing&#8230;\u300d\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u53d7\u4fe1\u5f85\u3061\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3010Producer\u8d77\u52d5\u3011<br \/>\nKafka\u3092\u7acb\u3061\u4e0a\u3052\u305f\u30bf\u30fc\u30df\u30ca\u30eb\u3001Consumer\u3092\u8d77\u52d5\u3057\u305f\u30bf\u30fc\u30df\u30ca\u30eb\u3068\u306f\u5225\u306b\u307e\u305f\u65b0\u3057\u304f\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ kafka-console-producer --broker-list localhost:9092 --topic hello_kafka\r\n\r\n&gt;\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5165\u529b\u5f85\u3061\u306e\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067<\/p>\n<pre class=\"post-pre\"><code>&gt;my first kafka message! \r\n<\/code><\/pre>\n<p>\u3068\u5165\u529b\u3059\u308b\u3068\u3001\u5148\u307b\u3069Consumer\u3092\u8d77\u52d5\u3057\u305f\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u65b9\u306b<\/p>\n<pre class=\"post-pre\"><code>my first kafka message! \r\n<\/code><\/pre>\n<p>\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u9001\u53d7\u4fe1\u5b8c\u4e86\u3067\u3059\uff01\uff01<\/p>\n<p>\u3061\u306a\u307f\u306bConsumer\u3068Producer\u3067\u6307\u5b9a\u3057\u3066\u3044\u308blocalhost\u306e\u30dd\u30fc\u30c8\u756a\u53f72181\u756a\u30689092\u756a\u306fKafka\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u51fa\u529b\u7528\u30dd\u30fc\u30c8\u3068\u5165\u529b\u7528\u30dd\u30fc\u30c8\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Producer\u3067\u9001\u4fe1\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u304cKafka\u306bPush\u3055\u308c\u3001Consumer\u304c\u30e1\u30c3\u30bb\u30fc\u30b8\u3092Pull\u3057\u3066\u304f\u308b\u3001\u3068\u3044\u3046\u4e00\u901a\u308a\u306e\u6d41\u308c\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u4f7f\u3063\u3066\u307f\u305f\u611f\u60f3\u3068\u3057\u3066\u306fFlume\u306e\u6642\u3068\u540c\u3058\u304f\u3001\u305d\u3093\u306a\u306b\u8907\u96d1\u306a\u64cd\u4f5c\u3067\u306f\u306a\u304f\u610f\u5916\u3068\u5206\u304b\u308a\u3084\u3059\u304b\u3063\u305f\u306a\u3001\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u3002<\/p>\n<p>Kafka\u3068Flume\u3092\u7d44\u307f\u5408\u308f\u305b\u3066<br \/>\nFlume\u2192Kafka\u2192Flume<br \/>\n\u306e\u3088\u3046\u306b\u3001Flume\u306eChannel\u7684\u306a\u5f79\u5272\u3092Kafka\u306eBroker\u306b\u62c5\u308f\u305b\u308b\u3088\u3046\u306a\u4f7f\u3044\u65b9\u3082\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>Flume\u3001Kafka\u3068\u4e00\u898b\u3068\u3063\u3064\u304d\u306b\u304f\u305d\u3046\u306a\u30c4\u30fc\u30eb\u3082\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u8a66\u3057\u3066\u307f\u308b\u3068\u610f\u5916\u3068\u305d\u3046\u3067\u3082\u306a\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\uff01<br \/>\n\u7686\u3055\u3093\u3082\u3068\u3063\u3064\u304d\u306b\u304f\u305d\u3046\u306a\u30c4\u30fc\u30eb\u3082\u55b0\u308f\u305a\u5acc\u3044\u305b\u305a\u306b\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01\uff01\uff01<\/p>\n<p>\u6b21\u56de\u306f\u300c\u65b0\u5352\u672a\u7d4c\u9a13\u30a8\u30f3\u30b8\u30cb\u30a2\u304cDocker\u3092\u4f7f\u3063\u3066\u307f\u305f\uff08\u4eee\uff09\u300d\u3092\u304a\u9001\u308a\u3057\u307e\u3059\uff01<br \/>\n\u304a\u697d\u3057\u307f\u306b\uff01\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3068\u3057\u3066Flume\u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002 No.4 \u65b0\u5352\u672a\u7d4c\u9a13\u30a8\u30f3\u30b8\u30cb\u30a2 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-46706","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u524d\u56de\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3068\u3057\u3066Flume\u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002 No.4 \u65b0\u5352\u672a\u7d4c\u9a13\u30a8\u30f3\u30b8\u30cb\u30a2 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-04T15:38:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T05:12:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d665637434c4406d09f35\/4-0.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-01-04T15:38:00+00:00\",\"dateModified\":\"2024-04-30T05:12:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u524d\u56de\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3068\u3057\u3066Flume\u3092\u4f7f\u3063\u305f\u8a18\u4e8b\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002 No.4 \u65b0\u5352\u672a\u7d4c\u9a13\u30a8\u30f3\u30b8\u30cb\u30a2 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-04T15:38:00+00:00","article_modified_time":"2024-04-30T05:12:19+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d665637434c4406d09f35\/4-0.png"}],"author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-01-04T15:38:00+00:00","dateModified":"2024-04-30T05:12:19+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/46706-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=46706"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46706\/revisions"}],"predecessor-version":[{"id":92112,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46706\/revisions\/92112"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=46706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=46706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=46706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}