I have a valid jar which is running perfectly on another system running the same version of hadoop i.e hadoop-1.2.1 with the same settings.
I am able to put the jar file in the hdfs filesystem and create input,output directories.
But when I use the command 'hadoop jar HelloWorld.jar classname(main method) input output' it throws 'Invalid jar' error. After searching for the possible solutions for a long time I found out that the command is searching for the jar in local filesystem instead of searching in the hdfs.
Even I tried adding scheme to the command as: hadoop jar hdfs://HelloWorld.jar classname(main method) input output
What are the possible solutions to this?
P.S: I am able to run the hadoop-examples-1.2.1.jar using 'hadoop jar' when my PWD is /home/user/hadoop-1.2.1 which is in my local filesystem
hadoop jar
picks the jar from the local system? I always load my jar on hdfs and run,it works fine. But I have the same path for the jar on my local path too.So it might be possible it is picking up the local one and not teh one on hdfs (as i assumed) - Suvarna Pattayil