I've had this error as well when running from the command prompt. I've found that by passing the location of the jar file that contains your classes to conf.setJar() when setting the job configuration parameters fixes it. Basically the code would look something like this:
String userJarLocation = "/path/to/jar"; conf.setJar(userJarLocation); //were conf is the JobConf object -Mike novice user wrote: > > Hi Brice, > I tried by not using eclipse too. I created my own jar file using > build.xml and used this jar when passing to hadoop jar command. But still > the error is persisting. > > un_brice wrote: >> >> novice user a écrit : >>> Hi, >>> I am running a simple code and I am getting error as " No job jar file >>> set. >>> User classes may not be found. See JobConf(Class) or >>> JobConf#setJar(String)". I am not able to figure what would have gone >>> wrong. >> Hi ! >> >> I got the same warning when running jobs from Eclipse, because Eclipse >> weren't trying to build jars (but just .class). It didn't prevent me to >> test my code using the ToolRunner however. To distribute it, I wrote a >> ant build.xml file that built the Jar. I suppose that you could also use >> the export tool of Eclipse. >> >> Good luck ^^ >> Brice >> >> > > -- View this message in context: http://www.nabble.com/Getting--%22No-job-jar-file-set.--User-classes-may-not-be-found.%22-error-when-running-a-map-reduce-job-in-hadoop-0.17-tp17730028p17800581.html Sent from the Hadoop core-user mailing list archive at Nabble.com.
