Steps to set up Flume on MAC/Ubuntu and on CDH3 are almost similar but we need to add one more step to it.


i.e. We need to set the paths of HADOOP_HOME and JAVA_HOME before we run flume.


To set these paths please follow below steps:


Step 1: Open a new terminal and execute the below command:


sudo vi .bashrc


Step 2: Add the below lines at the end of the file:


export JAVA_HOME=/path/to/java

export PATH=$PATH:$JAVA_HOME/bin

export HADOOP_HOME=/path/to/hadoop

export PATH=$PATH:$HADOOP_HOME/bin


Note: On MAC java will be mostly installed in the path JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Please check the path where java is installed in your system and then update it accordingly.


On Ubuntu by default java will be installed in the path /usr/lib/jvm/...  To check that path, open a folder in ubuntu click on File system -> usr->lib->jvm-> you will find a folder with name similar to as  " java-1.6.0-openjdk-i386" which would the path where the Java is installed. Please check the path where java is installed in your system and then update it accordingly.


Save the .bashrc file and then open a new terminal to run flume with the help of the Flume Command.


Please refer to the below link for the steps to set up Flume on CDH3 VM (Just for reference)

Link : https://edureka.wistia.com/medias/hsby0ufqqo/download?media_file_id=48186073


Please feel free to revert if you need any further help.