抽空裝了一下w
1
[cc lang="php"]
sudo wget
sudo tar -zxvf apache-flume-1.6.0-bin.tar.gz
sudo mv apache-flume-1.6.0-bin flume
[/cc]
設定環境變數
sudo nano /etc/profile
加入如下內容
flume_home=/mnt/study/flume
在path後加入
:$flume_home/bin
修改配置檔案
[cc lang="php"]
cd flume/conf
sudo cp flume-conf.properties.template ******.conf
[/cc]
修改為以下內容
[cc lang="php"]
agent.sources = s1
agent.channels = c1
agent.sinks = sk1
# for each one of the sources, the type is defined
agent.sources.s1.type = netcat
a1.sources.s1.bind = localhost
a1.sources.s1.port = 95270
# the channel can be defined as follows.
agent.sources.s1.channels = c1
# each sink's type must be defined
agent.sinks.sk1.type = logger
#specify the channel the sink should use
agent.sinks.sk1.channel = c1
# each channel's type is defined.
agent.channels.c1.type = memory
# other config values specific to each type of channel(sink or source)
# can be defined as well
# in this case, it specifies the capacity of the memory channel
agent.channels.c1.capacity = 1000
a1.channels.c1.transactioncapacity = 100
# bind the source and sink to the channel
a1.sources.s1.channels = c1
a1.sinks.sk1.channel = c1
[/cc]
2、啟動agent
[cc lang="php"]
source /etc/profile
/mnt/study/flume/conf$ flume-ng agent --conf conf --conf-file ******.conf --name a1 -dflume.root.logger=info,console
[/cc]
利用flume-ng命令檢視版本號
/mnt/study/flume/conf$flume-ng version
[cc lang="php"]
flume 1.6.0
source code repository:
revision: 2561a23240a71ba20bf288c7c2cda88f443c2080
compiled by hshreedharan on mon may 11 11:15:44 pdt 2015
from source with checksum b29e416802ce9ece3269d34233baf43f
[/cc]
flume依賴於hadoop嗎
flume入門教程-簡單案例
flume 1.6.0 user guide
flume介紹、安裝配置 詳細**
第四次實驗
一 問題及 檔名稱 陣列素數排序.cpp 作 者 周玉傑 完成日期 2017 年 4 月 10 日 版 本 號 v1.0 對任務及求解方法的描述部分 輸入描述 無 問題描述 將乙個陣列之中的素數存入另乙個陣列之中並使其排列 程式輸出 另乙個陣列排序前和排序後的樣子 問題分析 使用函式來分工 演算法設...
第四次實驗
1.檢視使用者和組檔案 進入 etc目錄,cd etc ls 顯示出 etc 中的檔案 cat passwd執行結果顯示出使用者帳號檔案 cat shadow,顯示使用者口令檔案 cat group,顯示使用者組帳號檔案 cat gshadow,顯示使用者組口令檔案 2.使用者和組帳戶的維護命令 增...
第四次實驗
part1陣列資料結構 1 修改1 2 修改2 part2 一維陣列的定義 初始化以及陣列元素的引用方法 1 一維陣列的宣告形式 陣列元素的型別說明符 陣列名稱 陣列的大小 2 初始化 宣告簡單變數時 int i 0 在定義陣列時 eg int b 4 part3 陣列作為函式引數 1 陣列元素作為...