eclipse下提交job时报错mapred.JobClient: No job jar file set. User classes may not be found.

错误信息:

11/10/14 13:52:07 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.
11/10/14 13:52:07 WARN mapred.JobClient: No job jar file set.  User classes may not be found. See JobConf(Class) or JobConf#setJar(String).
11/10/14 13:52:07 INFO input.FileInputFormat: Total input paths to process : 5
11/10/14 13:52:07 INFO mapred.JobClient: Running job: job_201110141041_0014
11/10/14 13:52:08 INFO mapred.JobClient:  map 0% reduce 0%
11/10/14 13:52:19 INFO mapred.JobClient: Task Id : attempt_201110141041_0014_m_000000_0, Status : FAILED
java.lang.RuntimeException: java.lang.ClassNotFoundException: Finger$FingerMapper1
    at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:809)
    at org.apache.hadoop.mapreduce.JobContext.getMapperClass(JobContext.java:157)
    at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:569)

at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)

。。。。

出错的原因就是找不到Mapper类和Reduce类。

单机运行的时候是不会存在这个问题的,但是现在是提交到远程集群直接运行,就会出现问题了,原因可以参考这篇文章:http://blog.csdn.net/andyelvis/article/details/7706205

解决办法:

将本工程导出jar包放到工程根目录下面,并在提交程序前添加下面的设置

conf.set("mapred.jar", "loadforecast_utils.jar"); //其中loadforecast_utils.jar是你的导出的jar文件名。注意第一个参数不要拼写错了。

重新运行问题解决!

时间: 2024-08-10 04:26:00

eclipse下提交job时报错mapred.JobClient: No job jar file set. User classes may not be found.的相关文章

eclipse 运行 mapreduce程序报错 No job jar file set. User classes may not be found. See JobConf(Class) or JobConf#setJar(String).

报错信息 17/07/06 17:00:27 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.17/07/06 17:00:27 WARN mapred.JobClient: No job jar file set. User classes may not be found. See JobConf

eclipse下执行wordcount报错 java.lang.ClassNotFoundException 解决办法

eclipse下执行wordcount报错 java.lang.ClassNotFoundException 17/08/29 07:52:54 INFO Configuration.deprecation: fs.default.name is deprecated. Instead, use fs.defaultFS 17/08/29 07:52:54 WARN util.NativeCodeLoader: Unable to load native-hadoop library for y

【转】Eclipse下启动tomcat报错:/bin/bootstrap.jar which is referenced by the classpath, does not exist.

转载地址:http://blog.csdn.net/jnqqls/article/details/8946964 1.错误: 在Eclipse下启动tomcat的时候,报错为:Eclipse下启动tomcat报错:The archive: C:/Program Files(x86)/Java/jdk1.7.0_10/lib/tools.jar which is referenced by the classpath, doesnot exist. 2.原因: 这是因为我中途移动过tomcat的位

在tomcat7下停止应用时报错:created a ThreadLocal with key of type

在tomcat7下停止应用时报错: created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance. Apr 02, 2015 10:36:52 AM org.apache.coyote.Abs

解决eclipse下maven工程报错:Missing artifact jdk.tools:jdk

1.进入jdk/lib目录,执行: mvn install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools -Dpackaging=jar -Dversion=1.7 -Dfile=tools.jar -DgeneratePom=true 2.加入依赖 <dependency> <groupId>jdk.tools</groupId> <artifactId>jdk.tools</arti

sharepoint 迁出文档时报错:sharepoint 服务器错误:the file &quot;xxxxxxxxx&quot; is not checked out

迁出文档时报错:sharepoint 服务器错误:the file "xxxxxxxxx" is not checked out 当文档库启用了历史版本,并且启用了:Create major and minor (draft) versions 当文档是draft的时候,无法迁出,将文档pubulish a major version,可以正常迁出.

Eclipse JavaEE下引用jdbc时报错:找不到DB驱动及连接的解决方法

搭建购物网站的时候把IDE换成了Eclipse JavaEE.之前在MyEclipse环境下工作时配置jdbc都是直接右击项目通过build path引入相应的jar包,但这种做法在Eclipse下行不通——在调用DB时eclipse会一直提示找不到DB驱动和连接.网上搜索了一下,发现将jdbc的jar包引入到project的WebContent/WEB-INF/lib目录下即可解决问题. 原文连接:http://blog.csdn.net/liyong199012/article/detail

windows下的eclipse运行hdfs程序时报错 (null) entry in command string: null chmod 0644

在Windows操作系统中使用eclipse本地运行hadoop的hdfs程序, FileSystem local = FileSystem.getLocal(conf); 使用 FSDataOutputStream out = local.create(localFile);  创建本地文件输出流时, 报以下错误:....(null) entry in command string: null chmod 0644 ..(后面是目的目录) 解决方法: 下载hadoop.dll文件 并拷贝到C:

linux下挂载samba时报错,wrong fs type,bad option,bad superblock

环境:172.24.21.22是samba服务端 使用mount命令直接挂载,如下 居然报错,那我们使用-t 参数,加上cifs 居然还是报错 仔细查看上面的报错,小括号里面的,need a /sbin/mount.<tpye> helper program) 貌似在/sbin/有很多与mount相关的命令,查看如下,使用双tab列出所有/sbin/mount.开头的命令: 貌似少了一个mount.cifs,因为samba使用的文件系统是cifs:那就安装嘛,如下 上面安装mount.cifs