sparkStreaming整合flumehtml
9.1 poll拉模式整合apache
一、flume配置文件spa
a1.sources = r1 a1.sinks = k1 a1.channels = c1 #source a1.sources.r1.channels = c1 a1.sources.r1.type = spooldir a1.sources.r1.spoolDir = /root/data a1.sources.r1.fileHeader = true #channel a1.channels.c1.type =memory a1.channels.c1.capacity = 20000 a1.channels.c1.transactionCapacity=5000 #sinks a1.sinks.k1.channel = c1 a1.sinks.k1.type = org.apache.spark.streaming.flume.sink.SparkSink a1.sinks.k1.hostname=yh a1.sinks.k1.port = 8888
下載地址 - http://spark.apache.org/docs/latest/streaming-flume-integration.html - 下載位置 ![圖片描述][1]