Last Updated: February 25, 2016
·
950
· vidyasagar

Flume 1.4.0 CDH Installation

In order to install FLUME , go to the path

Step 1: cd /usr/local/hadoop

Step 2: Download the TAR file from the archive.cloudera.com

sudo wget  http://archive.cloudera.com/cdh4/cdh/4/ apache-flume-1.4.0-cdh4.4.0-bin.tar.gz

Step 3: Extract the tar file

tar -zxvf apache-flume-1.4.0-cdh4.4.0-bin.tar.gz

Step 4: Downloaded file should be in this path

cd /usr/local/hadoop/apache-flume-1.4.0-cdh4.4.0-bin

Step 5: Set the etc environment

sudo nano /etc/environment.

Click enter and add the flume directory path to PATH variable and FLUME_HOME

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-openjdk-amd64/bin:/usr/local/hadoop/hadoop-2.0.0-cdh4.4.0/bin: /usr/local/hadoop/hadoop-2.0.0-cdh4.4.0/sbin:/usr/local/hadoop/hive-0.10.0-cdh4.4.0/bin:/usr/local/hadoop/pig-0.11.0-cdh4.4.0/bin:/usr/local/hadoop/ hbase-0.94.6-cdh4.4.0/bin:/usr/local/hadoop/sqoop-1.4.3-cdh4.4.0/bin:/usr/local/hadoop/apache-flume-1.4.0-cdh4.4.0-bin/bin"
HADOOP_HOME="/usr/local/hadoop/hadoop-2.0.0-cdh4.4.0"
HIVE_HOME="/usr/local/hadoop/hive-0.10.0-cdh4.4.0"
HIVE_AUX_JARS_PATH="/usr/local/hadoop/hive-0.10.0-cdh4.4.0/lib/mysql-connector-java-5.1.18-bin.jar"
PIG_HOME="/usr/local/hadoop/pig-0.11.0-cdh4.4.0"
HADOOP_CONF_DIR="/usr/local/hadoop/hadoop-2.0.0-cdh4.4.0/etc/hadoop"
HBASE_HOME="/usr/local/hadoop/hbase-0.94.6-cdh4.4.0"
SQOOP_HOME="/usr/local/hadoop/sqoop-1.4.3-cdh4.4.0"
FLUME_HOME="/usr/local/hadoop/apache-flume-1.4.0-cdh4.4.0-bin"

Step 4: set the source environment

source /etc/environment