#!/bin/bash# Author:xirong # Date: -- Geneva- .##### Build a flume cluster script # Note: #1JDK7 Environment is required, if there is no Java environment, please configure #2. Have/home/Work directory, otherwise unable to install ###### compressed file unzip tar-ZXF apache-flume-1.5.2-bin.tar.gz-c/home/work/flume_cluster/# Configure Flume environment echo'# # Flume Configuration'>>/etc/Profileecho'Export Flume_home=/home/work/flume_cluster/apache-flume-1.5.2-bin'>>/etc/Profileecho'export path=.: $PATH:: $FLUME _home/bin'>>/etc/Profilesource/etc/profile# Adding Java environment variables \CP-F $FLUME _home/conf/flume-env.sh.template $FLUME _home/conf/flume-Env.shecho'java_home=/opt/jdk1.7.0_75/'>> $FLUME _home/conf/flume-Env.shecho'confgratulations! Fluem has been installed and flume-env.sh have been set!'# The test is successful flume-ng version## Flume1.5.2# # Source code Repository:https://Git-wip-us.apache.org/repos/asf/flume.git# # revision:229442aa6835ee0faa17e3034bcab42754c460f5## Compiled by Hshreedharan on Wed Nov A A:Wuyi: APst the# # from source with checksum 837f81bd1e304a65fcaf8e5f692b3f18
Flume-ng cluster scripting