sparkStreaming整合flume

sparkStreaming整合flumehtml

  • 須要把spark-streaming-flume-sink_2.11-2.1.3.jar放到flume的lib目錄下
  • 使用scala-library-2.11.8.jar替換以前的scala-library-2.10依賴的jar包

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]
相關文章
相關標籤/搜索