vi /etc/profile
export FLUME_HOME=/usr/local/flume
export PATH=$PATH:${FLUME_HOME}/bin
source /etc/profile
cd /usr/local/flume/conf/
mv flume-env.sh.template flume-env.sh
vi flume-env.sh
export JAVA_HOME=/usr/local/jdk
cd /usr/local/flume/conf/
vi netcat-logger.conf
1
cd /usr/local/flume/
bin/flume-ng agent -c conf -f conf/netcat-logger.conf -n a1 -Dflume.root.logger=INFO,console
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)