Hi, On Fri, Jan 4, 2013 at 8:10 PM, Krishna Rao <[email protected]> wrote: > If I want to run the jar I need to run it using "hadoop jar <application > jar>", so that it can access HDFS (that is running "java -jar <application > jar> results in a HDFS error").
The latter is because running a Hadoop program requires Hadoop dependencies and configs to be available in its runtime classpath. This can be achieved by either creating a fat jar assembly, containing config files and all required dependency jars; or you can run it as: java -cp yourjar.jar:`hadoop classpath` YourMainClass <args> such that the classpath is automatically setup for you. -- Harsh J
