{"rsdb":{"rid":"309145","subhead":"","postdate":"0","aid":"224307","fid":"119","uid":"1","topic":"1","content":"
\n \n \n
\n
http:\/\/archive.cloudera.com\/cdh5\/cdh\/5\/ flume \u4e0b\u8f7d\u5730\u5740<\/div>
<\/div>
http:\/\/archive.cloudera.com\/cdh5\/cdh\/5\/flume-ng-1.6.0-cdh5.7.0\/FlumeUserGuide.html \u5b98\u65b9\u76f8\u5173\u6587\u6863<\/div>
<\/div>
http:\/\/flume.apache.org\/FlumeUserGuide.html<\/div>
http:\/\/flume.apache.org\/releases\/index.html flume \u76f8\u5173\u7248\u672c\u6587\u6863<\/div>
<\/div>
<\/div>
=== FLUME \u6982\u8ff0 ==<\/div>
<\/div>
Apache Flume is a distributed(\u5206\u5e03\u5f0f), reliable(\u9ad8\u53ef\u9760), and available(\u9ad8\u53ef\u7528\u7684\u670d\u52a1) system for efficiently collecting(\u6536\u96c6),<\/div>
aggregating(\u805a\u5408) and moving(\u79fb\u52a8) large amounts of log data from many different sources to a centralized data store.<\/div>
<\/div>
It has a simple and flexible(\u7075\u6d3b) architecture based on streaming data flows(\u6d41\u5f0f\u6570\u636e).<\/div>
It is robust(\u5065\u58ee\u6027) and fault tolerant(\u5bb9\u9519\u6027) with tunable reliability mechanisms and many failover and recovery mechanisms(\u6545\u969c\u6062\u590d\u8fc7\u6765\u7684\u673a\u5236).<\/div>
It uses a simple extensible data model that allows for online analytic application(\u5728\u7ebf\u5b9e\u65f6\u5206\u6790\u5e94\u7528).<\/div>

<\/div>

<\/div>
webserver(\u6e90\u7aef\u65e5\u5fd7) ==>> flume(\u6536\u96c6) ==>> HDFS(\u76ee\u7684\u5730)<\/div>
<\/div>
<\/div>
flume \u662f\u7531cloudera \u63d0\u4f9b\u7684\u4e00\u4e2a\u5206\u5e03\u5f0f\u3001\u9ad8\u53ef\u9760<\/div>
\u9ad8\u53ef\u7528\u7684\u670d\u52a1\uff0c\u7528\u4e8e\u5206\u5e03\u5f0f\u7684\u6d77\u91cf\u65e5\u5fd7\u7684\u9ad8\u6548\u6536\u96c6 \u805a\u5408\u3001\u79fb\u52a8\u7cfb\u7edf<\/div>
<\/div>
flume\u7684\u8bbe\u8ba1\u76ee\u6807<\/div>
\u53ef\u9760\u6027<\/div>
\u62d3\u5c55\u6027<\/div>
\u7ba1\u7406\u6027(agent)<\/div>
\u4e1a\u754c\u540c\u7c7b\u4ea7\u54c1\u7684\u5bf9\u6bd4<\/div>
Flume: cloudera \/apache \u57fa\u91d1\u4f1a java<\/a>\u5f00\u53d1\u7684<\/div>
scribe \uff1a Facebook C\/c++ \u8d1f\u8f7d\u5747\u548c\u5bb9\u9519\u6027\u4e0d\u662f\u592a\u597d\uff0c\u5df2\u7ecf\u505c\u6b62\u7ef4\u62a4\u4e86<\/div>
chukwa : Yahoo\/apache java<\/a>\u5f00\u53d1\u7684 .\u8d1f\u8f7d\u5747 \u5df2\u7ecf\u505c\u6b62\u7ef4\u62a4\u4e86<\/div>
kafka :<\/div>
fluentd : Ruby<\/div>
logstash :ELK<\/div>
<\/div>
FLUME\u53d1\u5c55\u53f2<\/div>
cloudera 0.9.2 --flume-og<\/div>
flume-728 flume-ng -->> apache<\/div>
2012.7 1.0<\/div>
2015.5 1.6<\/div>
~ 1.7<\/div>

\t<\/span><\/p>

<\/p>

====Flume \u4e09\u5927\u6838\u5fc3\u7ec4\u4ef6\u53ca\u67b6\u6784==<\/p>


<\/p>

flume \u603b\u4f53\u67b6\u6784\u56fe<\/p>

\"\"
<\/p>


<\/p>

flume \u4e09\u5927\u7ec4\u4ef6\u67b6\u6784\u56fe<\/p>

\"\"
<\/p>source:\u6536\u96c6
\t<\/span>source \u652f\u6301\u5f88\u591asource\u7c7b\u578b\uff0c\u4ee5\u4e0b\u662f\u7ecf\u5e38\u7528\u7684\u7c7b\u578b
\t<\/span>Avro Source \u5e8f\u5217\u5316
\t<\/span>Exec Source
\t<\/span>Spooling Directory Source (\u5bf9\u6587\u4ef6\u5939\u8fdb\u884c\u76d1\u63a7\u7684)
\t<\/span>Kafka Source
\t<\/span>NetCat TCP Source
\t<\/span>NetCat UDP
\t<\/span>
\t<\/span>


channel: \u8d1f\u8d23\u65e5\u5fd7\u6682\u65f6\u5b58\u50a8\u548c\u805a\u5408,\u4e0d\u53ef\u80fd\u957f\u65f6\u95f4\u505c\u7559\u5728\u6b64

\t<\/span>Memory Channel<\/p>

\u4e8b\u4ef6\u5b58\u50a8\u5728\u5185\u5b58\u4e2d
\u4f18\u70b9\uff1a \u901f\u5ea6\u5feb
\u7f3a\u70b9\uff1a \u540c\u6b65\u6302\u4e86\uff0c\u5185\u5b58\u4e2d\u7684\u4e8b\u4ef6\u5c31\u4e22\u5931\u4e86
<\/p>\t<\/span>JDBC Channel \u4e00\u822c\u4e0d\u600e\u4e48\u7528 \uff0c\u6709\u4e9b\u573a\u666f \u53ef\u80fd\u4f1a\u7528\u5230
\t<\/span>Kafka Channel

\t<\/span>File Channel<\/p>

\u4e8b\u4ef6\u5b58\u50a8\u5728\u6587\u4ef6\u4e2d<\/p>

\u5931\u8d25\u4e86\u53ef\u4ee5\u6062\u590d
<\/p>\t<\/span>Spillable Memory Channel
\t<\/span>Pseudo Transaction Channel
\t<\/span>Custom Channel


sink: \u8f93\u51fa\u3001\u8f6c\u79fb\u5b58\u50a8channel\u4e2d\u7684\u6570\u636e
\u8bfb\u53d6channel\u4e2d\u7684\u6570\u636e\uff0c\u7136\u540e\u63a8\u9001\u5230\u76ee\u7684\u5730(HDFS\/Kafka)
\t<\/span>
\t<\/span>
\t<\/span>
Hive Sink
Logger Sink (\u63a7\u5236\u53f0)

Avro Sink\/Thrift sink<\/p>

\u5e8f\u5217\u5316\uff0c\u53d1\u9001\u5230\u6307\u5b9a\u7684rpc\u7aef\u53e3
\t\t<\/span>\u53ef\u4ee5\u914d\u7f6e\u591a\u5c42flume
<\/p>IRC Sink
File Roll Sink
Null Sink
HBaseSinks
HBaseSink
AsyncHBaseSink
MorphlineSolrSink
ElasticSearchSink(ES)
Kite Dataset Sink
Kafka Sink
HTTP Sink


<\/p>


<\/p>


<\/p>

\u4e09\u5927\u7ec4\u4ef6\u662f\u5982\u4f55\u4fdd\u8bc1\u4e8b\u52a1\u7684\u5462\uff1f<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p>


<\/p> <\/div>\n <\/div>","orderid":"0","title":"flume   \u4e09\u5927\u6838\u5fc3\u7ec4\u4ef6","smalltitle":"","mid":"0","fname":"Flume","special_id":"0","bak_id":"0","info":"0","hits":"510","pages":"1","comments":"0","posttime":"2019-05-16 01:58:49","list":"1557943129","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"flume<\/A>  <\/A> \u4e09\u5927<\/A> \u6838\u5fc3<\/A> \u7ec4\u4ef6<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";s:4:\"head\";s:0:\"\";}","target":"0","ip":"47.106.78.186","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":" http:\/\/archive.cloudera.com\/cdh5\/cdh\/5\/ flume \u4e0b\u8f7d\u5730\u5740http:\/\/archive.cloudera.com\/cdh5\/cdh\/5\/flume-ng-1.6.0-cdh5.7.0\/FlumeUserGuide.html \u5b98\u65b9\u76f8\u5173\u6587\u6863http:\/\/flume.apache.org\/FlumeUserG..","lastview":"1719085578","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}