1. Flume 설치
1 2 3 4 |
]$ wget https://github.com/downloads/cloudera/flume/flume-distribution-0.9.4-bin.tar.gz ]$ tar xvzf flume-distribution-0.9.4-bin.tar.gz ]$ ln -s flume-distribution-0.9.4 flume ]$ cd /service/workspace/flume |
2 Flume 설정
2.1 flume-site.xml 설정
1 2 3 4 5 6 7 8 |
]$ vi conf/flume-site.xml ... flume.master.servers localhost This is the address for the config servers status server (http) ... |
2.2 flume-env.sh 설정
1 2 3 4 5 6 |
]$ vi bin/flume-env.sh ... export FLUME_HOME=/service/workspace/flume export FLUME_PID_DIR=/service/workspace/flume/pid export FLUME_LOG_DIR=/service/workspace/flume/logs ... |
2.3 logs 디렉토리 생성
1 |
]$ mkdir logs |
3 Flume 구동
1 |
]$ ./bin/flume-daemon.sh start node -n agent_name |
4 Flume 확인
http://localhost:35871/flumemaster.jsp
* Flume Master 에서 agent_name으로 올라오는 정보가 있는지 확인
설치 끝!