- 问题:
-
问题解决:
仔细查看报错是缺少winutils.exe程序。
Hadoop都是运行在Linux系统下的,在windows下eclipse中运行 mapreduce程序,要首先安装Windows下运行的支持插件 -
安装并配置插件(我这里还是Linux版的hadoop安装包,我们只需要下载一个winutils.exe文件即可)
-
下载链接:https://pan.baidu.com/s/10g3dKab0tZXGA1yYVdMP8g 密码:pj9n
-
设置环境变量
第一个在环境变量下创建HADDOOP_HOME变量,
HADOOP_HOME=hadoop的主目录
第二个添加path变量
%HADOOP_HOME%\bin
问题二:Windows无法打包spark的wordcount
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:compile (default) on project iteblog: wrap: org.apache.commons.exec.ExecuteException:
Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
将路径中中文去掉。就这么神奇。
转载自:https://blog.csdn.net/weixin_41122339/article/details/81141913