Regarding Jar file


2 Answer(s)


hi Vijaykanth,

Let us know where are you trying to add the directories. All hadoop libraries can be found in "/usr/lib/hadoop"

Thanks

Hi Vijaykanth,
Hadoop has a very helpful command called classpath. So irrespective of where your hadoop instalation is, you can use

$ hadoop classpath to find the classpath that contains all your hadoop libraries and apis.

So to use this while you are compiling your classes you can do the following:

$ javac -classpath `hadoop classpath` *.java

NOTE: Please note that ` is not a single quote, it is a forward quote (found with the ~ key on your keyboard. This is used to execute the command and insert the output in the command you are executing.


thanks,
Sarath.