hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lenin Raj <emaille...@gmail.com>
Subject Add Hadoop to PATH
Date Thu, 30 May 2013 15:39:09 GMT
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/%3C49DD64EF-BCCF-4307-AEE0-C391F01A1D0B@gmail.com%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

Mime
View raw message