Add your bin folder of your hadoop in your path export HADOOP_HOME=/usr/local/hadoop/hadoop export PATH=$PATH:$HADOOP_HOME/bin
OR export PATH=$PATH:/usr/local/hadoop/hadoop/bin Regards, Som Shekhar Sharma On Thu, May 30, 2013 at 9:09 PM, Lenin Raj <[email protected]> wrote: > Hello, > > I am trying to add Hadoop to PATH so Flume can access the necessary JAR > files. > > I have Hadoop installed in > > *root@li339-83:/usr/local/hadoop/hadoop# ls* > bin CHANGES.txt docs > hadoop-core-1.0.4.jar hadoop-test-1.0.4.jar ivy.xml LICENSE.txt > README.txt src > build.xml conf hadoop-ant-1.0.4.jar > hadoop-examples-1.0.4.jar hadoop-tools-1.0.4.jar lib logs > sbin webapps > c++ contrib hadoop-client-1.0.4.jar > hadoop-minicluster-1.0.4.jar ivy libexec NOTICE.txt > share > > And my PATH is > *root@li339-83:/usr/local/hadoop/hadoop# echo $PATH* > > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/hadoop/hadoop > > Since */usr/local/hadoop/hadoop* is in PATH, I should be able to run > "bin/hadoop" from any folder. > > But, not able to run hadoop from other folders. > > *root@li339-83:~# bin/hadoop > -bash: bin/hadoop: No such file or directory > * > And *which hadoop & which bin/hadoop* returns nothing. > > *root@li339-83:~# which hadoop > **root@li339-83:~# > root@li339-83:~# which bin/hadoop > root@li339-83:~# > > * > According to this > http://mail-archives.apache.org/mod_mbox/flume-user/201207.mbox/%[email protected]%3E > , > Hadoop JAR files should be shown when we execute *hadoop classpath* from > any folder. > > How should I change my PATH variable to make flume work? > > Thanks, > Lenin >
