Flume:spark-project專案的flume配置
1、將flume-ng-1.5.0-cdh5.3.6.tar.gz使用WinSCP拷貝到sparkproject1的/usr/local目錄下。
2、對flume進行解壓縮:tar -zxvf flume-ng-1.5.0-cdh5.3.6.tar.gz
3、對flume目錄進行重新命名:mv apache-flume-1.5.0-cdh5.3.6-bin flume
4、配置scala相關的環境變數
vi ~/.bashrc
export FLUME_HOME=/usr/local/flume
export FLUME_CONF_DIR=$FLUME_HOME/conf
export PATH=$FLUME_HOME/bin
source ~/.bashrc
vi /usr/local/flume/conf/flume-conf.properties #agent1表示代理名稱 agent1.sources=source1 agent1.sinks=sink1 agent1.channels=channel1 #配置source1 agent1.sources.source1.type=spooldir agent1.sources.source1.spoolDir=/usr/local/logs //設定監控的資料夾 agent1.sources.source1.channels=channel1 agent1.sources.source1.fileHeader = false agent1.sources.source1.interceptors = i1 agent1.sources.source1.interceptors.i1.type = timestamp #配置channel1 agent1.channels.channel1.type=file agent1.channels.channel1.checkpointDir=/usr/local/logs_tmp_cp agent1.channels.channel1.dataDirs=/usr/local/logs_tmp #配置sink1 agent1.sinks.sink1.type=hdfs agent1.sinks.sink1.hdfs.path=hdfs://sparkproject1:9000/logs //監控日誌寫入到hdfs agent1.sinks.sink1.hdfs.fileType=DataStream agent1.sinks.sink1.hdfs.writeFormat=TEXT agent1.sinks.sink1.hdfs.rollInterval=1 agent1.sinks.sink1.channel=channel1 agent1.sinks.sink1.hdfs.filePrefix=%Y-%m-%d
|
相關文章
- Flume 整合 Kafka_flume 到kafka 配置【轉】Kafka
- Flume篇---Flume安裝配置與相關使用
- flume HdfsEventSink KafkaSink配置Kafka
- Flume學習——Flume的架構架構
- Flume負載均衡配置負載
- Flume 配置環境變數變數
- Flume學習——Flume中事務的定義
- zookeeper:spark-project專案的zookeeper配置SparkProject
- flume + elasticsearchElasticsearch
- Linux flume安裝與配置Linux
- Flume NG 簡介及配置實戰
- hadoop:spark-project專案的hadoop配置HadoopSparkProject
- kafka:spark-project專案的kafka和scala配置KafkaSparkProject
- zookeeper:spark-project專案的hive和mysql配置SparkProjectHiveMySql
- kafka+flume的整合Kafka
- flume的安裝部署
- spark 與flume 1.6.0Spark
- Flume面試題整理面試題
- Flume學習——BasicChannelSemantics
- Flume學習——BasicTransactionSemantics
- CentOS:spark-project專案的CentOS 6.4安裝配置CentOSSparkProject
- Linux環境Flume安裝配置及使用Linux
- 設定Flume監聽檔案內容
- Flume基礎學習
- Apache Flume 入門教程Apache
- Flume + Kafka + SparkStreaming分析KafkaSpark
- Flume監聽Nginx日誌流向HDFS安裝配置Nginx
- Flume實時監控 單個追加檔案
- 針對flume中扇出複用(源exec)原始碼修改,並編譯flume原始碼編譯
- flume 1.8.0 開發基礎
- 大資料之Flume(二)大資料
- 日誌採集框架Flume框架
- Flume(一):簡介架構架構
- Kafka實戰-Flume到KafkaKafka
- Flume消費內外網分流配置的Kafka時遇到的坑Kafka
- flume面試理論和應用面試
- Flume安裝及簡單部署
- flume file channel 異常解決