Regarding Jar file
2 Answer(s)
DeZyre Support
hi Vijaykanth,
Let us know where are you trying to add the directories. All hadoop libraries can be found in "/usr/lib/hadoop"
Thanks
Aug 01 2014 11:57 AM
Let us know where are you trying to add the directories. All hadoop libraries can be found in "/usr/lib/hadoop"
Thanks
Sarath
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.
Aug 04 2014 10:57 AM
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.