首页> 开发问题 >其它问题 其它问题
Mapreduce报错:java.lang.ClassNotFoundException: Class Mapper not found
作者:小萝卜 2019-12-11 【 其它 】 浏览 3031
简介Mapreduce报错:java.lang.ClassNotFoundException: Class Mapper not found
mapreduce找不到mapper类
解决方法:
开始自己用的是mapreduce自己打包的一种方法:
job.setJarByClass(StandardJob.class);
但这样一直在报错:找不到打包的jar
WARN mapred.JobClient: No job jar file set. User classes may not be found. See JobConf(Class) or JobConf#setJar(String).
上网查这个错误时,网上的大多数方法都是在教使用setJar,自己打包以后运行,但这样无论是加入绝对路径还是相对路径都报错找不到jar包,而且也一直不知道相对路径应该放在哪里。
之后学长告诉:(放在conf的定义下面)
conf.set("mapreduce.job.jar", "C:/Users/xym48/Desktop/preprocess.jar");
问题解决。
很赞哦! (0)
相关文章
- Namenode 没启动
- tf.matmul()报错expected scalar type Float but found Double
- Attempt to invoke interface method 'boolean java.util.List.add(java.lang.Object)' on a null object reference
- matlab命令行双箭头消失
- Java compiler level does not match the version of the installed Java project facet
- 解决:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile
- 心路历程——毕设程序mr跑不通的问题
- scp 文件 : /目录: Permission denied
- Python运行语法错误:IndentationError: unindent does not match any outer indentation level
- MATLAB关闭科学计数法显示